You are on page 1of 21

V10.

cover

IBM Training Front cover


Course Quick View with Full TOC

Installing, Configuring, and Managing KVM for IBM z Systems


Course code ZV45G ERC 1.3
Course Quick View with Full TOC

Trademarks
IBM, the IBM logo, and ibm.com are trademarks or registered trademarks of International Business
Machines Corp., registered in many jurisdictions worldwide.
The following are trademarks of International Business Machines Corporation, registered in many
jurisdictions worldwide:
DS8000® Express® FICON®
FileNet® HiperSockets™ IBM Business Partner®
Real-time Compression™ Redbooks® Redpaper™
Resource Link® S/390® Storwize®
System Storage® System z® XIV®
z/VM® z10™ z9®
Linux is a registered trademark of Linus Torvalds in the United States, other countries, or both.
Microsoft and Windows are trademarks of Microsoft Corporation in the United States, other
countries, or both.
Java™ and all Java-based trademarks and logos are trademarks or registered trademarks of
Oracle and/or its affiliates.
VMware and the VMware "boxes" logo and design, Virtual SMP and VMotion are registered
trademarks or trademarks (the "Marks") of VMware, Inc. in the United States and/or other
jurisdictions.
SoftLayer® is a trademark or registered trademark of SoftLayer, Inc., an IBM Company.
Other product and service names might be trademarks of IBM or other companies.

November 2016 edition


The information contained in this document has not been submitted to any formal IBM test and is distributed on an “as is” basis without
any warranty either express or implied. The use of this information or the implementation of any of these techniques is a customer
responsibility and depends on the customer’s ability to evaluate and integrate them into the customer’s operational environment. While
each item may have been reviewed by IBM for accuracy in a specific situation, there is no guarantee that the same or similar results will
result elsewhere. Customers attempting to adapt these techniques to their own environments do so at their own risk.

© Copyright International Business Machines Corporation 2016.


This document may not be reproduced in whole or in part without the prior written permission of IBM.
US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
V10.1
Course Quick View with Full TOC

TOC Contents
Trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi

Course description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii

Agenda . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv

Unit 1. KVM for IBM z Systems overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1


Unit objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3
IBM System z family . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4
z Systems platform virtualization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5
History of IBM and virtualization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-6
What is KVM? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-7
IBM z/MV versus KVM for IBM z Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-8
What is KVM for IBM z Systems? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-9
Pricing of KVM for IBM z Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-10
Ordering and support of KVM for IBM z Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-11
KVM for IBM z Systems manuals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-12
KVM for IBM z Systems prerequisites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-13
KVM for IBM z Systems supported hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-14
KVM for IBM z Systems supported disk storage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-15
KVM for IBM z Systems OSA requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-16
KVM for IBM z Systems installation methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-17
KVM for IBM z Systems FTP server requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-18
KVM for IBM z Systems zHPM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-19
System z Hypervisor Performance Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-20
Supported version of Linux for KVM for IBM z Systems Guest . . . . . . . . . . . . . . . . . . . . . 1-21
Other products that work with KVM for IBM z Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-22
Checkpoint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-23
Unit summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-24

Unit 2. KVM for IBM z Systems installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1


Unit objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2
KVM for IBM z Systems installation guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-3
SSH Client setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4
2.1. Installing KVM for IBM z Systems from an FTP server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-5
Installing KVM for IBM z Systems from an FTP server . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-6
FTP server requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-7
KVM for IBM z Systems FTP server requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-8
FTP server disks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-9
generic.prm file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-10
Editing the generic.prm file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-11
KVM for IBM z Systems installation (1 of 30) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-12
KVM for IBM z Systems installation (2 of 30) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-13
KVM for IBM z Systems installation (3 of 30) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-14
KVM for IBM z Systems installation (4 of 30) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-15
KVM for IBM z Systems installation (5 of 30) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-16
KVM for IBM z Systems installation (6 of 30) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-17
KVM for IBM z Systems installation (7 of 30) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-18

© Copyright IBM Corp. 2016 Contents iii


Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Course Quick View with Full TOC

KVM for IBM z Systems installation (8 of 30) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-19


