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.

# become a clone target by mistake.<br />

# Format: BLACKLIST="userA userB userC ..."<br />

BLACKLIST=""<br />

In the following example this file is not modified, thus all defaults are<br />

9.4.2 Creating a configuration file <strong>for</strong> LINUX01<br />

For each Linux guest you want to clone, you must create a configuration file that you can use<br />

to customize the image after cloning. Per<strong>for</strong>m the following steps on the RH6CLONE installation<br />

server:<br />

► Open an SSH session to RH6CLONE as root.<br />

► Install the clone script RPM:<br />

# rpm -ivh /nfs/virt-cookbook-RH6/clone-1.0-<strong>10</strong>.s390x.rpm<br />

Preparing... ########################################### [<strong>10</strong>0%]<br />

1:clone ########################################### [<strong>10</strong>0%]<br />

► Copy and then edit the supplied sample configuration file to reflect the values of the new<br />

Linux system:<br />

# cd /etc/clone<br />

# cp rhel.conf.sample linux01.conf<br />

► Edit the new configuration file with the appropriate values <strong>for</strong> your system. If the new Linux<br />

image is going to be on the same network as the golden image, you are likely to only have<br />

to change two variables: the Internet Protocol (IP) address (IPADDR) and the Domain<br />

Name System (DNS) name (HOSTNAME). In the following example, the IP address is set to<br />

9.60.18.224 and the DNS name to gpok224.endicott.ibm.com.<br />

# vi linux01.conf<br />

# Define the DASD that should be included as a part<br />

# of the clone.<br />

DASD=<strong>10</strong>0,<strong>10</strong>1 1<br />

DASD_ROOT=<strong>10</strong>0 2<br />

VG_NAME= 3<br />

LV_ROOT= 4<br />

# Define networking in<strong>for</strong>mation that will be used <strong>for</strong> the host.<br />

IPADDR=9.60.18.224<br />

SUBCHANNELS=0.0.0600,0.0.0601,0.0.0602<br />

HOSTNAME=gpok224.endicott.ibm.com<br />

NETTYPE=qeth<br />

NETMASK=255.255.255.128<br />

NETWORK=9.60.18.128<br />

SEARCHDNS=endicott.ibm.com<br />

BROADCAST=9.60.18.255<br />

GATEWAY=9.60.18.129<br />

DNS=9.0.2.11<br />

MTU=1500<br />

Note the following points <strong>for</strong> the numbers in black above:<br />

1 This is the range of minidisks that will be copied. You can enter dashes (-)<br />

or commas (,) to specify address ranges or specific disks, respectively.<br />

Make the range following DASD= is one continuous block of text with no<br />

spaces added.<br />

2 This is the minidisk that contains the root file system.<br />

3 If the root file system of the golden image is on a logical volume, specify the<br />

volume group name here.<br />

Chapter 9. Configuring RHEL 6 <strong>for</strong> cloning 153

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

Saved successfully!

Ooh no, something went wrong!