162 z/VM and Linux on IBM System z: The Virtualization Cookbook for Red Hat Enterprise Linux 6.0
2. Change the host name in the /etc/hosts file:
# cd /mnt/linux01/etc/sysconfig
# vi network
NETWORKING=yes
HOSTNAME=gpok224.endicott.ibm.com
GATEWAY=9.60.18.129
3. Change the IP address in the /etc/sysconfig/network-scripts/ifcfg-eth0 file:
# cd network-scripts
# vi ifcfg-eth0
DEVICE="eth0"
BOOTPROTO="static"
DNS1="9.0.3.1"
DOMAIN="endicott.ibm.com"
GATEWAY="9.60.18.129"
IPADDR="9.60.18.224"
MTU="1500"
NETMASK="255.255.255.128"
NETTYPE="qeth"
NM_CONTROLLED="yes"
ONBOOT="yes"
OPTIONS="layer2=0 portno=0"
PORTNAME="DONTCARE"
SUBCHANNELS="0.0.0600,0.0.0601,0.0.0602"
Unmounting and detaching the target disk
Now that the target disks have been copied and modified, they can be detached. Perform the
following steps:
1. Change to the default directory with the cd command, use the sync command to flush the
disks, and use the umount command to unmount the modified root file system:
# cd
# sync
# umount /mnt/linux01
2. Set the LINUX01 1100-1101 disks offline with the chccwdev command and detach them
using the CP DETACH command:
# vmcp det 2100
2100 DETACHED
You should now be ready to perform an IPL of the manually cloned system.
Performing an IPL of the target system
Log on to a 3270 session as LINUX01. CMS will undergo an IPL and the PROFILE EXEC file will
ask you if you want to perform an IPL from minidisk 100. Type y for yes and Linux should
boot. Look for the modified host name (gpok224 in this example):
LOGON LINUX01
NIC 0600 is created; devices 0600-0602 defined
z/VM Version 6 Release 1.0, Service Level 1002 (64-bit),
built on IBM Virtualization Technology
There is no logmsg data
FILES: NO RDR, NO PRT, NO PUN
LOGON AT 15:27:24 EDT MONDAY 10/04/10
z/VM V6.1.0 2010-09-23 11:31
Commenti su questo manuale