KVM for IBM z Systems installation (9 of 30) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-20
KVM for IBM z Systems installation (10 of 30) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-21
KVM for IBM z Systems installation (11 of 30) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-22
KVM for IBM z Systems installation (12 of 30) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-23
KVM for IBM z Systems installation (13 of 30) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-24
KVM for IBM z Systems installation (14 of 30) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-25
KVM for IBM z Systems installation (15 of 30) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-26
KVM for IBM z Systems installation (16 of 30) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-27
KVM for IBM z Systems installation (17 of 30) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-28
KVM for IBM z Systems installation (18 of 30) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-29
KVM for IBM z Systems installation (19 of 30) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-30
KVM for IBM z Systems installation (20 of 30) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-31
KVM for IBM z Systems installation (21 of 30) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-32
KVM for IBM z Systems installation (22 of 30) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-33
KVM for IBM z Systems installation (23 of 30) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-34
KVM for IBM z Systems installation (24 of 30) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-35
KVM for IBM z Systems installation (25 of 30) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-36
KVM for IBM z Systems installation (26 of 30) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-37
KVM for IBM z Systems installation (27 of 30) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-38
KVM for IBM z Systems installation (28 of 30) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-39
KVM for IBM z Systems installation (29 of 30) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-40
KVM for IBM z Systems installation (30 of 30) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-41
2.2. Installing KVM for IBM z Systems from CD/DVD. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-43
Installing KVM for IBM z Systems from CD/DVD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-44
Creating the DVD disk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-45
Installing from the DVD (1 of 6) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-46
Installing from the DVD (2 of 6) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-47
Installing from the DVD (3 of 6) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-48
Installing from the DVD (4 of 6) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-49
Installing from the DVD (5 of 6) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-50
Installing from the DVD (6 of 6) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-51
KVM for IBM z Systems logon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-52
Verifying the status of the new KVM server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-53
Testing your installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-54
Post installation processes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-55
Checkpoint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-56
Unit summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-57

Unit 3. KVM for IBM z Systems post-installation task. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-1


