SUSE Linux Enterprise Server 11 SP4

Virtualization with KVM for IBM System z

Publication Date 19 Jun 2015

Copyright © 2006–2015 SUSE LLC and contributors. All rights reserved.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or (at your option) version 1.3; with the Invariant Section being this copyright notice and license. A copy of the license version 1.2 is included in the section entitled GNU Free Documentation License.

For SUSE and Novell trademarks, see the Novell Trademark and Service Mark list http://www.novell.com/company/legal/trademarks/tmlist.html. All other third party trademarks are the property of their respective owners. A trademark symbol (®, ™ etc.) denotes a SUSE or Novell trademark; an asterisk (*) denotes a third party trademark.

All information found in this book has been compiled with utmost attention to detail. However, this does not guarantee complete accuracy. Neither SUSE LLC, its affiliates, the authors nor the translators shall be held liable for possible errors or the consequences thereof.


Contents

About This Manual
1. Available Documentation
2. Feedback
3. Documentation Conventions
I. Requirements, Limitations, and Support Status
1. KVM Installation and Requirements
1.1. Hardware Requirements
1.2. Supported Guest Operating Systems
1.3. The kvm package
1.4. Installing KVM
2. KVM Limitations
2.1. General Limitations
2.2. Hardware Limitations
2.3. Performance Limitations
3. KVM Support Status
3.1. Supported Features and Tools
3.2. Unsupported Features and Tools
4. I/O Virtualization
II. Managing Virtual Machines with libvirt
5. Overview
6. Guest Installation
6.1. Guest Installation with Virtual Machine Manager
6.2. Installing from the Command Line with vm-install
6.3. Advanced Guest Installation Scenarios
7. Basic VM Guest Management
7.1. Listing VM Guests
7.2. Opening a Graphical Console
7.3. Changing a VM Guest's State: Start, Stop, Pause
7.4. Saving and Restoring VM Guests
7.5. Deleting a VM Guest
8. Connecting and Authorizing
8.1. Authentication
8.2. Configuring Remote Connections
8.3. Connecting to a VM Host Server
9. Managing Storage
9.1. Managing Storage with Virtual Machine Manager
9.2. Managing Storage with virsh
9.3. Locking Disk Files and Block Devices with virtlockd
9.4. Online Resizing of Guest Block Devices
10. Configuring Virtual Machines
10.1. Enabling Seamless and Synchronized Cursor Movement
10.2. Adding a CD/DVD-ROM Device with Virtual Machine Manager
10.3. Adding a Floppy Device with Virtual Machine Manager
10.4. Ejecting and Changing Floppy or CD/DVD-ROM Media with Virtual Machine Manager
10.5. Adding a PCI Device with Virtual Machine Manager
10.6. Adding a PCI Device with virsh
10.7. Adding SR-IOV Devices
10.8. Clock Settings
11. Administrating VM Guests
11.1. Migrating VM Guests
11.2. Monitoring
III. Managing Virtual Machines with QEMU
12. QEMU Overview
13. Guest Installation
13.1. Basic Installation with qemu-kvm
13.2. Managing Disk Images with qemu-img
14. Running Virtual Machines with qemu-kvm
14.1. Basic qemu-kvm Invocation
14.2. General qemu-kvm Options
14.3. Using Devices in QEMU
14.4. Networking in QEMU
14.5. Viewing a VM Guest with VNC
14.6. VirtFS: Sharing Folders between Host and Guests
14.7. KSM: Sharing Memory Pages between Guests
15. KVM Disk Cache Modes
15.1. Disk Interface Cache Modes
15.2. Description of Cache Modes
15.3. Data Integrity Implications of Cache Modes
15.4. Performance Implications of Cache Modes
15.5. Effect of Cache Modes on Live Migration
16. Administrating Virtual Machines with QEMU Monitor
16.1. Accessing Monitor Console
16.2. Getting Information about the Guest System
16.3. Changing VNC Password
16.4. Managing Devices
16.5. Controlling Keyboard and Mouse
16.6. Changing Available Memory
16.7. Dumping Virtual Machine Memory
16.8. Managing Virtual Machine Snapshots
16.9. Suspending and Resuming Virtual Machine Execution
16.10. Live Migration
A. Appendix
A.1. Installing Paravirtualized Drivers
A.2. Generating x509 Client/Server Certificates
A.3. QEMU Command Line Options
B. GNU Licenses
B.1. GNU Free Documentation License

List of Figures

10.1. Details View of a VM Guest
13.1. New 2GB Partition in Guest YaST Partitioner
14.1. QEMU Window with SLES 11 SP1 as VM Guest
14.2. Configuring Network Bridge with YaST
14.3. QEMU VNC Session
14.4. Authentication Dialog in Vinagre

List of Tables

1.1. Supported Guest Operating Systems on KVM with SUSE Linux Enterprise Server

List of Examples

6.1. Interactive Setup on the Command Line Using vm-install
6.2. vm-install command line switches
11.1. Typical Output of kvm_stat
14.1. Restricted User-mode Networking
14.2. User-mode Networking with Custom IP Range
14.3. User-mode Networking with Network-boot and TFTP
14.4. User-mode Networking with Host Port Forwarding
14.5. Password Authentication
14.6. x509 Certificate Authentication
14.7. x509 Certificate and Password Authentication
14.8. SASL Authentication
14.9. Exporting Host's Filesystem with VirtFS

SUSE Linux Enterprise Server Virtualization with KVM for IBM System z 11 SP4