RE: [suse-autoinstall] Help with installing multiple machines over network
# From: Richard Hobbs [mailto:richard.hobbs@crl.toshiba.co.uk] # Sent: Thursday, February 02, 2006 10:42 AM # To: 'Uwe Gansert'; suse-autoinstall@suse.com # Subject: RE: [suse-autoinstall] Help with installing multiple machines # over network [snip] # Also, I have read somewhere that I can use a configuration # server to store xml files for each machine I have, and given # the quantity of machines, this would be the ideal approach # for me because each one obviously needs a different IP # address and hostname, so I can't use the same XML file for # all the machines. I don't know whether this would work for you, but what I'm doing in my configuration is running DHCP, and launching a post-script to change the hostname. Then afterwards, I can go back and manually configure the system to where I want it: #!/bin/bash suffix=$(hexdump -n 4 -e '"%x"' /dev/urandom) echo myprefix-$suffix.your.domain.name >/etc/HOSTNAME cat >/etc/hosts <<@@@@End-Of-Hosts-File@@@@ # # hosts This file describes a number of hostname-to-address # mappings for the TCP/IP subsystem. It is mostly # used at boot time, when no name servers are running. # On small systems, this file can be used instead of a # "named" name server. # Syntax: # # IP-Address Full-Qualified-Hostname Short-Hostname # 127.0.0.1 localhost # special IPv6 addresses ::1 localhost ipv6-localhost ipv6-loopback fe00::0 ipv6-localnet ff00::0 ipv6-mcastprefix ff02::1 ipv6-allnodes ff02::2 ipv6-allrouters ff02::3 ipv6-allhosts 127.0.0.2 myprefix-$suffix.your.domain.name myprefix-$suffix @@@@End-Of-Hosts-File@@@@ ]]>
participants (1)
-
Schumacher, Gordon