27.12.2012 Views

The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM

The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM

The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter <strong>10</strong>. Installing Linux with kickstart<br />

Kickstart is an automated way of installing RHEL 6. Using kickstart, you can create a single<br />

file that answers all of the questions usually asked during an interactive installation.<br />

In the previous chapter, you cloned to LINUX01 and created three new user IDs <strong>for</strong> virtual<br />

servers. In this chapter you will kickstart a RHEL 6 system to LINUX02. In comparison, cloning<br />

a server is faster, assuming the FLASHCOPY command is available. However, kickstarting a<br />

server is more flexible, as it allows <strong>for</strong> different package configurations as well as pre-install<br />

and post-install scripting.<br />

<strong>The</strong> cloner is now configured as an installation server using NFS to share the installation tree.<br />

You will now configure it as a kickstart server to per<strong>for</strong>m automated installations over the<br />

network. <strong>The</strong> following steps are involved in installing Linux with kickstart:<br />

► Configure the cloner <strong>for</strong> kickstart<br />

► Configure the LINUX02 user <strong>for</strong> kickstart<br />

► Kickstart the LINUX02 user<br />

<strong>10</strong>.1 Configure the cloner <strong>for</strong> kickstart<br />

<strong>The</strong> installer generates a kickstart file at the end of every installation. It is based on the<br />

answers provided during the interactive install. This kickstart file is named anaconda-ks.cfg<br />

and is located in the /root/ directory. This file on RH6CLONE will be used as a template <strong>for</strong><br />

LINUX02.<br />

Per<strong>for</strong>m the following steps:<br />

► Start an SSH session on the cloner (RH6CLONE) as root.<br />

► Start the golden image (RH6GOLD). You could log on to a 3270 session, but you can also<br />

start it from the cloner with the CP XAUTOLOG command:<br />

# vmcp xautolog rh6gold<br />

Command accepted<br />

► Create the directory /nfs/ks/ <strong>for</strong> the kickstart file:<br />

<strong>10</strong><br />

© Copyright <strong>IBM</strong> Corp. 20<strong>10</strong>. All rights reserved. 163

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!