openSUSE 12.3

Virtualization with KVM

Date de publication 12/08/2013

Copyright © 2006–2013 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 or 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.


Table des matières

About This Manual
1. Documentation disponible
2. Remarques
3. Conventions de la documentation
4. À propos de la création de ce manuel
5. Code source
6. Remerciements
I. Requirements and Limitations
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
II. Managing Virtual Machines with libvirt
3. Overview
4. Guest Installation
4.1. Guest Installation with Virtual Machine Manager
4.2. Installing from the Command Line with vm-install
4.3. Advanced Guest Installation Scenarios
5. Basic VM Guest Management
5.1. Listing VM Guests
5.2. Opening a Graphical Console
5.3. Changing a VM Guest's State: Start, Stop, Pause
5.4. Saving and Restoring VM Guests
5.5. Deleting a VM Guest
6. Connecting and Authorizing
6.1. Authentication
6.2. Configuring Remote Connections
6.3. Connecting to a VM Host Server
7. Managing Storage
7.1. Managing Storage with Virtual Machine Manager
7.2. Managing Storage with virsh
7.3. Locking Disk Files and Block Devices with virtlockd
8. Configuring Virtual Machines
8.1. Enabling Seamless and Synchronized Cursor Movement
8.2. Adding a CD/DVD-ROM Device with Virtual Machine Manager
8.3. Adding a Floppy Device with Virtual Machine Manager
8.4. Ejecting and Changing Floppy or CD/DVD-ROM Media with Virtual Machine Manager
8.5. Clock Settings
9. Administrating VM Guests
9.1. Migrating VM Guests
9.2. Monitoring
III. Managing Virtual Machines with QEMU
10. QEMU Overview
11. Guest Installation
11.1. Basic Installation with qemu-kvm
11.2. Managing Disk Images with qemu-img
12. Running Virtual Machines with qemu-kvm
12.1. Basic qemu-kvm Invocation
12.2. General qemu-kvm Options
12.3. Using Devices in QEMU
12.4. Networking in QEMU
12.5. Viewing a VM Guest with VNC
12.6. VirtFS: Sharing Folders between Host and Guests
12.7. KSM: Sharing Memory Pages between Guests
13. Administrating Virtual Machines with QEMU Monitor
13.1. Accessing Monitor Console
13.2. Getting Information about the Guest System
13.3. Changing VNC Password
13.4. Managing Devices
13.5. Controlling Keyboard and Mouse
13.6. Changing Available Memory
13.7. Dumping Virtual Machine Memory
13.8. Managing Virtual Machine Snapshots
13.9. Suspending and Resuming Virtual Machine Execution
13.10. Live Migration
A. Appendix
A.1. Installing Para-Virtualized Drivers
A.2. Generating x509 Client/Server Certificates
B. Licences GNU
B.1. GNU General Public License
B.2. GNU Free Documentation License

Liste des illustrations

8.1. Details View of a VM Guest
11.1. New 2GB Partition in Guest YaST Partitioner
12.1. QEMU Window with SLES 11 SP1 as VM Guest
12.2. Configuring Network Bridge with YaST
12.3. QEMU VNC Session
12.4. Authentication Dialog in Vinagre

Liste des tableaux

1.1. Supported KVM Guest Operating Systems on openSUSE

Liste des exemples

4.1. Interactive Setup on the Command Line Using vm-install
4.2. vm-install command line switches
9.1. Typical Output of kvm_stat
12.1. Restricted User-mode Networking
12.2. User-mode Networking with Custom IP Range
12.3. User-mode Networking with Network-boot and TFTP
12.4. User-mode Networking with Host Port Forwarding
12.5. Password Authentication
12.6. x509 Certificate Authentication
12.7. x509 Certificate and Password Authentication
12.8. SASL Authentication
12.9. Exporting Host's Filesystem with VirtFS

openSUSE Virtualization with KVM 12.3