SLES 10 Automated Network Install How-To, using IVM
This Wiki topic specifically addresses SLES 10 network installation in a Virtual I/O server (VIOS) environment, however the steps can also apply to a non-VIO environment. The motivation behind the creation of this document was that SLES 10 network install on System p is not currently well documented or in a single place.
Please note that network installation for SLES 10 has changed from SLES 9. The changes will be noted as they come up.
This document was written using an OP720 and IVM (VIOS 1.3.0.0-FP-8.0). The install server was an IVM LPAR running RHEL 4.3 with a full install. It is assumed the reader has set up a basic IVM configuration that includes an external VLAN and has defined at least 2 LPARs. If further information on IVM setup is required, please refer to http://www-128.ibm.com/developerworks/linux/library/l-pow-ivm
.
The following topics will be covered
- 1.0 Integrated Virtualization Manager (IVM) network installation considerations.
- 1.1 Creating an internal VLAN for install purposes.
- 2.0 Setting up a network install server
- 2.1 Creating the SLES 10 install tree
- 2.2 Setting up the TFTP server
- 2.3 Using the install kernel
- 2.4 Setting up the DHCP server
- 2.5 Setting up NFS
- 2.6 Creating a working autoinstall file
- 3.0 Starting a SLES 10 network install
1.0 Integrated Virtualization Manager (IVM) network install considerations
In this example there are 2 virtual Ethernet adapters, #1 is bridged and tied to a physical Ethernet port and . Virtual Ethernet adapter #2 will be used as an inter-LPAR VLAN and is not bridged. The network installs will be done using using adapter #2.
1.1 Creating an internal VLAN for install purposes.
Creating an internal VLAN using IVM is quite straightforward. From the View/Modify Partitions view, select an LPAR by clicking on its name, click on the
Virtual Ethernet tab and select VLAN 2 for adapter 2. Repeat this for each desired LPAR. (see below)

Restart the partition and it will come up with a new ethernet adapter that has to be configured. For our purposes create the file /etc/sysconfig/network-scripts/ifcfg-eth1 with the following contents..
Next, restart network services and verify the configuration.
2.0 Setting up the install server
In this example the install server, or LPAR, has a clean full RedHat 4.4 install. As such, the Linux commands used are mostly RedHat specific. Also, eth1 is set up on the 10.1.1.0 network with IP address 10.1.1.1/255.255.255.0.
2.1 Creating a SLES 10 Install Tree
The install tree is a directory with the merged contents of all 4 SLES 10 CD's. Create the directory /install/sles10. Then, for each CD run the following commands, replacing duplicate files
 | NOTE - The SLES 10 install tree differs from SLES 9
|
The final install tree should look appear similar to below. The autoinst-yast XML file will be created in a later step and is required for automated installs
2.2 Setting up the TFTP server
Install the tftp-server RPM if it was not installed by default. Create /tftpboot if it does not exist.
Edit /etc/xinetd.d/tftp and change disabled = yes to "no" as follows
Next, restart the xinetd service
2.3 Using the SLES10 install kernel
There are basically 2 ways to utilize the install kernel. The first is to use the default install kernel and do a manual network install. The second involves modifying the install kernel and results in an automated network install.
2.3.1 Using the default install kernel
Get the install kernel (inst64) from the /install/sles10/suseboot directory and copy it into /tftproot
2.3.2 Modifying the default install kernel
Get the mkzimage_cmdline and mkzimage files. In SLES 9, these files were on the install media. For SLES 10 they are built into the lilo RPM. Unfortunately, the best way to get these files and work with them is to use an installed SLES 10 machine. The most straightforward way is to build a SLES 10 LPAR manually and follow the 3 instructions before automating later installs.
 | NOTE - The location of the mkzimage and mkzimage_cmdline commands has changed. The syntax of mkzimage_cmdline has also changed
|
First, get the install kernel inst64 from the /install/sles10/suseboot directory.
Next, use mkzimage_cmdline to embed command line commands to the install kernel.
Finally, copy the modified inst64 to tftpboot
2.4 Creating a DHCP server.
First, create a DHCP server config file to serve only the 10.1.1.0 network. Create/edit /etc/dhcpd.conf file. Use the following sample contents...
Next, start dhcpd daemon and make the service permanent
2.5 Setting up NFS
First, edit /etc/exports and add the following line
Next, restart nfs and verify /install is shared
2.6 Creating a working autoinstall file
Add a working autoinst.yast file to the install tree (/install/sles10). This file can be modified based on specific requirements. In my experiences an autoinst file that worked on SLES 9 will not work with a SLES 10 network install
 | NOTE - Valid and required SLES 10 auto install XML elements differ from SLES 9
|
Below is a sample XML file that works...
3.0 Starting a SLES 10 network install
To start an automated install, boot to SMS and choose to boot from the second virtual Ethernet adapter
As the system boots the install kernel, it will pause for 10 second to give the user an opportunity to modify the embedded parameters that are passed, these should look familiar
The SLES 10 install should take around 15 minutes. After the install completes the LPAR will reboot and some post install configuration will take place before a login prompt appears. The root password in this case will be "passw0rd".
Good Luck 