Novell Home

Unattended installation using autoYaST

From Developer Community


This howto shows how to create unattended, automated SUSE Linux Enterprise installations using autoYaST.

Contents


Create the autoYaST profile

First, we have to create an autoYaST profile for the system to be installed. This can be done right after the installation using the option "Clone This System for Autoyast" (see screenshot). This will create a file /root/autoinst.xml which contains all your installation settings.

Image:autoYaST1.png


If you did not create the autoYaST profile during installation, you can create it anytime using the autoYaST module. To get there, go to "Miscellaneous" -> "Autoinstallation" in YaST.

Image:autoYaST2.png

In the autoYaST module, go to "Tools" -> "Create Reference Profile". You will get to a screen that lets you select the options to be included in the profile. Just select everything you want to include in the profile and click on "Create". The system will create the profile and take you to the profile editor, which is explained in the next part.

Image:autoYaST3.png


Edit the autoYaST profile

You can now start editing your autoYaST profile. Either you use the autoYaST module in YaST, which is the more userfriendly way, or you can edit it with your favourite editor and plain XML. You can find the most current autoYaST Documentation under http://www.suse.de/~ug/. This site also contains some scripts that might be useful for you.

If you want to use the GUI, it is pretty much self-explanatory and lets you edit all the options you can include in the autoYaST profile.

Image:autoYaST4.png


Include the profile in your installation source

The last step is to create your profile in your installation source. Installation source can be a network source, a local installation repository or even a CD/DVD installation media set.

To invoke automated installation, the option "autoyast" needs to be passed to linuxrc on boot. This can be done by entering the option in the bootloader GRUB during boot.


The "autoyast" option takes the following options for specifying the location of the autoYaST control file:

Command line variableDescription
autoyast=defaultDefault auto-installation option
autoyast=file://<path>Looks for control file in specified path (relative to source root directory, i.e. file:///autoinst.xml if in the top directory of a CD-ROM )
autoyast=device://<device>/<file>Looks for control file on a storage device. (only device name needed without full path, i.e. /dev/sda1 is wrong, instead use sda1)
autoyast=floppy://<path>Looks for control file in the floppy (Useful when booting from CD)
autoyast=nfs://<server>/<path>Looks for control file on <server>
autoyast=http://<server>/<path>Retrieves the control file from a web server using the HTTP protocol.
autoyast=https://<server>/<path>Retrieves the control file from a web server using HTTPS (encrypted connection) protocol
autoyast=tftp://<server>/<path>Retrieve the control file with TFTP
autoyast=ftp://<server>/<path>Retrieve the control file with FTP


If autoyast=default is defined, YaST2 will look for a file named autoinst.xml in the following three places:

  1. The root directory of the floppy disk.
  2. The root directory of the installation medium.
  3. The root directory of the initial ram disk used to boot the system.

Novell® Making IT Work As One

© 2009 Novell, Inc. All Rights Reserved.