Red Hat Enterprise Linux 6
Virtualization Administration Guide
Managing your virtual environment
Legal Notice
Copyright © 2014 Red Hat, Inc.
This document is licensed by Red Hat under the Creative Commons Attribution-ShareAlike 3.0 Unported License. If you distribute this document, or a modified version of it, you must provide attribution to Red Hat, Inc. and provide a link to the original. If the document is modified, all Red Hat trademarks must be removed.
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.
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.
MySQL® is a registered trademark of MySQL AB in the United States, the European Union and other countries.
Node.js® is an official trademark of Joyent. Red Hat Software Collections is not formally related to or endorsed by the official Joyent Node.js open source or commercial project.
The OpenStack® Word Mark and OpenStack Logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community.
All other trademarks are the property of their respective owners.
Abstract
The Virtualization Administration Guide covers administration of host physical machines, networking, storage, device and guest virtual machine management, and troubleshooting.
- Preface
- 1. Introduction
- 2. Server best practices
- 3. Security for virtualization
- 4. sVirt
- 5. KVM live migration
- 6. Remote management of guests
- 7. Overcommitting with KVM
- 8. KSM
- 9. Advanced guest virtual machine administration
-
- 9.1. Control Groups (cgroups)
- 9.2. Hugepage support
- 9.3. Running Red Hat Enterprise Linux as a guest virtual machine on a Hyper-V hypervisor
- 9.4. Guest virtual machine memory allocation
- 9.5. Automatically starting guest virtual machines
- 9.6. Disable SMART disk monitoring for guest virtual machines
- 9.7. Configuring a VNC Server
- 9.8. Generating a new unique MAC address
- 9.9. Improving guest virtual machine response time
- 9.10. Virtual machine timer management with libvirt
- 9.11. Using PMU to monitor guest virtual machine performance
- 9.12. Guest virtual machine power management
- 10. Guest virtual machine device configuration
-
- 10.1. PCI devices
-
- 10.1.1. Assigning a PCI device with virsh
- 10.1.2. Assigning a PCI device with virt-manager
- 10.1.3. PCI device assignment with virt-install
- 10.1.4. Detaching an assigned PCI device
- 10.1.5. Creating PCI bridges
- 10.1.6. PCI passthrough
- 10.1.7. Configuring PCI assignment (passthrough) with SR-IOV devices
- 10.1.8. Setting PCI device assignment from a pool of SR-IOV virtual functions
- 10.2. USB devices
- 10.3. Configuring device controllers
- 10.4. Setting addresses for devices
- 10.5. Managing storage controllers in a guest virtual machine
- 10.6. Random number generator (RNG) device
- 11. QEMU-img and QEMU guest agent
- 12. Storage concepts
- 13. Storage pools
- 14. Volumes
- 15. Managing guest virtual machines with virsh
-
- 15.1. Generic Commands
- 15.2. Attaching and updating a device with virsh
- 15.3. Attaching interface devices
- 15.4. Changing the media of a CDROM
- 15.5. Domain Commands
-
- 15.5.1. Configuring a domain to be started automatically at boot
- 15.5.2. Connecting the serial console for the guest virtual machine
- 15.5.3. Defining a domain with an XML file
- 15.5.4. Editing and displaying a description and title of a domain
- 15.5.5. Displaying device block statistics
- 15.5.6. Retrieving network statistics
- 15.5.7. Modifying the link state of a domain's virtual interface
- 15.5.8. Listing the link state of a domain's virtual interface
- 15.5.9. Setting network interface bandwidth parameters
- 15.5.10. Retrieving memory statistics for a running domain
- 15.5.11. Displaying errors on block devices
- 15.5.12. Displaying the block device size
- 15.5.13. Displaying the block devices associated with a domain
- 15.5.14. Displaying virtual interfaces associated with a domain
- 15.5.15. Using blockcommit to shorten a backing chain
- 15.5.16. Using blockpull to shorten a backing chain
- 15.5.17. Using blockresize to change the size of a domain path
- 15.5.18. Disk image management with live block copy
- 15.5.19. Displaying a URI for connection to a graphical display
- 15.5.20. Domain Retrieval Commands
- 15.5.21. Converting QEMU arguments to domain XML
- 15.5.22. Creating a dump file of a domain's core
- 15.5.23. Creating a virtual machine XML dump (configuration file)
- 15.5.24. Creating a guest virtual machine from a configuration file
- 15.6. Editing a guest virtual machine's configuration file
-
- 15.6.1. Adding multifunction PCI devices to KVM guest virtual machines
- 15.6.2. Stopping a running domain in order to restart it later
- 15.6.3. Displaying CPU statistics for a specified domain
- 15.6.4. Saving a screenshot
- 15.6.5. Sending a keystroke combination to a specified domain
- 15.6.6. Sending process signal names to virtual processes
- 15.6.7. Displaying the IP address and port number for the VNC display
- 15.7. NUMA node management
-
- 15.7.1. Displaying node information
- 15.7.2. Setting NUMA parameters
- 15.7.3. Displaying the amount of free memory in a NUMA cell
- 15.7.4. Displaying a CPU list
- 15.7.5. Displaying CPU statistics
- 15.7.6. Suspending the host physical machine
- 15.7.7. Setting and displaying the node memory parameters
- 15.7.8. Creating devices on host nodes
- 15.7.9. Detaching a node device
- 15.7.10. Dump a Device
- 15.7.11. List devices on a node
- 15.7.12. Triggering a reset for a node
- 15.8. Starting, suspending, resuming, saving and restoring a guest virtual machine
-
- 15.8.1. Starting a defined domain
- 15.8.2. Suspending a guest virtual machine
- 15.8.3. Suspending a running domain
- 15.8.4. Waking up a domain from pmsuspend state
- 15.8.5. Undefining a domain
- 15.8.6. Resuming a guest virtual machine
- 15.8.7. Save a guest virtual machine
- 15.8.8. Updating the domain XML file that will be used for restoring the guest
- 15.8.9. Extracting the domain XML file
- 15.8.10. Edit Domain XML configuration files
- 15.8.11. Restore a guest virtual machine
- 15.9. Shutting down, rebooting and force-shutdown of a guest virtual machine
-
- 15.9.1. Shut down a guest virtual machine
- 15.9.2. Shutting down Red Hat Enterprise Linux 6 guests on a Red Hat Enterprise Linux 7 host
- 15.9.3. Manipulating the libvirt-guests configuration settings
- 15.9.4. Rebooting a guest virtual machine
- 15.9.5. Forcing a guest virtual machine to stop
- 15.9.6. Resetting a virtual machine
- 15.10. Retrieving guest virtual machine information
- 15.11. Storage pool commands
- 15.12. Storage Volume Commands
- 15.13. Displaying per-guest virtual machine information
-
- 15.13.1. Displaying the guest virtual machines
- 15.13.2. Displaying virtual CPU information
- 15.13.3. Configuring virtual CPU affinity
- 15.13.4. Displaying information about the virtual CPU counts of a given domian
- 15.13.5. Configuring virtual CPU affinity
- 15.13.6. Configuring virtual CPU count
- 15.13.7. Configuring memory allocation
- 15.13.8. Changing the memory allocation for the domain
- 15.13.9. Displaying guest virtual machine block device information
- 15.13.10. Displaying guest virtual machine network device information
- 15.14. Managing virtual networks
- 15.15. Migrating guest virtual machines with virsh
- 15.16. Guest virtual machine CPU model configuration
- 15.17. Configuring the guest virtual machine CPU model
- 15.18. Managing resources for guest virtual machines
- 15.19. Setting schedule parameters
- 15.20. Disk I/O throttling
- 15.21. Display or set block I/O parameters
- 15.22. Configuring memory Tuning
- 15.23. Virtual Networking Commands
-
- 15.23.1. Autostarting a virtual network
- 15.23.2. Creating a virtual network from an XML file
- 15.23.3. Defining a virtual network from an XML file
- 15.23.4. Stopping a virtual network
- 15.23.5. Creating a dump file
- 15.23.6. Eding a virtual network's XML configuration file
- 15.23.7. Getting information about a virtual network
- 15.23.8. Listing information about a virtual network
- 15.23.9. Converting a network UUID to network name
- 15.23.10. Starting a (previously defined) inactive network
- 15.23.11. Undefining the configuration for an inactive network
- 15.23.12. Converting a network name to network UUID
- 15.23.13. Updating an existing network definition file
- 16. Managing guests with the Virtual Machine Manager (virt-manager)
-
- 16.1. Starting virt-manager
- 16.2. The Virtual Machine Manager main window
- 16.3. The virtual hardware details window
- 16.4. Virtual Machine graphical console
- 16.5. Adding a remote connection
- 16.6. Displaying guest details
- 16.7. Performance monitoring
- 16.8. Displaying CPU usage for guests
- 16.9. Displaying CPU usage for hosts
- 16.10. Displaying Disk I/O
- 16.11. Displaying Network I/O
- 17. Guest virtual machine disk access with offline tools
-
- 17.1. Introduction
- 17.2. Terminology
- 17.3. Installation
- 17.4. The guestfish shell
- 17.5. Other commands
- 17.6. virt-rescue: The rescue shell
- 17.7. virt-df: Monitoring disk usage
- 17.8. virt-resize: resizing guest virtual machines offline
- 17.9. virt-inspector: inspecting guest virtual machines
- 17.10. virt-win-reg: Reading and editing the Windows Registry
- 17.11. Using the API from Programming Languages
- 17.12. Troubleshooting
- 17.13. Where to find further documentation
- 18. Using simple tools for guest virtual machine management
- 19. Virtual Networking
-
- 19.1. Virtual network switches
- 19.2. Network Address Translation
- 19.3. Networking protocols
- 19.4. The default configuration
- 19.5. Examples of common scenarios
- 19.6. Managing a virtual network
- 19.7. Creating a virtual network
- 19.8. Attaching a virtual network to a guest
- 19.9. Directly attaching to physical interface
- 19.10. Applying network filtering
-
- 19.10.1. Introduction
- 19.10.2. Filtering chains
- 19.10.3. Filtering chain priorities
- 19.10.4. Usage of variables in filters
- 19.10.5. Automatic IP address detection and DHCP snooping
- 19.10.6. Reserved Variables
- 19.10.7. Element and attribute overview
- 19.10.8. References to other filters
- 19.10.9. Filter rules
- 19.10.10. Supported protocols
- 19.10.11. Advanced Filter Configuration Topics
- 19.10.12. Limitations
- 19.11. Creating Tunnels
- 19.12. Setting vLAN tags
- 19.13. Applying QoS to your virtual network
- 20. qemu-kvm Commands, Flags, and Arguments
- 21. Manipulating the domain xml
-
- 21.1. General information and metadata
- 21.2. Operating system booting
- 21.3. SMBIOS system information
- 21.4. CPU allocation
- 21.5. CPU tuning
- 21.6. Memory backing
- 21.7. Memory tuning
- 21.8. NUMA node tuning
- 21.9. Block I/O tuning
- 21.10. Resource partitioning
- 21.11. CPU model and topology
- 21.12. Events configuration
- 21.13. Power Management
- 21.14. Hypervisor features
- 21.15. Time keeping
- 21.16. Devices
-
- 21.16.1. Hard drives, floppy disks, CDROMs
- 21.16.2. Filesystems
- 21.16.3. Device addresses
- 21.16.4. Controllers
- 21.16.5. Device leases
- 21.16.6. Host physical machine device assignment
- 21.16.7. Redirected devices
- 21.16.8. Smartcard devices
- 21.16.9. Network interfaces
- 21.16.10. Input devices
- 21.16.11. Hub devices
- 21.16.12. Graphical framebuffers
- 21.16.13. Video devices
- 21.16.14. Consoles, serial, parallel, and channel devices
- 21.16.15. Guest virtual machine interfaces
- 21.16.16. Channel
- 21.16.17. Host physical machine interface
- 21.17. Sound devices
- 21.18. Watchdog device
- 21.19. Memory balloon device
- 21.20. TPM devices
- 21.21. Security label
- 21.22. Example domain XML configuration
- 22. Troubleshooting
-
- 22.1. Debugging and troubleshooting tools
- 22.2. Creating virsh dump files
- 22.3. kvm_stat
- 22.4. Guest virtual machine fails to shutdown
- 22.5. Troubleshooting with serial consoles
- 22.6. Virtualization log files
- 22.7. Loop device errors
- 22.8. Live Migration Errors
- 22.9. Enabling Intel VT-x and AMD-V virtualization hardware extensions in BIOS
- 22.10. KVM networking performance
- 22.11. Workaround for creating external snapshots with libvirt
- 22.12. Missing characters on guest console with Japanese keyboard
- 22.13. Known Windows XP guest issues
- 22.14. Verifying virtualization extensions
- A. The Virtual Host Metrics Daemon (vhostmd)
- B. Additional resources
- C. Revision History
No comments:
Post a Comment