Cobbler PXEboot SLES

How to Install the SLES (11) Operating System over the Network

It’s complicated, but it is possible to install SLES without the DVD in the drive. Cobbler is primarily designed for RHEL/CentOS, but it is a very handy tool for provisioning SLES systems as well.

This how-to begins after you have already configured your Cobbler environment and DHCP should be serving the MAC address for the system to be provisioned.

First, mount and rsync the install DVD/iso to a path on your hard drive, example: /sles/

Add the SLES distro. Specify SLES10 for os-version.

cobbler distro add --name=SLES11.2 --arch=x86_64 --breed=suse \
--initrd=/sles/sles11.2-x86_64/boot/x86_64/loader/initrd \
--kernel=/sles/sles11.2-x86_64/boot/x86_64/loader/linux \
--os-version=sles10 \
--kopts="install=http://192.168.1.100/sles11.2-x86_64"

Make a symlink to share the SLES tree via httpd:

ln -s /sles/sles11.2-x86_64 /var/www/html/sles11.2
service httpd restart

Create a new location for your autoyast (=kickstart) file that is shared by httpd. For example, in the OS source dir:

mkdir autoyast; cp autoyast_server1.xml sles11.2-x86_64/autoyast/

Being a first new install of this OS, I needed a sample autoyast.xml file, so I found one on this page:

<?xml version="1.0"?>
<!DOCTYPE profile>
<profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns">
    <users config:type="list">
        <user>
            <encrypted config:type="boolean">false</encrypted>
            <user_password>myrootpassword</user_password>
            <username>root</username>
        </user>
    </users>
</profile>

Add a profile:

cobbler profile add --name=slesprofile --distro=SLES11.2 \
--kickstart="http://192.168.1.100/sles11.2-x86_64/autoyast/autoyast_server1.xml" \
--kopts='textmode=1 !text !ksdevice !ksendmac !lang' \
--name-servers=192.168.X.X \

Add a system:

cobbler system add --name=server1 --hostname=server1.fqdn.org \
--profile=slesprofile \
--ip=192.168.X.X --mac=AB:CD:EF:GG:HH --subnet=255.255.255.0 --static=true \
--netboot-enabled=Y
Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s