Unit objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-2
3.1. IPL you installed for KVM for IBM z Systems server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-3
IPL you installed for KVM for IBM z Systems server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-4
IPL from DASD from the HMC (1 of 4) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-5
IPL from DASD from the HMC (2 of 4) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-6
IPL from DASD from the HMC (3 of 4) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-7
IPL from DASD from the HMC (4 of 4) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-8
IPL from DASD (1 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-9
IPL from DASD (2 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-10
Connect using SSH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-11
3.2. Fix pack installation for KVM for IBM z Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-13

iv KVM for IBM z Systems © Copyright IBM Corp. 2016


Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Course Quick View with Full TOC

TOC Fix pack installation for KVM for IBM z Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-14
KVM for IBM z Systems fix pack overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-15
Download the KVM for IBM z Systems fix pack using the scp command . . . . . . . . . . . . . . 3-16
Mounting the fix pack for KVM for IBM z Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-17
Contents of the fix pack ISO file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-18
KVM for IBM z Systems fix pack readme file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-19
Documented usage of the update script for KVM for IBM z Systems in the readme file . . 3-20
Creating the Yum repository for KVM for IBM z Systems . . . . . . . . . . . . . . . . . . . . . . . . . . 3-21
Finding the APAR for KVM for IBM z Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-22
Install the APAR for KVM for IBM z Systems (1 of 5) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-23
Install the APAR for KVM for IBM z Systems (2 of 5) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-24
Install the APAR for KVM for IBM z Systems (3 of 5) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-25
Install the APAR for KVM for IBM z Systems (4 of 5) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-26
Install the APAR for KVM for IBM z Systems (5 of 5) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-27
Restart your KVM for IBM z Systems server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-28
Verify APAR Installation KVM for IBM z Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-29
3.3. Firewall set up for KVM for IBM z Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-31
Firewall set up for KVM for IBM z Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-32
Firewall commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-33
Firewall considerations for GRE tunneling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-34
Firewall rules for GRE tunneling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-35
Firewall considerations for VXLAN tunnels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-36
Firewall rules for VXLAN tunnel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-37
Firewall considerations for live migration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-38
Live migration firewall rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-39
3.4. Setting administrative privileges for KVM for IBM z Systems . . . . . . . . . . . . . . . . . . . . . . . 3-41
Setting administrative privileges for KVM for IBM z Systems . . . . . . . . . . . . . . . . . . . . . . . 3-42
KVM server administrators tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-43
Adding KVM server administrators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-44
Adding KVM administrators to the wheel group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-45
Authorizing administrators to sudo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-46
Editing /etc/pam.d/su . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-47
Testing the sudo command authorization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-48
Creating group directories (1 of 3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-49
Creating group directories (2 of 3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-50
Creating group directories (3 of 3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-51
Checkpoint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-52
Unit summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-53

Unit 4. KVM for IBM z Systems storage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-1


Unit objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2
Raw disks versus KVM virtual disks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-3
Storage subsystems supported by KVM for IBM z Systems . . . . . . . . . . . . . . . . . . . . . . . . 4-4
4.1. Initializing CKD DASD for KVM for IBM z Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-5
Initializing CKD DASD for KVM for IBM z Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-6
Bring new DASD online dynamically (1 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-7
Bring new DASD online dynamically (2 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-8
Low-level formatting of DASD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-9
Partition the DASD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-10
Using the parted command to verify partitions (1 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-11
Using the parted command to verify partitions (2 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-12

© Copyright IBM Corp. 2016 Contents v


Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Course Quick View with Full TOC

Persistently setting DASD online . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-13


Is DASD online after a reboot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-14
4.2. Initializing SCSI disks for KVM for IBM z Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-15
Initializing SCSI disks for KVM for IBM z Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-16
Configuring SCSI disks for KVM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-17
IODF definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-18
Bringing SCSI devices online . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-19
Displaying new SCSI disks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-20
Update /etc/zfcp.conf (1 of 4) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-21
Update /etc/zfcp.conf (2 of 4) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-22
Update /etc/zfcp.conf (3 of 4) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-23
Update /etc/zfcp.conf (4 of 4) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-24
Verifying SCSI disks after a reboot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-25
Partition the disk (1 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-26
Partition the disk (2 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-27
4.3. Creating logical volumes for KVM for IBM z Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-29
Creating logical volumes for KVM for IBM z Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-30
What are LVMs? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-31
Create the physical volumes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-32
Display the physical volumes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-33
Create the volume group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-34
Create the logical volume . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-35
Display the logical volume . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-36
Display the volume group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-37
PVDISPLAY command with the –C option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-38
Create and mount the new file system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-39
Update the /etc/fstab file to make the mount persistent . . . . . . . . . . . . . . . . . . . . . . . . . . .4-40
Extend the logical volume . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-41
Display the volume group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-42
Checkpoint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-43
Unit summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-44

Unit 5. Network management with KVM for IBM z Systems . . . . . . . . . . . . . . . . . . . . . . . . . .5-1


Unit objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-2
5.1. Managing networks with KVM for IBM z Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-3
Managing networks with KVM for IBM z Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-4
Commands to manage network devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-5
znetconf command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-6
lsqeth command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-7
nmcli command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-8
List general information about the network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-9
List connections and devices with the nmcli command . . . . . . . . . . . . . . . . . . . . . . . . . . .5-10
5.2. Adding network devices to KVM for IBM z Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-11
Adding network devices to KVM for IBM z Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-12
Reviewing the network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-13
Adding network devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-14
Network devices added . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-15
Permanently adding network devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-16
Starting the new network devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-17
Review the network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-18
IP network command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-19

vi KVM for IBM z Systems © Copyright IBM Corp. 2016


Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Course Quick View with Full TOC

TOC Verify connectivity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-20


5.3. Configuring network bonding and vSwitch for KVM for IBM z Systems . . . . . . . . . . . . . . . 5-21
Configuring network bonding and vSwitch for KVM for IBM z Systems . . . . . . . . . . . . . . . 5-22
Network bonding and vSwitch overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-23
Requirements for multiple LPARs on a single CHPID . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-24
Configuring bonding with the command line interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-25
Converting network connections to support a bridged vSwitch - cleanup . . . . . . . . . . . . . 5-26
Re-adding network devices after cleanup LPAR 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-27
Verify bridging capabilities of the devices LPAR 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-28
Create ifcfg-enccw0.0.2713 file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-29
Create ifcfg-enccw0.0.2716 file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-30
Enabling KVM vSwitch support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-31
Adding the vSwitch bridge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-32
Verify bridge role . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-33
Verifying the new devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-34
IP link show command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-35
LPAR2 - LPARn setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-36
Checkpoint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-37
Unit summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-38

Unit 6. Deploying guests with KVM for IBM z Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-1


Unit objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2
6.1. Managing guest deployment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-3
Managing guest deployment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-4
Managing guest deployment utilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-5
Virt-manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-6
The virsh command (1 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-7
The virsh command (2 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-8
The virsh list command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-9
The virsh interactive terminal mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-10
The virsh dominfo command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-11
The virsh destroy and undefine commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-12
The virsh start ctrl ] and console commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-13
The virsh edit command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-14
The virsh autostart command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-15
6.2. Deploying guests with KVM for IBM z Systems. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-17
Deploying guests with KVM for IBM z Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-18
Guest deployment overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-19
Obtain the installation files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-20
Raw disk versus virtual disks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-21
Create an image file for a virtual disk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-22
Network information needed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-23
Getting the OVS switch bridge name . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-24
XML file definitions (linux01.xml) (1 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-25
XML file definitions (linux01.xml) (2 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-26
Defining MAC addresses to the vSwitch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-27
QETHQOAT command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-28
Installing Linux on z Systems with virsh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-29
virsh start linux01 --console (1 of 3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-30
virsh start linux01 --console (2 of 3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-31
virsh start linux01 --console (3 of 3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-32

© Copyright IBM Corp. 2016 Contents vii


Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Course Quick View with Full TOC

Connecting using VNC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-33


Connecting using Java capable browser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-34
Installing SLES 12 SP1 on your guest system (1 of 18) . . . . . . . . . . . . . . . . . . . . . . . . . . .6-35
Installing SLES 12 SP1 on your guest system (2 of 18) . . . . . . . . . . . . . . . . . . . . . . . . . . .6-36
Installing SLES 12 SP1 on your guest system (3 of 18) . . . . . . . . . . . . . . . . . . . . . . . . . . .6-37
Installing SLES 12 SP1 on your guest system (4 of 18) . . . . . . . . . . . . . . . . . . . . . . . . . . .6-38
Installing SLES 12 SP1 on your guest system (5 of 18) . . . . . . . . . . . . . . . . . . . . . . . . . . .6-39
Installing SLES 12 SP1 on your guest system (6 of 18) . . . . . . . . . . . . . . . . . . . . . . . . . . .6-40
Installing SLES 12 SP1 on your guest system (7 of 18) . . . . . . . . . . . . . . . . . . . . . . . . . . .6-41
Installing SLES 12 SP1 on your guest system (8 of 18) . . . . . . . . . . . . . . . . . . . . . . . . . . .6-42
Installing SLES 12 SP1 on your guest system (9 of 18) . . . . . . . . . . . . . . . . . . . . . . . . . . .6-43
Installing SLES 12 SP1 on your guest system (10 of 18) . . . . . . . . . . . . . . . . . . . . . . . . . .6-44
Installing SLES 12 SP1 on your guest system (11 of 18) . . . . . . . . . . . . . . . . . . . . . . . . . .6-45
Installing SLES 12 SP1 on your guest system (12 of 18) . . . . . . . . . . . . . . . . . . . . . . . . . .6-46
Installing SLES 12 SP1 on your guest system (13 of 18) . . . . . . . . . . . . . . . . . . . . . . . . . .6-47
Installing SLES 12 SP1 on your guest system (14 of 18) . . . . . . . . . . . . . . . . . . . . . . . . . .6-48
Installing SLES 12 SP1 on your guest system (15 of 18) . . . . . . . . . . . . . . . . . . . . . . . . . .6-49
Installing SLES 12 SP1 on your guest system (16 of 18) . . . . . . . . . . . . . . . . . . . . . . . . . .6-50
Installing SLES 12 SP1 on your guest system (17 of 18) . . . . . . . . . . . . . . . . . . . . . . . . . .6-51
Installing SLES 12 SP1 on your guest system (18 of 18) . . . . . . . . . . . . . . . . . . . . . . . . . .6-52
Changing the deployed guest to run from disk (1 of 3) . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-53
Changing the deployed guest to run from disk (2 of 3) . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-54
Changing the deployed guest to run from disk (3 of 3) . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-55
Running deployed guest from the image file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-56
Successful start of deployed guest from image file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-57
Testing your newly deployed guest system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-58
Auto-starting guests with virsh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-59
Checking for available SCSI disks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-60
Initializing the SCSI disk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-61
XML file definitions (linux02.xml) (1 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-62
XML file definitions (linux02.xml) (2 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-63
Starting the deployment of the guest with raw disks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-64
After the deployment of the new guest . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-65
Checkpoint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-66
Unit summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-67

Unit 7. KVM for IBM z Systems additional topics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7-1


Unit objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7-2
7.1. Extending a file system in KVM for IBM z Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7-3
Extending a file system in KVM for IBM z Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7-4
Extending an LVM overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7-5
Extending a file system checklist . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7-6
Make new disk available . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7-7
Update dasd.conf . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7-8
Formatting the new disk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7-9
Partition the new disk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7-10
Create the physical volume . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7-11
Extending the volume group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7-12
Current file system status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7-13
Current status of the logical volume . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7-14
Extending the logical volume . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7-15

viii KVM for IBM z Systems © Copyright IBM Corp. 2016


Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Course Quick View with Full TOC

TOC New status of the logical volume . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-16


New status of the file system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-17
7.2. Converting and resizing guest with KVM for IBM z Systems. . . . . . . . . . . . . . . . . . . . . . . . 7-19
Converting and resizing guest with KVM for IBM z Systems . . . . . . . . . . . . . . . . . . . . . . . 7-20
Converting and resizing a Linux guest . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-21
Conversion process checklist . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-22
Converting the qcow2 image to a raw image . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-23
Resize the Linux image file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-24
Undefine the guest and update the XML file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-25
Redefine and restart your guest . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-26
Repartition the space (1 of 3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-27
Repartition the space (2 of 3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-28
Repartition the space (3 of 3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-29
7.3. Live guest migration with KVM for IBM z Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-31
Live guest migration with KVM for IBM z Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-32
Guest migration overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-33
Update /etc/hosts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-34
Virsh list command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-35
Virsh migrate command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-36
Virsh list after migration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-37
Testing from the target system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-38
Checkpoint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-39
Unit summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-40

Appendix A. Checkpoint solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-1

Bibliography. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .X-1

Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .X-3

© Copyright IBM Corp. 2016 Contents ix


Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Course Quick View with Full TOC

TMK
Trademarks
The reader should recognize that the following terms, which appear in the content of this training
document, are official trademarks of IBM or other companies:
IBM, the IBM logo, and ibm.com are trademarks or registered trademarks of International Business
Machines Corp., registered in many jurisdictions worldwide.
The following are trademarks of International Business Machines Corporation, registered in many
jurisdictions worldwide:
DS8000® Express® FICON®
FileNet® HiperSockets™ IBM Business Partner®
Real-time Compression™ Redbooks® Redpaper™
Resource Link® S/390® Storwize®
System Storage® System z® XIV®
z/VM® z10™ z9®
Linux is a registered trademark of Linus Torvalds in the United States, other countries, or both.
Microsoft and Windows are trademarks of Microsoft Corporation in the United States, other
countries, or both.
Java™ and all Java-based trademarks and logos are trademarks or registered trademarks of
Oracle and/or its affiliates.
VMware and the VMware "boxes" logo and design, Virtual SMP and VMotion are registered
trademarks or trademarks (the "Marks") of VMware, Inc. in the United States and/or other
jurisdictions.
SoftLayer® is a trademark or registered trademark of SoftLayer, Inc., an IBM Company.
Other product and service names might be trademarks of IBM or other companies.

© Copyright IBM Corp. 2016 Trademarks xi


Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Course Quick View with Full TOC

pref
Course description
Installing, Configuring, and Managing KVM for IBM z Systems

Duration: 3 days

Purpose
This course is designed to provide students that are responsible for the
administration of the KVM for IBM z Systems product with the knowledge to
install, manage, and configure the product. You will leave the course with the
knowledge to implement KVM for IBM z Systems, apply a service pack, add
new disk storage to the KVM host, deploy Linux guests, and migrate
deployed guests to other KVM hosts.

Audience
This course is intended for IT professionals who will be responsible for the
installation and configuration of the KVM for IBM z Systems product.

Prerequisites
Basic computer skills and knowledge. The students will also need to have
knowledge of Linux commands and the vi editor that is available on Linux.

Objectives
After completing this course, you should be able to:
• Describe the major functions of
- Installing the KVM for IBM z Systems Product
- Applying service to KBM for IBM z Systems
- Configuring the KVM for IBM z Systems Product
- Configuring new disk storage for KVM for IBM z Systems
- Configuring new network devices for KVM for IBM z Systems
- Creating Linux guest with KVM for IBM z Systems
- Managing the Linux on System z environment with KVM for IBM z
Systems

© Copyright IBM Corp. 2016 Course description xiii


Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Course Quick View with Full TOC

xiv KVM for IBM z Systems © Copyright IBM Corp. 2016


Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Course Quick View with Full TOC

pref
Agenda
Day 1
Welcome
Unit 1 - KVM for IBM z Systems overview
Unit 2 - KVM for IBM z Systems installation
Exercise 1 - Exercise overview
Exercise 2 - Installing KVM for IBM z Systems
Unit 3 - KVM for IBM z Systems post-installation task

Day 2
Exercise 3 - KVM for IBM z Systems post-installation task
Unit 4 - KVM for IBM z Systems storage
Exercise 4 - KVM for IBM z Systems storage
Unit 5 - Network management with KVM for IBM z Systems
Exercise 5 - Network management with KVM for IBM z Systems

Day 3
Unit 6 - Deploying guests with KVM for IBM z Systems
Exercise 6 - Deploying guests with KVM for IBM z Systems
Unit 7- KVM for IBM z Systems additional topics
Exercise 7- Additional tasks KVM for IBM z Systems

© Copyright IBM Corp. 2016 Agenda xv


Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Course Quick View with Full TOC

Uempty
Unit 1. KVM for IBM z Systems overview

What this unit is about


This unit describes an overview of the KVM for IBM z Systems Product.

What you should be able to do


After completing this unit, you should be able to:
• Describe KVM versus z/VM
• Describe the function that KVM for IBM z Systems delivers
• Describe the benefits of using KVM for IBM z Systems
• Describe the KVM for IBM z Systems architecture
• Describe the KVM for IBM z Systems hardware requirements
• Describe the KVM for IBM z Systems OSA requirements
• Describe the types of provisioned guest
• Describe KVM and zHPM

How you will check your progress


• Checkpoint questions

References
KVM for IBM z Systems announcement letter

© Copyright IBM Corp. 2016 Unit 1. KVM for IBM z Systems overview 1-1
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Course Quick View with Full TOC

Uempty
Unit 2. KVM for IBM z Systems installation

What this unit is about


This unit describes the process to install KVM for z System.

What you should be able to do


After completing this unit, you should be able to:
• Describe how to set up your FTP server
• Describe how to set up your PuTTY environment
• Describe how to load the KVM system from the HMC
• Define the location of the installation media
• Load from the removable media or server
• Describe the installation process
• Test to see whether your installation was successful
• Describe post-installation task

How you will check your progress


Accountability:
• Checkpoint questions
• Exercises

References
SC27-8236 KVM for IBM z Systems Planning and Installation
http://www-03.ibm.com/systems/z/solutions/virtualization/kvm/
KVM for IBM z Systems

© Copyright IBM Corp. 2016 Unit 2. KVM for IBM z Systems installation 2-1
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Course Quick View with Full TOC

Uempty
Unit 3. KVM for IBM z Systems post-installation
task

What this unit is about


This unit describes the post-installation processes that need to be completed
for KVM for IBM z Systems.

What you should be able to do


After completing this unit, you should be able to:
• Describe post-installation processes to be performed
• Describe the installation of the KVM for IBM z Systems fix pack
• Describe the process of setting up a firewall for
- GRE tunneling
- VXLAN tunneling
- Live migration of KVM guest systems
• Describe KVM system administrator tasks

How you will check your progress


Accountability:
• Checkpoint questions
• Exercise

References
SC27-8237-00 KVM for IBM z Systems Administration Guide
http://www-03.ibm.com/systems/z/solutions/virtualization/kvm/
KVM for IBM z Systems

© Copyright IBM Corp. 2016 Unit 3. KVM for IBM z Systems post-installation task 3-1
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Course Quick View with Full TOC

Uempty
Unit 4. KVM for IBM z Systems storage

What this unit is about


This unit describes the steps that are required to add new DASD (CKD and
SCSI) to your KVM system.

What you should be able to do


After completing this unit, you should be able to:
• Discuss the differences between raw disks and image files
• Discuss why you would use raw versus image
• Discuss storage device naming conventions
• Discuss setting up storage to be used by KVM for IBM z Systems
• Discuss configuring CKD storage devices
• Discuss configuring SCSI storage devices

How you will check your progress


Accountability:
• Checkpoint questions
• Exercise

References
SC27-8237-00 KVM for IBM z Systems Administration Guide
http://www-03.ibm.com/systems/z/solutions/virtualization/kvm/
KVM for IBM z Systems

© Copyright IBM Corp. 2016 Unit 4. KVM for IBM z Systems storage 4-1
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Course Quick View with Full TOC

Uempty
Unit 5. Network management with KVM for IBM z
Systems

What this unit is about


This unit describes the steps that must be completed to add more networking
devices to the KVM host.

What you should be able to do


After completing this unit, you should be able to:
• Describe how to view information about the KVM network
• Describe how to add new network interfaces
• Describe how to make network interfaces permanent
• Describe how network bonding works
• Describe how to create a KVM virtual switch (Open vSwitch)

How you will check your progress


Accountability:
• Checkpoint questions
• Exercise

References
SC27-8237-00 KVM for IBM z Systems Administration Guide
http://www-03.ibm.com/systems/z/solutions/virtualization/kvm/
KVM for IBM z Systems

© Copyright IBM Corp. 2016 Unit 5. Network management with KVM for IBM z Systems 5-1
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Course Quick View with Full TOC

Uempty
Unit 6. Deploying guests with KVM for IBM z
Systems

What this unit is about


This unit describes the process to deploy a SLES 12 Linux guest system.

What you should be able to do


After completing this unit, you should be able to:
• Discuss the virsh command
• Discuss preparing the environment
• Discuss getting the installation kernel and initrd files
• Discuss deploying SLES 12 guest with KVM for IBM z Systems
• Discuss modifying KVM for IBM z Systems guest definitions
• Discuss starting and stopping deployed guests

How you will check your progress


Accountability:
• Checkpoint questions
• Exercise

References
SC27-8237-00 KVM for IBM z Systems Administration Guide
SG24-8332-00 Getting Started with KVM for IBM z Systems (Redbooks)
http://www-03.ibm.com/systems/z/solutions/virtualization/kvm/
KVM for IBM z Systems

© Copyright IBM Corp. 2016 Unit 6. Deploying guests with KVM for IBM z Systems 6-1
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Course Quick View with Full TOC

Uempty
Unit 7. KVM for IBM z Systems additional topics

What this unit is about


This unit describes the additional tasks that a KVM administrator should be
able to implement.

What you should be able to do


After completing this unit, you should be able to:
• Extend a logical volume
• Convert a qemu-img from qcow2 to raw and back
• Resize a qemu-img
• Perform live guest migration

How you will check your progress


Accountability:
• Checkpoint questions
• Exercise

References
SC27-8237-00 KVM for IBM z Systems Administration Guide
SG24-8332-00 Getting Started with KVM for IBM z Systems (Redbooks)
http://www-03.ibm.com/systems/z/solutions/virtualization/kvm/
KVM for IBM z Systems

© Copyright IBM Corp. 2016 Unit 7. KVM for IBM z Systems additional topics 7-1
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.

You might also like