Wade Hampton wrote:
> G'day,
>
> I am trying to setup systemimager to allow me to re-image a remote box
> so I don't have to fly to a location or get someone at the site run
> the install.  So far, I figured I could copy the kernel and initrd.img
> to /boot on the box, add them to grub.conf as the default, type
> reboot, and si reimages the box (really cool)!  However, what I would
> really like to do is have a simple way for the box to reload, reboot,
> then come up with the same IP address it originally had, not DHCP.

A solution could be to assign the IPs statically in /etc/dhcpd.conf, based on
the mac address of the nodes (see `man si_mkdhcpserver` and `man
si_mkdhcpstatic`). Otherwise simply write a custom post-install script to
properly setup the IPs on all the interfaces of your clients (see
http://svn.systemimager.org/listing.php?repname=systemimager&path=%2Ftrunk%2Fdoc%2Fexamples%2Fpost-install%2F&rev=0&sc=0
for some examples). 

> To prepare my box, I run a simple script that copies the initrd.img
> and the kernel, then sets up grub.conf.  This script could mount the
> initrd and copy files to it such as the network settings....  How can
> I get access to these settings as the post-install scripts run in a
> chroot environment hence can't see the info on the initrd?  Will I
> have to hack the ramdisk init.d code to copy something or is there an
> external method?

I'm not sure to have understood your problem... could you reformulate it? which
settings do you want/need to change? is it always referred to the static IPs
issue? BTW network settings are defined in your image server (via DHCP or via
installation parameters - see
http://wiki.systemimager.org/index.php/Installation_Parameters).

If you want to access them as env variables in your post-install scripts
source the file /tmp/variables.txt on the top of your scripts.

> I am installing CentOS 5 using Systeminstaller 3.8.1.
>
> Also, I would like to mirror my systemimager server, but to a separate
> network.  The instructions expect the networks to be connected.  What
> directories would I need to copy
> besides /var/lib/systemimager, /usr/share/systemimager, and /tftpboot?
>

Install the systemimager server packages in the mirror and simply use 
si_cpimage:

mirror:~/# si_cpimage --server <orig_image_server> source_image 
destination_image

Regards,
-Andrea

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
sisuite-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-users

Reply via email to