[opensuse-autoinstall] Right way to query for install options?
I am creating an auto install file for machines that will not be using DHCP for network configuration. I would like the installer to query for the IP, netmask and gateway to be used on the box. Anyone have an example of how to do this? If not, what is the best way to go about this? Thanks! -- Andrew Lundgren -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
Anyone have an example of how to do this? If not, what is the best way to go about this?
Read about autoyast at http://forgeftp.novell.com//yast/doc/SL10.3/ In particular section 4.16 is relevant ... see http://forgeftp.novell.com//yast/doc/SL10.3/autoinstall/CreateProfile.Ask.ht...
I would like the installer to query for the IP, netmask and gateway to be used on the box.
Anyone have an example of how to do this? If not, what is the best way to go about this?
I am attempting the same thing. I interactively installed openSUSE 10.3 in a Xen Virtual machine such that it used a static IP address. Next I generated a reference profile for my virtual machine using yast2's autoinstallation module (YaST2 -> Autoinstallation -> Tools -> Create Reference Profile). Reading the documentation I mentioned above, I added the xml below to the reference profile inside the <general> tag (without modifying or deleting any other tags in the reference profile). Next I created a new virtual machine with a static IP address using the autoyast profile which requested the following 6 values: hostname, domain name, ip address, netmask, gateway and dns server. The <default> values are filled when the dialog appears during the AutoYaST installation. If you dont want default values pre-filled, just delete some/all of the <default> tags. This could also be done in a real machine rather than in a virtual machine I suppose. Hope this helps, and also hope that there is more activity and interest in AutoYaST use, AutoYaST development and this list. Razi <general> <ask-list config:type="list"> <ask> <stage>initial</stage> <title>My Server Customization</title> <dialog config:type="integer">1</dialog> <element config:type="integer">1</element> <frametitle>Hostname and Domain Name</frametitle> <help>1. Enter the hostname of the server. </help> <question>1. Hostname</question> <path>networking,dns,hostname</path> <default>mytesthost</default> </ask> <ask> <stage>initial</stage> <title>My Server Customization</title> <dialog config:type="integer">1</dialog> <element config:type="integer">2</element> <frametitle>Hostname and Domain Name</frametitle> <help>2. Enter the domain name of the server. </help> <question>2. Domain Name</question> <path>networking,dns,domain</path> <default>mydomain.com</default> </ask> <ask> <stage>initial</stage> <title>My Server Customization</title> <dialog config:type="integer">1</dialog> <element config:type="integer">3</element> <frametitle>Static IP Address Settings</frametitle> <help>3. Enter the static IP address of the server. </help> <question>3. IP Address</question> <path>networking,interfaces,0,ipaddr</path> <default>192.168.9.199</default> </ask> <ask> <stage>initial</stage> <title>My Server Customization</title> <dialog config:type="integer">1</dialog> <element config:type="integer">4</element> <frametitle>Static IP Address Settings</frametitle> <help>4. Enter the netmask of the server. </help> <question>4. Netmask</question> <path>networking,interfaces,0,netmask</path> <default>255.255.255.0</default> </ask> <ask> <stage>initial</stage> <title>My Server Customization</title> <dialog config:type="integer">1</dialog> <element config:type="integer">5</element> <frametitle>Static IP Address Settings</frametitle> <help>5. Enter the gateway IP of the server. </help> <question>5. Default Gateway IP</question> <path>networking,routing,routes,0,gateway</path> <default>192.168.9.1</default> </ask> <ask> <stage>initial</stage> <title>My Server Customization</title> <dialog config:type="integer">1</dialog> <element config:type="integer">6</element> <frametitle>Static IP Address Settings</frametitle> <help>6. Enter the IP address of the DNS server. </help> <question>6. DNS Server IP</question> <path>networking,dns,nameservers,0,nameserver</path> <default>192.168.9.1</default> </ask> </ask-list> ..... </general> -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
<help>6. Enter the IP address of the DNS server. </help> <question>6. DNS Server IP</question> <path>networking,dns,nameservers,0,nameserver</path> <default>192.168.9.1</default>
There was a small error in the above section. <path> should be: <path>networking,dns,nameservers,0</path> -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
participants (2)
-
Lundgren, Andrew
-
Razi Khaja