ibm.com/redbooksFront coverz/VM and Linux on IBM System zThe Virtualization Cookbookfor Red Hat Enterprise Linux 5.2Michael MacIsaacBradford HinsonLes
viii The Virtualization Cookbook for Red Hat Enterprise Linux 5.2How to get Redbooks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
82 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2To invoke the new CP load module, use the SHUTDOWN REIPL command. When your system com
Chapter 5. Servicing z/VM 83This shows information about the TCPIP MODULE. Use the TCPSLVL command and the complete file specification (TCPIP MODULE
84 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2
© Copyright IBM Corp. 2008. All rights reserved. 85Chapter 6. Configuring a Network File System server for RHEL 5.2A common method of installing Linux
86 The Virtualization Cookbook for Red Hat Enterprise Linux 5.26.1 Installing Linux on the PCIf you do not have a Linux PC, then you must obtain acc
Chapter 6. Configuring a Network File System server for RHEL 5.2 876.3.1 Copying from physical DVDRHEL 5.2 is distributed on physical CDs or files t
88 The Virtualization Cookbook for Red Hat Enterprise Linux 5.26.3.3 Copying the DVD contentsCopy the contents of the ISO image to the file system.
Chapter 6. Configuring a Network File System server for RHEL 5.2 89make the files associated with this book available. First make a backup copy of th
90 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2
© Copyright IBM Corp. 2008. All rights reserved. 91Chapter 7. Installing RHEL 5.2 on the controllerAt this point, you must have created a new z/VM use
© Copyright IBM Corp. 2008. All rights reserved. ixNoticesThis information was developed for products and services offered in the U.S.A. IBM may not o
92 The Virtualization Cookbook for Red Hat Enterprise Linux 5.27.1 Installing the controllerIn this section you will install the RHEL 5.2 controller
Chapter 7. Installing RHEL 5.2 on the controller 935 This provides read access to the LNXMAINT 192 disk as the user’s 191 disk.6 This provides read a
94 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2====> all /gap/|/overlap/-------------------- 4 line(s) not displayed -----------
Chapter 7. Installing RHEL 5.2 on the controller 95file, and an initial RAMdisk. The fourth file is a configuration file stored on a CMS disk that th
96 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2 RHEL52 EXEC D1 V 69 9 1 7/15/08 9:43:52SWAPGEN
Chapter 7. Installing RHEL 5.2 on the controller 97After:==> x lnxinst conf-rh5DASD=100-10f,300-30fHOSTNAME=<virtc530.itso.ibm.com>NETTYPE=q
98 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2NICDEF statement in the USER DIRECT file), and that two VDISKs have been created at vi
Chapter 7. Installing RHEL 5.2 on the controller 99DMSACP723I A (191) R/O DMSACP723I C (592) R
100 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2Figure 7-1 Initial window of installer3. The Choose a Language window should appear
Chapter 7. Installing RHEL 5.2 on the controller 101Figure 7-2 NFS setup window6. Now the curses windows should end and the install program (anacon
x The Virtualization Cookbook for Red Hat Enterprise Linux 5.2TrademarksIBM, the IBM logo, and ibm.com are trademarks or registered trademarks of Int
102 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2Figure 7-4 Enter installation number3. Because the disks were just formatted by CPF
Chapter 7. Installing RHEL 5.2 on the controller 103Figure 7-5 Formatting DASD for Linux use5. The installer now searches for a previous installati
104 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2Figure 7-6 Choosing custom disk partitioning7. Disks dasda through dasde should sho
Chapter 7. Installing RHEL 5.2 on the controller 1058. Click the New button again, again deselecting all drives except dasda. Under Mount Point, sele
106 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2Figure 7-9 Configuring the /nfs logical volume13.Enter install_lv for the Logical V
Chapter 7. Installing RHEL 5.2 on the controller 10716.At the Network Configuration window, network settings have been automatically taken from the L
108 The Virtualization Cookbook for Red Hat Enterprise Linux 5.220.Remove the majority of the package groups as follows:a. Under Desktop Environments
Chapter 7. Installing RHEL 5.2 on the controller 1097.2 Configuring the controllerNow that your controller is installed, it must be configured. The
110 The Virtualization Cookbook for Red Hat Enterprise Linux 5.27.2.2 Retiring the PC NFS serverYou have now copied all files related to this book t
Chapter 7. Installing RHEL 5.2 on the controller 111Import the RPM key:# cd /nfs/rhel5.2# rpm --import RPM-GPG-KEY-redhat-releaseYou are now ready to
© Copyright IBM Corp. 2008. All rights reserved. xiPrefaceThis IBM® Redbooks® publication describes how to “roll your own” Linux® virtual servers on I
112 The Virtualization Cookbook for Red Hat Enterprise Linux 5.27.2.6 Turning off unneeded servicesA number of services are started in an RHEL 5.2 m
Chapter 7. Installing RHEL 5.2 on the controller 113Turn off the following services using the chkconfig command:# chkconfig cups off# chkconfig iptab
114 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2Set a VNC password using the vncpasswd command. This password will be needed to conne
Chapter 7. Installing RHEL 5.2 on the controller 115Figure 7-13 VNC client session to the VNC serverNote that the VNC server will not be started au
116 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2Set the NFS server to start at boot time and for this session.# chkconfig nfs on# ser
Chapter 7. Installing RHEL 5.2 on the controller 117...touch /var/lock/subsys/localmodprobe vmcp The vmcp command will now be available after the nex
118 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2
© Copyright IBM Corp. 2008. All rights reserved. 119Chapter 8. Installing and configuring RHEL 5.2In this chapter, you will install the copy of Linux
120 The Virtualization Cookbook for Red Hat Enterprise Linux 5.28.1 Installing the golden imageIn this section you will install the RHEL 5.2 golden
Chapter 8. Installing and configuring RHEL 5.2 121====> all /gap/|/overlap/-------------------- 4 line(s) not displayed --------------------
xii The Virtualization Cookbook for Red Hat Enterprise Linux 5.2Production of this IBM Redbooks publication was managed by:Lydia Parziale is a Projec
122 The Virtualization Cookbook for Red Hat Enterprise Linux 5.28.1.3 Preparing RHEL52 bootstrap filesNow that the RHEL52 user is defined, you must
Chapter 8. Installing and configuring RHEL 5.2 1238.1.4 Installing RHEL 5.2 to the golden imageInstall Linux again as described in 7.1.4, “Beginning
124 The Virtualization Cookbook for Red Hat Enterprise Linux 5.21. Select Choose custom layout. from the dropdown menu, then click Next.2. Create the
Chapter 8. Installing and configuring RHEL 5.2 125/dev/mapper/system_vg-root_lv on / type ext3 (rw)/dev/mapper/system_vg-usr_lv on /usr type ext3 (rw
126 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2Make a backup copy of the file /etc/auto.master, then add the following line at the b
Chapter 8. Installing and configuring RHEL 5.2 1278.2.4 Adding additional RPMsWe recommend that you install the same packages as you did on the cont
128 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2Copy the public key to the name authorized_keys using the secure copy command scp:# s
© Copyright IBM Corp. 2008. All rights reserved. 129Chapter 9. Configuring RHEL 5.2 for cloningAt this point you have completed the install of LNXINST
130 The Virtualization Cookbook for Red Hat Enterprise Linux 5.29.1 Formatting DASD for minidisksIn 4.6.2, “Formatting DASD for minidisks” on page 5
Chapter 9. Configuring RHEL 5.2 for cloning 131MAINT DA57 MAINT DA57 3390 MMDA57 DA57 0 3339Detach the seven volumes from MAINT
Preface xiii2008In October 2008, two cookbooks were published, one targeting the Novell/SUSE® SLES distribution, the other targeting the Red Hat RHE
132 The Virtualization Cookbook for Red Hat Enterprise Linux 5.24. Again check for gaps and overlaps. You can use the ALL subcommand with the logical
Chapter 9. Configuring RHEL 5.2 for cloning 1339.2 Cloning a virtual server manuallyBefore using the clone script to clone a server, it is recommend
134 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2Bring the newly copied LVM onlineTo access the root file system on the newly cloned g
Chapter 9. Configuring RHEL 5.2 for cloning 135DoneSetting device 0.0.2101 onlineDoneNow run vgscan and vgchange to activate the newly cloned LVM:# v
136 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2# IBM QETHDEVICE=eth0BOOTPROTO=staticIPADDR=9.12.5.31SUBCHANNELS=0.0.0600,0.0.0601,0.
Chapter 9. Configuring RHEL 5.2 for cloning 137Linux version 2.6.18-92.el5 ([email protected]) (gcc version 4.1.2 20071124 (Red Hat
138 The Virtualization Cookbook for Red Hat Enterprise Linux 5.23. Copy and then edit the supplied sample configuration file to reflect the values of
Chapter 9. Configuring RHEL 5.2 for cloning 13900: DASD 0100 3390 LXAE23 R/W 3338 CYL ON DASD AE23 SUBCHANNEL = 000000: DASD 0101 3390 LXAE24
140 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2Host name will be: linux01.example.comIP address will be: 10.1.40.91Do you want to c
Chapter 9. Configuring RHEL 5.2 for cloning 141Successfully cloned RHEL52 to LINUX01In the final section, the LINUX01 user ID is logged on using XAUT
xiv The Virtualization Cookbook for Red Hat Enterprise Linux 5.2 Chapter 6, “Configuring a Network File System server for RHEL 5.2” on page 85, expl
142 The Virtualization Cookbook for Red Hat Enterprise Linux 5.29.4.1 Defining three more user IDsDefine three more user IDs for Linux virtual serve
Chapter 9. Configuring RHEL 5.2 for cloning 143====> pre off====> all /gap/|/overlap/-------------------- 4 line(s) not displayed -----------
144 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2'CP SET VSWITCH VSW1 GRANT LNXINST''CP SET VSWITCH VSW1 GRANT RHEL52&a
Chapter 9. Configuring RHEL 5.2 for cloning 145If you forgot to grant access to the VSWITCH you will see an error message. Verify that you have OSA d
146 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2Figure 9-2 Linux virtual server system - DASD view and role viewVMDA57VMDA52VMDA54V
© Copyright IBM Corp. 2008. All rights reserved. 147Chapter 10. Installing Linux with kickstartKickstart is an automated way of installing RHEL 5.2. U
148 The Virtualization Cookbook for Red Hat Enterprise Linux 5.210.1 Configure the controller for kickstartIn this section, you configure the contro
Chapter 10. Installing Linux with kickstart 149@base-xdevice-mapper-multipath-sysreport%post 13echo /dev/dasdq1 swap swap defaults 0 0 >> /etc/
150 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2Starting NFS daemon: [ OK ]Starting NFS mountd: [ OK ]# showmount -eExport list f
Chapter 10. Installing Linux with kickstart 15100: STORAGE = 512M00: Storage cleared - system reset.==> ipl cms...Do you want to IPL Linux from mi
Preface xvConventionsThe following font conventions are used in this book:Monospace and bold Commands entered by the user on the command line<val
152 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2
© Copyright IBM Corp. 2008. All rights reserved. 153Chapter 11. Servicing Linux with Red Hat NetworkThis chapter describes Red Hat Network (RHN) and i
154 The Virtualization Cookbook for Red Hat Enterprise Linux 5.211.1 Registering your system with RHNThis section assumes you have already obtained
Chapter 11. Servicing Linux with Red Hat Network 155Updated: cpp.s390x 0:4.1.1-43.el5Complete!Now query the cpp package and you should see that it ha
156 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2Figure 11-2 RHN system detailsFor more information about managing your systems thro
Chapter 11. Servicing Linux with Red Hat Network 157Next, create the file /etc/auto.controller and add the following line, substituting the IP addres
158 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2Next, back up the current repository and create a new one with the createrepo command
© Copyright IBM Corp. 2008. All rights reserved. 159Chapter 12. Cloning open source virtual serversThis chapter describes how to clone and customize t
160 The Virtualization Cookbook for Red Hat Enterprise Linux 5.212.1 Creating a virtual Web serverThe example in this section uses the LINUX01 user
Chapter 12. Cloning open source virtual servers 161httpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off# chkconfig httpd on# chkconf
xvi The Virtualization Cookbook for Red Hat Enterprise Linux 5.2
162 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2Verify that the firewall is off using the chkconfig --list command. The service name
Chapter 12. Cloning open source virtual servers 16312.1.4 Configuring SSL for ApacheUse the Secure Sockets Layer (SSL) to encrypt data between the c
164 The Virtualization Cookbook for Red Hat Enterprise Linux 5.212.1.6 Apache resourcesThe following Web sites contain additional information about
Chapter 12. Cloning open source virtual servers 165=============================================================================Installing: openldap-
166 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2rootdn "cn=ldaproot,dc=itso,dc=ibm,dc=com"...Set the rootpw line to a value
Chapter 12. Cloning open source virtual servers 167The PADL tools have a shared configuration file named migrate_common.ph. Make a backup copy of thi
168 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2Now it is time to populate the LDAP server. This can be done while the server is not
Chapter 12. Cloning open source virtual servers 169Delete the ldapuser1 from the file system with the userdel command, and delete root from LDAP usin
170 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2On the next window, set the Server value to point to the LDAP server. In this example
Chapter 12. Cloning open source virtual servers 171objectClass: accountobjectClass: posixAccountobjectClass: topobjectClass: shadowAccountshadowLastC
© Copyright IBM Corp. 2008. All rights reserved. 1Chapter 1. Introduction to z/VM and LinuxVirtualization is a hot topic in the IT industry. The IBM m
172 The Virtualization Cookbook for Red Hat Enterprise Linux 5.212.3.1 Cloning a Linux virtual serverFrom the controller, clone a basic virtual serv
Chapter 12. Cloning open source virtual servers 173Confirm that the RPMs were added:# rpm -qa | grep sambasamba-common-3.0.28-0.el5.8samba-client-3.0
174 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2Retype new SMB password: <lnx4vm>startsmbfilepwent_internal: file /etc/samba/sm
Chapter 12. Cloning open source virtual servers 175You may have to click different user name if the user or password on the new Samba server is diffe
176 The Virtualization Cookbook for Red Hat Enterprise Linux 5.212.4 Creating a virtual application development serverMost Linux distributions come
Chapter 12. Cloning open source virtual servers 177C/C++http://gcc.gnu.org/onlinedocs/gcc/http://en.wikipedia.org/wiki/GNU_Compiler_Collection#Extern
178 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2
© Copyright IBM Corp. 2008. All rights reserved. 179Chapter 13. Miscellaneous recipesThis chapter has the following sections of miscellaneous tasks th
180 The Virtualization Cookbook for Red Hat Enterprise Linux 5.213.1 Adding a logical volumeThere are times when you require more disk space than a
Chapter 13. Miscellaneous recipes 181Adding module ext3Adding module dasd_mod with options dasd=100-104Adding module dasd_eckd_modAdding module dasd_
2 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2z/VM 5.3z/VM 5.3 became generally available in June 2007. Scalability was extended to a
182 The Virtualization Cookbook for Red Hat Enterprise Linux 5.213.1.4 Create the logical volume and file systemThe overall steps involved in creati
Chapter 13. Miscellaneous recipes 183 --- NEW Physical volume --- PV Name /dev/dasde1 VG Name PV Size 4.59 GB Alloca
184 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2 Segments 2 Allocation inherit Read ahead sectors 0
Chapter 13. Miscellaneous recipes 185In this example, there is only one subdirectory. You can move the contents from the root file system to the new
186 The Virtualization Cookbook for Red Hat Enterprise Linux 5.20.0.0100(ECKD) at ( 94: 0) is dasda : active at blocksize 4096, 600840 blocks, 2347 M
Chapter 13. Miscellaneous recipes 187# df -h | grep home/dev/mapper/homevg-homelv 12G 152M 11G 2% /homeYou have now added
188 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2# service nfs startStarting NFS services: [ OK ]Starting NFS quotas: [ OK ]Start
Chapter 13. Miscellaneous recipes 189Under User Information, select Cache Information and Use LDAP. Under Authentication, select Use LDAP Authenticat
190 The Virtualization Cookbook for Red Hat Enterprise Linux 5.29.12.5.32:/home/ldapuser1 on /home/ldapuser1 type nfs (rw,addr=9.12.5.32)You have now
Chapter 13. Miscellaneous recipes 191To enter a rescue environment, initiate an interactive Linux installation. Perform the following steps to enter
Chapter 1. Introduction to z/VM and Linux 31.2 This book’s approachToday there are numerous technical publications that discuss virtualization, but
192 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2be no device nodes under /dev). If you need to rewrite the master boot record (MBR),
© Copyright IBM Corp. 2008. All rights reserved. 193Chapter 14. Monitoring z/VM and LinuxThis chapter briefly describes how to monitor z/VM and Linux.
194 The Virtualization Cookbook for Red Hat Enterprise Linux 5.214.1 Using INDICATE and other commandsz/VM has many commands to monitor the state of
Chapter 14. Monitoring z/VM and Linux 1952 Paging to expanded storage is displayed here. Most z/VM systems on z9 class machines can sustain several t
196 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2EDLWRK6 Q3 IO 00000750/00000302 ... .0969 A02EDLWRK3 Q3 AP 00005098/0
Chapter 14. Monitoring z/VM and Linux 197Determining storage or memoryTo see how much central and expanded storage (memory) are installed and allocat
198 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2The following list gives the short form of these commands, without associated output:
Chapter 14. Monitoring z/VM and Linux 1993. At IPL time, the SYSTEM CONFIG file is modified by having a line appended to the end. Verify this with th
200 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2 Active I
Chapter 14. Monitoring z/VM and Linux 201====> file6. Create a remote data retrieval authorization file with your z/VM system identifier; replace
4 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2 Use of manual installation versus cloning script or EXECTwo methods of cloning are de
202 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2/* Increase the size of the SAMPLE CONFIG and EVENT CONFIG */'CP MONITOR SAMPLE
Chapter 14. Monitoring z/VM and Linux 203Figure 14-1 Performance Toolkit logon window3. Enter any valid user ID and password (in this example, MAIN
204 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2Figure 14-2 Browser interface to the Performance ToolkitUsing a 3270 interfaceLogon
Chapter 14. Monitoring z/VM and Linux 205Figure 14-3 Performance Toolkit 3270 Interface Main Menu windowDrilling down into report windowsYou should
206 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2and Red Hat RHEL 4 and RHEL 5 have been enabled for the kernel to gather performance
Chapter 14. Monitoring z/VM and Linux 207# ls.rmfpms_config README bin enable_autostart.rmfpms_config_autostart autostart_rmf
208 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2For the second requirement, SLES 9, SLES 10 and RHEL 5 now have this function built i
Chapter 14. Monitoring z/VM and Linux 209view that data, drill down into menu 29, Linux systems. This can be done either from the browser interface o
210 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2In this example, it starts at x3300 and ends at x6FFF (this is a PAGE boundary). You
© Copyright IBM Corp. 2008. All rights reserved. 211Appendix A. ReferencesThis appendix describes the location and content of z/VM configuration files
Chapter 1. Introduction to z/VM and Linux 5SLES10S2 or RHEL52 This is the SLES10 SP2 or RHEL 5.2 golden image. This is the Linux system that is clon
212 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2z/VM configuration filesz/VM differs from Linux in regard to the location and number
Appendix A. References 213quit Exit XEDIT if no changes have been madeqquit Exit XEIDT even if changes have not been savedleft <n> Shift ‘n’ ch
214 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2:<nn> go to line number <nn>:r <file> read <file> into the cu
© Copyright IBM Corp. 2008. All rights reserved. 215Appendix B. z/VM source codeThis appendix lists the source code associated with this book. Obtaini
216 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2z/VM REXX EXECs and XEDIT macrosThis section lists z/VM REXX EXECs and XEDIT macros.T
Appendix B. z/VM source code 217 say '' say ' Format one or a range of DASD as page, perm, spool or temp disk space' say &apo
218 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2 parse upper var dasds dasd dasds dashPos = pos('-', dasd) if (das
Appendix B. z/VM source code 219/*| parm 1: source |*//*| parm 2: target
220 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2return retVal /* from formatOne */ /*+-----------------------------------------------
Appendix B. z/VM source code 221'command set num on''command set nulls on''command set serial off''command set cmd
6 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2
222 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2'command c/OSASF OSASF/OSASF' newPass'/*''command c/5VMRSC40
Appendix B. z/VM source code 223'command c/RDVF WDVF MDVF/'newPass newPass newPass'/*''command c/READ WRITE M
224 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIALDAMAGES (INCLUD
Appendix B. z/VM source code 225 say "Syntax is:" say "" say " >>---LABEL540--res--spl--pag--w01--w02------------
226 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OFTHE USE OR DISTR
© Copyright IBM Corp. 2008. All rights reserved. 227Appendix C. Linux source codeThis section lists the Linux source code associated with this book. F
228 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2# "z/VM and Linux on IBM System z: The Virtualization Cookbook for RHEL4"
Appendix C. Linux source code 229# If the host has a id_dsa.pub file then append that to the clone's# authorized_keys file.#+-------------------
230 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2 fi done # Expand DASD ranges if they have been defined if [ -n "$DASD"
Appendix C. Linux source code 231 if [ $ret_val -eq 0 ] ; then nblks=`cat /proc/dasd/devices | grep $target_dev_node | awk '{ print $13 }&a
© Copyright IBM Corp. 2008. All rights reserved. 7Chapter 2. PlanningThis chapter covers the planning needed before you install z/VM. It begins by dis
232 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2# Arg 1: Source minidisk# Arg 2: Target minidisk#+-------------------------------
Appendix C. Linux source code 233 { [ -n "$VERBOSE" ] && echo "Unlinking minidisks ..." while [ $# -gt 0 ]; do set_o
234 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2 source_host=$(echo $source_hostname| awk -F. '{print $1}') [ ! -d $CLONE
Appendix C. Linux source code 235 set_offline $target_mdisk abort 1 fi } #+-------------------------------------------------------------------
236 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2 }#+--------------------------------------------------------------------------+functi
Appendix C. Linux source code 237function autolog# Issue an XAUTOLOG command to bring up the new cloned image.#+-------------------------------------
238 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2echo "Cloning $master_linux_id to $cloned_linux_id ..."[ -z "$DASD&quo
© Copyright IBM Corp. 2008. All rights reserved. 239Related publicationsThe publications listed in this section are considered particularly suitable f
240 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2Online resourcesThese Web sites are also relevant as further information sources: Th
© Copyright IBM Corp. 2008. All rights reserved. 241IndexSymbols$ALLOC$, z/VM user ID 55, 93, 120, 131, 142/etc/auto.master 126/etc/fstab 110,
8 The Virtualization Cookbook for Red Hat Enterprise Linux 5.22.1 Bill of materialsThe resources needed for a Linux on System z project can be divid
242 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2creating 184Ffdasd command 181Features statement 42FILELIST command 95Firewal
Index 243monitor stream support 208monitoring Linux 206–207mount command 124MySQL 176NNetwork File System (NFS) 85networking resources 9
244 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2ldap 168smb 174vncserver 114servicesturning off unneeded 112SET SIGNAL comman
Index 245WWhat is virtualization 2which command 139worksheetsexamples in the book 13XXAUTOLOG command 44, 59, 94, 121XEDIT"" prefi
246 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2
(0.5” spine)0.475”<->0.873”250 <-> 459 pagesThe Virtualization Cookbook for Red Hat Enterprise Linux 5.2The Virtualization Cookbook for Re
The Virtualization Cookbook for Red Hat Enterprise Linux 5.2The Virtualization Cookbook for Red Hat Enterprise Linux 5.2
®SG24-7492-00 ISBN 0738431818INTERNATIONAL TECHNICALSUPPORTORGANIZATIONBUILDING TECHNICAL INFORMATION BASED ON PRACTICAL EXPERIENCEIBM Redbooks are de
Chapter 2. Planning 9These resources are described in more detail in the chapters that follow.2.1.3 Networking resourcesThe following network resour
10 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2For example, Figure 2-1 shows the labeling convention for the DASD in LPAR M, of type
Chapter 2. Planning 11DASD versus SCSI/FCPThis book describes how to use conventional ECKD DASD and does not discuss FBA disks accessed over SCSI/FCP
International Technical Support OrganizationThe Virtualization Cookbook for Red Hat Enterprise Linux 5.2October 2008SG24-7492-00
12 The Virtualization Cookbook for Red Hat Enterprise Linux 5.22.4 Memory planningPlanning memory may be the most difficult issue with z/VM and Linu
Chapter 2. Planning 13You may want to define a finer granularity for passwords based on the following system administration roles: The main z/VM sys
14 The Virtualization Cookbook for Red Hat Enterprise Linux 5.22.6.2 z/VM DASD used in this bookTable 2-3 lists the z/VM DASD resource values used i
Chapter 2. Planning 152.6.3 Linux resources used in this bookTable 2-4 lists the Linux PC NFS server resources used for the first System z Linux ins
16 The Virtualization Cookbook for Red Hat Enterprise Linux 5.22.7 Blank worksheetsBlank copies of the same four worksheets are provided for your us
Chapter 2. Planning 172.7.2 z/VM DASD worksheetUse the worksheet in Table 2-8 to document the z/VM DASD that you will use. Table 2-8 z/VM DASD bla
18 The Virtualization Cookbook for Red Hat Enterprise Linux 5.22.7.3 Linux resources worksheetUse the worksheet in Table 2-10 to document the resour
© Copyright IBM Corp. 2008. All rights reserved. 19Chapter 3. Configuring a desktop machineMany people use Microsoft® Windows as a desktop operating s
20 The Virtualization Cookbook for Red Hat Enterprise Linux 5.23.1 PuTTY: a free SSH client for WindowsThroughout this book, SSH is used to log into
Chapter 3. Configuring a desktop machine 21Figure 3-2 Setting logging4. In the left window, click SSH near the bottom, as shown in Figure 3-3.5. On
© Copyright International Business Machines Corporation 2008. All rights reserved.Note to U.S. Government Users Restricted Rights -- Use, duplication
22 The Virtualization Cookbook for Red Hat Enterprise Linux 5.27. Select the Use background colour to erase screen check box, which results in a bett
Chapter 3. Configuring a desktop machine 2310.Click Session in the left pane, as shown in Figure 3-6. 11.Click Default Settings in the Saved Sessions
24 The Virtualization Cookbook for Red Hat Enterprise Linux 5.22. Under the Saved Sessions text area, choose a name that you will remember. In this e
Chapter 3. Configuring a desktop machine 253.2.2 Customizing RealVNCThe latest VNC protocol is Version 4, which is the default with the VNC client.
26 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2 Have the session automatically reconnect after logoff. Having a new logon window com
© Copyright IBM Corp. 2008. All rights reserved. 27Chapter 4. Installing and configuring z/VMTo complete this chapter, you must complete the majority
28 The Virtualization Cookbook for Red Hat Enterprise Linux 5.24.1 Installing z/VM from DVDThe section that follows assumes a first-level installati
Chapter 4. Installing and configuring z/VM 29Figure 4-1 Integrated 3270 Console iconA window entitled Integrated 3270 Console for <your CPC>
30 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2Figure 4-2 CPC Recovery menu with Load from CD-ROM or Server icon present8. On the L
Chapter 4. Installing and configuring z/VM 31Figure 4-4 Selecting z/VM 5.4 RAMdisk systemb. From the Confirm the action window, click Yes. You shou
Contents iiiContentsNotices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
32 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2Figure 4-5 z/VM first boot on Integrated console3. Invoke the instplan command. This
Chapter 4. Installing and configuring z/VM 33Figure 4-6 Installation Planning window5. On this window, type X next to AMENG (or select your languag
34 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2Running INSTDVDThe INSTDVD EXEC copies the z/VM system from DVD to disk.1. Execute the
Chapter 4. Installing and configuring z/VM 355. At the Integrated 3270 Console, type GO. You should see a messages of the form DVDLOAD: LOADING FILE
36 The Virtualization Cookbook for Red Hat Enterprise Linux 5.26. Move back to the Integrated 3270 console window. You should see the Standalone Prog
Chapter 4. Installing and configuring z/VM 372. IPL CMS, then press Enter at the VM READ prompt in the lower right corner. You should see the Ready;
38 The Virtualization Cookbook for Red Hat Enterprise Linux 5.29. You will lose the current session on the Integrated 3270 Console, but the system sh
Chapter 4. Installing and configuring z/VM 393. The z/VM TCP/IP Configuration Wizard opens as shown in Figure 4-10. The first field, User ID, should
40 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2Figure 4-12 IPWIZARD window 35. In general, a value for the Port Name is no longer n
Chapter 4. Installing and configuring z/VM 414.3 Configuring the XEDIT profileLogon to MAINT (if not logged on already).The XEDIT command looks for
iv The Virtualization Cookbook for Red Hat Enterprise Linux 5.24.1 Installing z/VM from DVD . . . . . . . . . . . . . . . . . . . . . . . . . . . .
42 The Virtualization Cookbook for Red Hat Enterprise Linux 5.24.4 Customizing the SYSTEM CONFIG fileThe first configuration file read when z/VM IPL
Chapter 4. Installing and configuring z/VM 43Features , Disable , /* Disable the following features */ Set_Privclass ,
44 The Virtualization Cookbook for Red Hat Enterprise Linux 5.24.5 Configuring TCP/IP to start at IPL timeConfigure the TCPIP service machine to be
Chapter 4. Installing and configuring z/VM 45'CP XAUTOLOG VMSERVU''CP XAUTOLOG VMSERVR''CP XAUTOLOG DTCVSW1''CP XA
46 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2ENTER READ PASSWORD:readDMSVML2060I MAINT 191 linked as 0120 file mode Z2. Copy the PR
Chapter 4. Installing and configuring z/VM 474.5.4 Shutting down and reIPLing the systemYou may want to be able to shut down and reIPL z/VM without
48 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2If you do not have sufficient DASD, this number can be reduced. Having adequate paging
Chapter 4. Installing and configuring z/VM 49ftp> put CPFORMAT.EXEC...ftp> quitUsing the CPFORMAT EXECLog back into MAINT. You should now have
50 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2MAINT D951 MAINT D951 3390 NWD951 D951 0 3339TargetID Tdev Owner
Chapter 4. Installing and configuring z/VM 514. Attach the eight volumes that will be used for the controller, the common CMS disk, and the golden im
Contents vChapter 6. Configuring a Network File System server for RHEL 5.2 . . . . . . . . . . . . . . 856.1 Installing Linux on the PC . . . . .
52 The Virtualization Cookbook for Red Hat Enterprise Linux 5.24.6.3 Updating the SYSTEM CONFIG fileNow that the PAGE and PERM volumes are ready for
Chapter 4. Installing and configuring z/VM 53User_Volume_Include MM*/* User_Volume_List USRP01 *//* User_Volume_List USRP02 */...====> fil
54 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2 ------ ------ ----SUMMARY
Chapter 4. Installing and configuring z/VM 55The minidisks with the END option specified in this directory will not be included in the following DISK
56 The Virtualization Cookbook for Red Hat Enterprise Linux 5.27. Save your changes and run DISKMAP again. Edit the USER DISKMAP file. This time you
Chapter 4. Installing and configuring z/VM 573. Format the larger 192 disk as the D minidisk, which should take a minute or two:==> format 192 dDM
58 The Virtualization Cookbook for Red Hat Enterprise Linux 5.23. By default, CMS tries to access the 191 disk as A and the 192 disk as D. Also, you
Chapter 4. Installing and configuring z/VM 59 CHPW540 XEDIT D1 V 77 194 3 7/01/08 4:30:39 CPFORMAT EXEC D
60 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2'CP XAUTOLOG DTCVSW1''CP XAUTOLOG DTCVSW2''cp set pf12 ret&ap
Chapter 4. Installing and configuring z/VM 614.9.1 VM security productsYou might want to use a z/VM security product such as IBM RACF® or CA VM:Secu
vi The Virtualization Cookbook for Red Hat Enterprise Linux 5.29.1 Formatting DASD for minidisks . . . . . . . . . . . . . . . . . . . . . . . . . .
62 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2DMSXDC546E Target not found====> quitThe Target not found message shows that the st
Chapter 4. Installing and configuring z/VM 63To learn how to back up these volumes to tape, refer to Step 11, Store a backup copy of the z/VM system
64 The Virtualization Cookbook for Red Hat Enterprise Linux 5.24.11.1 Modifying labels in the SYSTEM CONFIG fileAn HMC 3270 session is needed becaus
Chapter 4. Installing and configuring z/VM 65DMSXCG517I 1 occurrence(s) changed on 1 line(s)DMSXCG517I 1 occurrence(s) changed on 1 line(s)6. Clear t
66 The Virtualization Cookbook for Red Hat Enterprise Linux 5.24.11.2 Modifying labels in the USER DIRECT fileIn this section you will modify the sy
Chapter 4. Installing and configuring z/VM 672. Now that the five volumes have been relabeled (this is sometimes called “clipping the volumes”, which
68 The Virtualization Cookbook for Red Hat Enterprise Linux 5.28. Go back to the Integrated 3270 console. After a few minutes, the Standalone Program
Chapter 4. Installing and configuring z/VM 69Perform this step only if you successfully completed 4.10, “Backing up your z/VM system to tape” on page
70 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2
© Copyright IBM Corp. 2008. All rights reserved. 71Chapter 5. Servicing z/VMThis chapter describes how to apply: A Programming Temporary Fix (PTF) A
Contents viiChapter 13. Miscellaneous recipes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17913.1 Adding a lo
72 The Virtualization Cookbook for Red Hat Enterprise Linux 5.25.1 Applying a PTFYou may determine that you need to apply a specific fix or PTF to y
Chapter 5. Servicing z/VM 73_ SEGBLD PPF D2 _ SERVP2P PPF D1 _ UCENG PPF D2 s ZVM PPF D2 _ 4OSASF4
74 The Virtualization Cookbook for Red Hat Enterprise Linux 5.21. Click Support and Downloads at the top menu.2. Click Downloads and Drivers on the l
Chapter 5. Servicing z/VM 75150 Opening BINARY mode data connection for vlst1585.bin (7168 bytes).7168 bytes transferred in 0.231 seconds. Transfer r
76 The Virtualization Cookbook for Red Hat Enterprise Linux 5.23. The SERVICE command will write to the current A disk. Again access minidisk 500 as
Chapter 5. Servicing z/VM 77USER DSC LOGOFF AS BLDCMS USERS = 7 FORCED BY MAINTVMFP2P2760I PUT2PROD processing completed successfully for SA
78 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2Point a Web browser to:https://techsupport.services.ibm.com/server/login1. If you have
Chapter 5. Servicing z/VM 794. Use the FTP client to obtain the RSU envelopes from the Internet. The envelope files can be large, so this may take so
80 The Virtualization Cookbook for Red Hat Enterprise Linux 5.25.2.3 Receiving, applying, and building the serviceYou must receive, apply, and build
Chapter 5. Servicing z/VM 815. Invoke the VMFVIEW SERVICE command to review the results of the previous SERVICE command. Following is an example:==&g
Komentarze do niniejszej Instrukcji