164 z/VM and Linux on IBM System z: The Virtualization Cookbook for Red Hat Enterprise Linux 6.0
# PROMPT - This will set if the script should prompt the user for
# confirmation before cloning. If set to "y" the user
# will be prompted to continue. If set to "n" the script
# will run without confirmation.
PROMPT=y
# CLONE_MNT_PT - This specifies the location on the filesystem
# that the cloned root filesystem should be mounted
# to. If the directory does not exist it will be
# created the first run.
CLONE_MNT_PT=/mnt/clone
# CLONE_METHOD - This is used to determine what method you want to use
# for cloning. It can have a value of AUTO, which will first
# attempt FLASHCOPY then fall back to dd, or DD which will
# only try to perform a Linux dd command.
CLONE_METHOD=auto
# BLACKLIST - List of z/VM user IDs forbidden to be used as clone targets.
# It's a good idea to add your master server here, so it doesn't
# become a clone target by mistake.
# Format: BLACKLIST="userA userB userC ..."
BLACKLIST=""
In the following example, this file is not modified, so all the defaults are present.
9.4.2 Creating a configuration file for LINUX01
For each Linux guest you want to clone, you must create a configuration file that you can use
to customize the image after cloning. Perform the following steps on the RH6CLONE
installation server:
1. Open an SSH session to RH6CLONE as root.
2. Install the clone script RPM:
# rpm -ivh /nfs/virt-cookbook-RH6/clone-1.0-10.s390x.rpm
Preparing... ########################################### [100%]
1:clone ########################################### [100%]
3. Copy and then edit the supplied sample configuration file to reflect the values of the new
Linux system:
# cd /etc/clone
# cp rhel.conf.sample linux01.conf
4. Edit the new configuration file with the appropriate values for your system. If the new Linux
image is going to be on the same network as the golden image, you are likely to only have
to change two variables: the Internet Protocol (IP) address (IPADDR) and the Domain
Name System (DNS) name (HOSTNAME). In the following example, the IP address is set
to 9.60.18.224 and the DNS name to gpok224.endicott.ibm.com.
# vi linux01.conf
# Define the DASD that should be included as a part
# of the clone.
DASD=100,101 1
DASD_ROOT=100 2
VG_NAME= 3
LV_ROOT= 4
Commenti su questo manuale