Hi Markus! 1)- add the following in the <general> section (see below) 2)- comment out <!-- <hostname>here-is-the-hostame</hostname> --> in the <dns> sub-section of the <networking> section 3)- adjust, like below, the <interfaces> sub-section of the <networking> section The autoinstallation will stop in the beginning, display a small windows asking you the hostname, then ask you the IP and MASK for both NIC (if you have 2 NICs, else take take out the <ask> for the second one). It will then continue the autoinstallation. *This way you can use the same autoinst.xml for both members of the cluster. * For more details see: autoyast_full-doc.pdf at http://www.suse.de/~ug/autoyast_doc/CreateProfile.Ask.html Hoping I understood your question and that it will help you: Michel-André ************************************************* <!-- HOSTNAME AND IP ADDRESSES IN THE GENERAL SECTION --> <general> <ask-list config:type="list"> <ask> <title>HOST NAME</title> <path>networking,dns,hostname</path> <question>Enter Hostname</question> <stage>initial</stage> <default>h22min15</default> <help>Enter the name of this server. The name this host will be known as.</help> </ask> <ask> <title>IP address of eth0</title> <path>networking,interfaces,0,ipaddr</path> <question>Enter IP Address of eth0 i.e First Network Interface Card</question> <stage>initial</stage> <default>192.168.1.202</default> <help>Enter the IP address of the first NIC.</help> </ask> <ask> <title>MASK of eth0 (EN)</title> <path>networking,interfaces,0,netmask</path> <question>Enter the MASK of eth0 i.e First Network Interface Card</question> <stage>initial</stage> <default>255.255.255.0</default> <help>Enter the mask of the first NIC.</help> </ask> <ask> <title>IP address of eth1</title> <path>networking,interfaces,1,ipaddr</path> <question>Enter IP Address of eth1 i.e Second Network Interface Card</question> <stage>initial</stage> <default>10.0.0.2</default> <help>Enter the IP address of the second NIC.</help> </ask> <ask> <title>MASK of eth1</title> <path>networking,interfaces,1,netmask</path> <question>Enter the MASK of eth1 i.e Second Network Interface Card</question> <stage>initial</stage> <default>255.255.255.0</default> <help>Enter the mask of the second NIC.</help> </ask> </ask-list> <!-- ... ... --> </general> <!-- ... ... --> <!-- ************************************************************--> <!-- NETWORKING SECTION --> <networking> <interfaces config:type="list"> <interface> <bootproto>static</bootproto> <device>eth0</device> <startmode>auto</startmode> <usercontrol>no</usercontrol> </interface> <interface> <bootproto>static</bootproto> <device>eth1</device> <startmode>auto</startmode> <usercontrol>no</usercontrol> </interface> </interfaces> <!-- ... ... <dns> <dhcp_hostname config:type="boolean">false</dhcp_hostname> <dhcp_resolv config:type="boolean">true</dhcp_resolv> <domain>micronator.org</domain> <!-- COMMENT THE FOLLOWING LINE --> <!-- <hostname>here-is-the-hostame</hostname> --> <nameservers config:type="list"> <nameserver>192.168.1.1</nameserver> </nameservers> <searchlist config:type="list"> <search>micronator.org</search> </searchlist> </dns> ... ... --> ************************************************* Markus Baertschi a écrit :
I'm working on the installation for a new linux cluster. All nodes are identical except for hostname and IP.
Today some scripts generate an individual autoinst.xml and pxe config file pointing to the autoinst.xml for each node. These files are the same except for the (static) hostname and IP address. We want to keep static addresses.
I can reduce the 2 config files per node to two single files if I have a simple way to assign the correct hostname and static IP address during installation. We have dhcp set up to assign a fixed IP for each node.
It looks like during post-install I can access the IP address in the hostname. (the hostname command returns the ip address). I suppose I can set the ip address using yast command line tools (yast lan edit id=0 ip=myip), but there seems to be no way to set the hostname using the command line. Can I just write the hostname into /etc/HOSTNAME ?
Is there a good reason I should remain with the individual pxe and autoinstall.xml files per node ?
Markus
-- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org