Table of Contents 1. About this document ....................1 1.1. Overview ......................1 1.2. How this Guide relates to other documentation ........... 1 2. Creating VMs ......................2 2.1. Overview ......................2 2.2. Virtual memory and disk size limits ..............2 2.3.
Page 5
XenServer Virtual Machine Installation Guide 4.9.9. Oracle Enterprise Linux 5 ..............30 5. Updating VMs ......................31 5.1. Updating Windows operating systems .............. 31 5.2. Updating paravirtualized drivers for Windows VMs ..........31 5.3. Updating Linux kernels and guest utilities ............32 A.
Chapter 1. About this document 1.1. Overview This document is a guide to creating Virtual Machines with XenServer™, the platform virtualization solution from Citrix™. It describes the various methods of getting VMs up and running on XenServer Hosts for each of the supported operating systems.
Chapter 2. Creating VMs This chapter provides an overview of how VMs are created and lists virtual memory and virtual disk size minimums, describes the differences in virtual device support for the members of the XenServer product family. This chapter also discusses physical to virtual conversion (P2V), cloning templates, and importing previously-exported VMs.
Creating VMs Operating System Minimum RAM Maximum RAM Disk space Windows Vista 32-bit 512MB minimum supported, 32GB 16GB 768MB or more recommended Windows 2003 128MB minimum supported; 32GB 256MB or more recommended Windows XP SP2 128MB minimum supported; 32GB 1.5GB 256MB or more recommended Windows 2000 SP4 128MB minimum supported;...
Creating VMs Enterprise Standard Express Edition Edition Edition Number of concurrent VMs Support for VLANs Support for shared storage Support for server pools Support for additional QoS control If you attempt to create a fifth VM with a Express Edition license, for example, an error message will appear suggesting that you can upgrade your license.
Creating VMs Select OK to proceed. The installer does some hardware detection and initialization, then presents a screen with four choices. Select Convert an existing OS on this machine to a VM (P2V) and choose OK to proceed. A "Welcome to XenServer P2V" screen with a descriptive message is displayed next. Click OK to proceed and follow the on-screen prompts.
Creating VMs If you P2V an existing server, it's best to P2V a test instance of the server, and run it in parallel with the existing physical server until you are satisfied that everything works properly in the virtual environment before re-purposing the existing physical machine.
Creating VMs Note Note that an exported VM that originated on one XenServer Host might or might not be able to be resumed on a different XenServer Host. For example, if a Windows VM created on a XenServer Host with an Intel VT-enabled CPU is exported, then imported to a XenServer Host with an AMD- V CPU, it will not start.
Page 13
Creating VMs xe vm-import -h <hostname> -u <root> -pw <password> \ filename=<pathname of export file> sr-uuid=<UUID of target SR> You can also preserve the MAC address of the original VM by adding the optional preserve set to true: xe vm-import -h <hostname> -u <root> -pw <password> \ filename=<pathname of export file>...
Chapter 3. Installing Windows VMs XenServer allows you to install Windows 2000 SP4, Windows Server 2003 (32-/64- bit), or Windows XP SP2 into a VM. Installing Windows VMs on XenServer Host requires hardware virtualization support (Intel VT or AMD-V). Installing a Windows VM can be broken down into two main steps: •...
Installing Windows VMs If making a Windows SMB/CIFS share available to the XenServer host, either use XenCenter to make it available, or connect to the host console and type in: xe-mount-iso-sr unc_path -t smbfs -o username=myname/myworkgroup The unc_path argument should have back-slashes replaces by forward-slashes. -t cifs can be used for CIFS instead of SMB.
Installing Windows VMs Warning Be extremely careful with copying ISOs directly onto the control domain filesystem, as it has limited space available. A network share is a much safer mechanism for storing large numbers of ISO images. If the control domain does fill up, unpredictable behavior will result. 3.2.
Installing Windows VMs In the Remote Desktop section of this dialog box, check the checkbox labeled Allow users to connect remotely to this computer (Windows XP) or Enable Remote Desktop on this computer (Windows 2003 Server). If you want to select any non-administrator users that can connect to this Windows VM, click the Select Remote Users...
Installing Windows VMs 3.5. Release Notes There are many versions and variations of Windows with different levels of support for the features provided by XenServer. This section lists notes and errata for the known differences. 3.5.1. General Windows Issues • When installing Windows virtual machines, users should start off with fewer than four disks. Once the VM and XenServer tools have been installed, users can then add additional virtual disks.
Chapter 4. Installing Linux VMs XenServer supports the installation of many Linux distributions into paravirtualized VMs. There are four installation mechanisms at present: complete distributions provided as built-in templates, Physical-to-Virtual (P2V) conversion of an existing native instance (see Section 2.4, “Physical to Virtual Conversion (P2V)”), using the vendor media in the server's physlca DVD/CD drive, and using the vendor media to perform a network installation.
Installing Linux VMs 4.1. Installation of a built-in distribution This is the simplest way of installing a VM. The template provided with XenServer can be used to directly create a VM running version 3.1 (Sarge) or 4.0 (Etch) of the Debian Linux distribution without need for vendor installation media and without performing a P2V conversion of an existing physical server.
Page 21
Installing Linux VMs xe vm-install template="<template name>" new-name-label=<name for VM> This returns the UUID of the new VM. Get the UUID of the new VM's root disk: xe vbd-list vm-uuid=<VM UUID> params=uuid --minimal Using the UUID returned, set the root disk to be not be bootable: xe vbd-param-set uuid=<root disk UUID>...
Installing Linux VMs 12. Open a text console to the VM with XenCenter or an SSH terminal and follow the steps to perform the OS installation. Note The console in XenCenter does not support VNC during the OS installation. However, it is possible to perform a graphical installation rather than the text-based installation if you connect an external VNC client to the new VM.
Installing Linux VMs This returns the UUID of the new VM. Find the UUID of the network that you want to connect to. For example, if it's the one attached to xenbr0: xe network-list bridge=xenbr0 --minimal Create a VIF to connect the new VM to this network: xe vif-create vm-uuid=<VM UUID>...
Installing Linux VMs with real IP addresses already in use in your network. The default range of IP addresses is 192.168.128.1 to 192.168.128.254, and the default netmask is 255.255.255.0. Procedure 4.3. To change the guest installer network values Open a text console on the XenServer Host or install the CLI for remote use. Find the guest installer network: xe network-list The command will return the list of networks available to the XenServer Host.
Installing Linux VMs It is important to install this agent and keep it up-to-date (see Chapter 5, Updating VMs) as you upgrade your XenServer host. Procedure 4.4. To install the guest agent The files required are present on the built-in xs-tools.iso CD image, or alternatively by using the “Install Tools”...
Installing Linux VMs 4.6.3. MAC address In some cases, the MAC address of a cloned VM's virtual network interface is recorded in the network configuration files. After the VM is cloned, the new cloned VM has a different MAC address. Therefore, when started, the network does not come up automatically.
Page 27
Installing Linux VMs Note Before setting up your Red Hat VMs for VNC, be sure that you have installed the Linux guest agent. See Section 4.5, “Installing the Linux guest agent” for details. In order to configure VNC on Red Hat VMs, you need to modify the GDM configuration. The GDM configu- ration is held in a file whose location varies depending on the version of Red Hat Linux you are using.
Installing Linux VMs 0=VNC • If you are using Red Hat Linux 5 or greater, you will need to add the above line just below the [servers] section and before the [server-VNC] section. Save and close the file. Restart GDM for your change in configuration to take effect, by running /usr/sbin/gdm-restart. Note that, for Red Hat Linux, runlevel 5 is used for graphical startup.
Installing Linux VMs where the value of the -geometry parameter can be any valid screen width and height. Save and close the file. 4.8.2. Setting up SLES-based VMs for VNC Note Before setting up your SUSE Linux Enterprise Server VMs for VNC, be sure that you have installed the Linux guest agent.
Page 30
Installing Linux VMs The original top-level menu of YaST appears. Tab to the Quit button and press Enter. 4.8.2.3. Modifying the xinetd configuration After enabling Remote Administration, you need to modify a configuration file if you want to allow XenCenter to connect, or else use a third party VNC client.
Page 31
Installing Linux VMs # yast Use the arrow keys to select Security and Users in the left menu, then Tab to the right menu and use the arrow keys to select Firewall. Press Enter. In the Firewall screen, Tab to the Firewall Configuration: Settings section. Use the arrow keys to select the Allowed Services in the left menu.
Installing Linux VMs 4.8.3. Setting up Debian-based VMs for VNC The built-in Debian Sarge and Etch templates come pre-configured with VNC setup and ready use. However, the default VNC configuration in Debian does not permit the root administration user to log in by default. To log in by VNC, you can either: •...
Installing Linux VMs To prepare a Debian guest for cloning (see Section 4.6.3, “MAC address”), Ethernet name persistence must be disabled. For Debian Sarge VMs, name persistence is controlled through /etc/udev/persis- tent-net-generator.rules in the udev package. It can be disabled by removing the following symlink to that file by: rm -f /etc/udev/rules.d/z45_persistent-net-generator.rules 4.9.2.
Installing Linux VMs • Disks sometimes do not attach correctly on boot (Red Hat Bugzilla 247265) • Live migration can occasionally crash the kernel under low memory conditions (Red Hat Bugzilla 249867) • Guest kernel can occasionally hang due to other xenstore activity (Red Hat Bugzilla 250381) •...
Installing Linux VMs 4.9.5. CentOS 4 Please refer to Section 4.9.3, “Red Hat Enterprise Linux 4” for the list of CentOS 4 release notes. Unlike RHEL4, CentOS includes a third-party updates mechanism known as yum. The xe-guest-util- ities RPM will install a XenServer entry for yum, allowing you to pick up kernel updates provided by Citrix via the standard update mechanism as they become available.
Chapter 5. Updating VMs This chapter discusses updating VMs with new Linux kernel revisions, updating Windows operating systems, applying Windows Service Packs, and updates to XenServer paravirtualized drivers and VM utilities. Upgrades to VMs are typically required when moving to a new version of XenServer. The following are current issues involving upgrading VMs running on XenServer to this version: •...
Updating VMs 5.3. Updating Linux kernels and guest utilities The Linux guest utilities can be updated by re-running the Linux/install.sh script from the built-in xs- tools.iso CD image (see Section 4.5, “Installing the Linux guest agent”). From time to time, Citrix also supplies updated Linux kernels for supported distributions.
Appendix A. Creating ISO images XenServer can use ISO images of CD-ROM or DVD-ROM disks as installation media and data sources for Windows or Linux VMs. This section describes how to make ISOs from CD/DVD media. Procedure A.1. On a Linux computer Put the CD- or DVD-ROM disk into the drive.
Appendix B. Setting Up a Red Hat Installation Server This chapter explains how to set up a server as an installation server for Red Hat Linux. For a server to act as a Red Hat Linux network installation server, you need space on your server to copy the entire contents of each CD onto your server.
Setting Up a Red Hat Installation Server exportfs -r This configures the most basic read-only export to all hosts on our network. If you want to include more advanced options in your export, such as exporting to certain hosts only, or on a certain subnet only, see the man page for the exports file at exports (5).
Appendix C. Troubleshooting VM problems If you experience odd behavior, application crashes, or have other issues, this chapter is meant to help you solve the problem if possible and, failing that, describes where the application logs are located and other information that can help your XenServer Solution Provider and Citrix track and resolve the issue.
Troubleshooting VM problems For Windows VMs, the core dump behavior cannot be controlled through the actions-af- ter-crash parameter. By default Windows crash dumps are put into %SystemRoot% \Minidump in the Windows VM itself. You can configure the VMs dump level by going into My Computer --> Properties --> Advanced -->...
Index Linux, Windows, Intel VT (Intel hardware virtualization), 7, ISO image Creating ISO image files of installation disks, creating, Making available to XenServer Hosts, 9 AMD-V (AMD hardware virtualization), 7, Limitations on virtual devices, 3 Limits, virtual disk space, 2 Limits, virtual memory, 2 Cloning VMs, 6, 20 Linux...
Page 44
Index Remote Desktop, 11 SMB/CIFS share, mounting ISO from, 9 Template sysprep, 12 definition of, Linux VMs, 2, pre-configured (Debian), 2 XenServer product family, differences, 3 Windows, Windows VMs, 2, Time handling, in Linux VMs time handling, in VMs, 21 Troubleshooting Linux VM boot problems, 37 Linux VM general problems, 36...
Need help?
Do you have a question about the DL385 - ProLiant - G5 and is the answer not in the manual?
Questions and answers