SystemImager: Difference between revisions

From MDWiki
Jump to navigationJump to search
Line 84: Line 84:


===Setting up the image server to serve images===
===Setting up the image server to serve images===
OPEN: 873 TCP (not sure if this is required on the image-server)
*Start the image server daemon:
/etc/init.d/systemimager-server-rsyncd start





Revision as of 05:09, 13 August 2007

mkdir systemimager
cd systemimager
wget http://compbio.chemistry.uq.edu.au/mediawiki/upload/b/ba/Install.txt
mv Install.txt Install.pl
chmod +x Install.pl


  • Now we use the installer to grab the required packages:
    • systemimager
    • systemimager-bittorrent
    • systemimager-client
    • systemimager-common
    • systemimager-flamethrower
    • systemimager-server
    • systemimager-x86_64boot-standard
    • systemimager-x86_64initrd_template


./Install.pl -v --download-only --tag stable --directory . systemconfigurator systemimager-client \
 systemimager-common systemimager-x86_64boot-standard systemimager-x86_64initrd_template systemimager-server \ 
 systemimager-bittorrent systemimager-flamethrower

Setup the imaging server

  • First off, I installed some files that may be required later (if not these can be removed):
yum install tftpd
yum install tftp* (xinetd dependency which is required will be grabbed)
NOTE: These packages are also suggested: pxe dhcp-server dhcp


  • Transfer the required files to guava
scp systemconfigurator-* systemimager-common-* systemimager-server-* systemimager-x86_64boot-standard-* \
systemimager-bittorrent-* username@guava:/working/dir
  • Install the packages on guava
rpm -ivh systemconfigurator-* (yum install perl-AppConfig to satify dependency)
rpm -ivh systemimager-common-* systemimager-server-* systemimager-x86_64boot-standard-*
(yum install  perl-XML-Simple to satisfy dependency)
rpm -ivh systemimager-bittorrent-*
  • Setup the directory structure
mkdir /other/systemimages(images, overrides, tarballs, torrents)

  • Edit the config file
cd /etc/systemimager
cp systemimager.conf systemimager.conf.BAK
vi systemimager.conf -- Change to reflect the directory structure created above

Setup the golden client

  • OPEN: 873 TCP (not sure if this is required on the image-server)
  • Install the required packages
rpm -ivh systemconfigurator-* (yum install perl-AppConfig)
rpm -ivh systemimager-common-* systemimager-client-* systemimager-x86_64initrd_template-*
  • These files need to be possibly edited:
client.conf
updateclient.local.exclude -- THIS DEFINATELY: To avoid nfs shared etc.


Prepare an image of the golden client

NOTE: The si_* tools are placed in:

  • /usr/sbin/si_prepareclient
  • /usr/sbin/si_updateclient

PREPARE AN IMAGE

  • On the golden client:
/usr/sbin/si_prepareclient --server guava


Setting up the image server to serve images

OPEN: 873 TCP (not sure if this is required on the image-server)

  • Start the image server daemon:
/etc/init.d/systemimager-server-rsyncd start







UPLOAD AN IMAGE TO THE IMAGE SERVER

  • On the golden client


si_getimage --golden-client uqmd05 --image my_image --exclude '/media/*' --exclude '/lib/klibc/events/*'