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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

– <strong>The</strong> line starting with firewall disables the firewall. this is not recommended if the<br />

server is on an external network.<br />

– <strong>The</strong> line starting with bootloader removes references to additional drives only available<br />

to the cloner.<br />

– <strong>The</strong> line starting with clearpart --all specifiies to remove all existing partitions.<br />

– <strong>The</strong> line starting with part / defines the root partition to be 512 MB of type ext4.<br />

– <strong>The</strong> line starting with part swap defines a swap partition of size 512 MB.<br />

– <strong>The</strong> two lines starting with part pv specify to make physical volumes.<br />

– <strong>The</strong> next two lines starting with part swap define partitions. Since they have the --grow<br />

parameter, all of the VDISK will be used <strong>for</strong> swap, regardless of the size specified.<br />

Anaconda creates the swap devices based on the order in the kickstart file, so the first<br />

512 MB swap space will be created on the first minidisk while the last two will be<br />

created on VDISKs 300 and 301.<br />

– <strong>The</strong> line starting with volgroup specifies to create a volume group.<br />

– <strong>The</strong> next four lines starting with logvol defines logical volumes based on the table in<br />

.<br />

– <strong>The</strong> line @base specifies a default set of packages <strong>for</strong> the install. <strong>The</strong>se can be<br />

customized later by adding or removing specific packages from the %packages section.<br />

► Add the path to the kickstart folder to /etc/exports:<br />

# vi /etc/exports<br />

/nfs/rhel6/ *(ro,sync)<br />

/nfs/virt-cookbook-RH6 *(ro,sync)<br />

/nfs/ks *(ro,sync)<br />

► Restart the NFS service on the cloner. <strong>The</strong> showmount -e command should show the<br />

exported file systems:<br />

# service nfs reload<br />

# showmount -e<br />

Export list <strong>for</strong> gpok223.endicott.ibm.com:<br />

/nfs/ks *<br />

/nfs/virt-cookbook-RH6 *<br />

/nfs/rhel6 *<br />

<strong>10</strong>.2 Configure the LINUX02 user <strong>for</strong> kickstart<br />

Earlier you should have created the user ID LINUX02. It is now time to configure it <strong>for</strong> kickstart.<br />

LINUX02 must have its own parameter and configuration files, which are again based on the<br />

RH6GOLD user ID. Per<strong>for</strong>m the following steps:<br />

► LOGOFF of MAINT and logon to LNXMAINT. Copy the parameter and configuration files from<br />

RH6GOLD to LINUX02 as follows:<br />

==> copy rh6gold * d linux02 = =<br />

► Edit the LINUX02 PARM-RH6 file. Because this is a non-interactive installation, the vnc<br />

options are no longer required. <strong>The</strong> ks= line directs the installer to get the kickstart file<br />

from the installation server. RUNKS=1 is required <strong>for</strong> kickstarts, and the cmdline option<br />

prevents the installer’s text-based user interface from opening on the 3270 console:<br />

==> x linux02 parm-rh6 d<br />

ramdisk_size=40000 root=/dev/ram0 ro ip=off<br />

CMSDASD=191 CMSCONFFILE=linux02.conf-rh6<br />

ks=nfs:9.60.18.223:/nfs/ks/linux02-ks.cfg<br />

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

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

Saved successfully!

Ooh no, something went wrong!