Product SiteDocumentation Site

Fedora 12

Virtualization Guide

The definitive guide for virtualization on Fedora

Edition 1

Fedora Documentation Project

Christoph Curran


Legal Notice

Copyright © 2009 Red Hat, Inc.
The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/. The original authors of this document, and Red Hat, designate the Fedora Project as the "Attribution Party" for purposes of CC-BY-SA. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, JBoss, MetaMatrix, Fedora, the Infinity Logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
For guidelines on the permitted uses of the Fedora trademarks, refer to https://fedoraproject.org/wiki/Legal:Trademark_guidelines.
Linux® is the registered trademark of Linus Torvalds in the United States and other countries.
Java® is a registered trademark of Oracle and/or its affiliates.
XFS® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries.
All other trademarks are the property of their respective owners.
Abstract
The Fedora 12 Virtualization Guide contains information on installation, configuring, administering, tips, tricks and troubleshooting virtualization technologies used in Fedora 12.

Preface
1. About this book
2. Document Conventions
2.1. Typographic Conventions
2.2. Pull-quote Conventions
2.3. Notes and Warnings
3. We Need Feedback!
I. Installation
1. Installing the virtualization packages
1.1. Installing KVM with a new Fedora installation
1.2. Installing KVM packages on an existing Fedora system
2. Virtualized guest installation overview
2.1. Creating guests with virt-install
2.2. Creating guests with virt-manager
2.3. Installing guests with PXE
3. Guest operating system installation procedures
3.1. Installing Red Hat Enterprise Linux 5 as a para-virtualized guest
3.2. Installing Red Hat Enterprise Linux as a fully virtualized guest
3.3. Installing Windows XP as a fully virtualized guest
3.4. Installing Windows Server 2003 as a fully virtualized guest
3.5. Installing Windows Server 2008 as a fully virtualized guest
II. Configuration
4. Virtualized block devices
4.1. Creating a virtualized floppy disk controller
4.2. Adding storage devices to guests
4.3. Configuring persistent storage
4.4. Add a virtualized CD-ROM or DVD device to a guest
5. Shared storage and virtualization
5.1. Using iSCSI for storing guests
5.2. Using NFS for storing guests
5.3. Using GFS2 for storing guests
6. Server best practices
7. Security for virtualization
7.1. SELinux and virtualization
7.2. SELinux considerations
8. Network Configuration
8.1. Network address translation (NAT) with libvirt
8.2. Bridged networking with libvirt
9. KVM Para-virtualized Drivers
9.1. Installing the KVM Windows para-virtualized drivers
III. Administration
10. Managing guests with xend
11. KVM guest timing management
12. KVM live migration
12.1. Live migration requirements
12.2. Share storage example: NFS for a simple migration
12.3. Live KVM migration with virsh
12.4. Migrating with virt-manager
13. Remote management of virtualized guests
13.1. Remote management with SSH
13.2. Remote management over TLS and SSL
13.3. Transport modes
IV. Virtualization Reference Guide
14. Virtualization tools
15. Managing guests with virsh
16. Managing guests with the Virtual Machine Manager (virt-manager)
16.1. The open connection window
16.2. The Virtual Machine Manager main window
16.3. The Virtual Machine Manager details window
16.4. Virtual Machine graphical console
16.5. Starting virt-manager
16.6. Restoring a saved machine
16.7. Displaying guest details
16.8. Status monitoring
16.9. Displaying guest identifiers
16.10. Displaying a guest's status
16.11. Displaying virtual CPUs
16.12. Displaying CPU usage
16.13. Displaying memory usage
16.14. Managing a virtual network
16.15. Creating a virtual network
V. Tips and Tricks
17. Tips and tricks
17.1. Automatically starting guests
17.2. Changing between the KVM and Xen hypervisors
17.2.1. Xen to KVM
17.2.2. KVM to Xen
17.3. Using qemu-img
17.4. Overcommitting with KVM
17.5. Modifying /etc/grub.conf
17.6. Verifying virtualization extensions
17.7. Identifying guest type and implementation
17.8. Generating a new unique MAC address
17.9. Very Secure ftpd
17.10. Configuring LUN Persistence
17.11. Disable SMART disk monitoring for guests
17.12. Cloning guest configuration files
17.13. Duplicating an existing guest and its configuration file
18. Creating custom libvirt scripts
18.1. Using XML configuration files with virsh
VI. Troubleshooting
19. Troubleshooting
19.1. Loop device errors
19.2. Enabling Intel VT and AMD-V virtualization hardware extensions in BIOS
A. Additional resources
A.1. Online resources
A.2. Installed documentation
B. Revision History
C. Colophon
Glossary