SUSE Linux Enterprise Server

Virtualization with Xen

12/15/2010

All content is copyright © 2006– 2010 Novell, Inc. All rights reserved.

Legal Notice

This manual is protected under Novell intellectual property rights. By reproducing, duplicating or distributing this manual you explicitly agree to conform to the terms and conditions of this license agreement.

This manual may be freely reproduced, duplicated and distributed either as such or as part of a bundled package in electronic and/or printed format, provided however that the following conditions are fulfilled:

That this copyright notice and the names of authors and contributors appear clearly and distinctively on all reproduced, duplicated and distributed copies. That this manual, specifically for the printed format, is reproduced and/or distributed for noncommercial use only. The express authorization of Novell, Inc must be obtained prior to any other use of any manual or part thereof.

For Novell trademarks, see the Novell Trademark and Service Mark list http://www.novell.com/company/legal/trademarks/tmlist.html. Linux* is a registered trademark of Linus Torvalds. All other third party trademarks are the property of their respective owners. A trademark symbol (®, ™ etc.) denotes a 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 Novell, Inc., SUSE LINUX Products GmbH, 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. Getting Started with Xen
1. Introduction to Xen Virtualization
1.1. Basic Components
1.2. Understanding Virtualization Modes
1.3. Xen Virtualization Architecture
1.4. The Virtual Machine Host
2. Setting Up a Virtual Machine Host
2.1. Best Practices and Suggestions
2.2. Managing Domain0 Memory
2.3. Network Card in Fully Virtualized Guests
2.4. Starting the Virtual Machine Host
2.5. PCI Pass-Through
3. Setting Up Virtual Machines
3.1. Creating a Virtual Machine
3.2. Installing an Operating System
3.3. Including Add-On Products in the Installation
3.4. Using the Command Line to Create Virtual Machines
3.5. Deleting Virtual Machines
3.6. Using an Existing Virtual MachineSUSE Linux Enterprise Server
3.7. Troubleshooting
4. Updating SLE 10 Systems to SLE 11
4.1. Boot Loader Configuration
II. Advanced Configurations
5. Managing a Virtualization Environment
5.1. Virtual Machine Manager
5.2. Controlling the Host by Modifying Xend Settings
5.3. Configuring a Virtual Machine by Modifying its Xend Settings
5.4. The xm Command
5.5. Automatic Starting of Domains
5.6. Migrating Xen VM Guest Systems
6. Virtual Networking
6.1. Virtual Bridges
6.2. Network Devices for Guest Systems
6.3. Host Based Routing in Xen
6.4. Creating a Masqueraded Network Setup
6.5. Special Configurations
7. Block Devices in Xen
7.1. Mapping Physical Storage to Virtual Disks
7.2. File-Backed Virtual Disks and Loopback Devices
7.3. Resizing Block Devices
8. Virtualization: Configuration Options and Settings
8.1. Virtual CD Readers
8.2. Remote Access Methods
8.3. VNC Viewer
8.4. Virtual Keyboards
8.5. Using PVUSB
8.6. Using Lock Files
8.7. HVM Features
III. Administration and Best Practices
9. Administration Tasks
9.1. The Boot Loader Program
9.2. Sparse Image Files and Disk Space
9.3. Migrating Virtual Machines
9.4. Passing Key Combinations to Virtual Machines
9.5. Monitoring Xen
9.6. Extra Guest Descriptions in Xen Configuration
9.7. Providing Host Information for VM Guest Systems
10. Save and Restore of Virtual Machines
10.1. Saving Virtual Machines
10.2. Restoring Virtual Machines
10.3. Virtual Machine States
11. Xen as High Availability Virtualization Host
11.1. Xen HA with Remote Storage
11.2. Xen HA with Local Storage
11.3. Xen HA and Private Bridges
12. SUSE Linux Virtual Machines
12.1. Using the Add-On Products Program
12.2. Virtual Machine Clock Settings
12.3. Updating a Network Installation Source
13. Virtual Machine Drivers
IV. Appendix
A. Virtual Machine Initial Start-Up Files
B. SXP Configuration Options
domain — Top Xend VM Guest SXP Configuration Element

List of Figures

1.1. Virtualization Architecture
1.2. Desktop Showing Virtual Machine Manager and Virtual Machines
3.1. Installing an Operating System
3.2. Summary
5.1. Desktop Showing Virtual Machine Manager and Virtual Machines
5.2. Virtual Machine Manager Main Console
9.1. Boot Loader Settings
9.2. Boot Loader Settings: Section Management

List of Tables

2.1. Hardware Requirements
7.1. Available uname Settings
8.1. Language and Keymap Settings
11.1. Xen Remote Storage
A.1. Initial start-Up File Entries and Descriptions

List of Examples

7.1. Example: Virtual Machine Output from Xend
9.1. Xen Section in the menu.lst File (Typical)