SystemImager

From MDWiki
Jump to navigationJump to search

This page can be removed - Matt

Getting the required files

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 152.98.195.189


Getting the image of the golden client to the image server

  • On the image server
/usr/sbin/si_getimage -golden-client 152.98.195.136 -image my_golden_client -ip-assignment static


Setting up the image server to serve images (BOOTSERVER)

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

  • Start xinetd: NOTE: USE CHKCONFIG TO START ALWAYS
/sbin/service xinetd start
  • Start the image server daemon:
/etc/init.d/systemimager-server-rsyncd start
  • Configure the boot server
/usr/sbin/si_mkbootserver 

NOTE:

  • This script may modify the following files:
    • /etc/services
    • /etc/inetd.conf
    • /etc/xinetd.d/tftp






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/*'