Citrix Systems 6.2.0 manual Importing Disk Images, To Import VMs from a Disk Image using XenCenter

Page 56

For Windows Vista, Server 2008, and later, set the platform parameter to device_id=0002. For example:

xe vm-param-set uuid=<VM uuid> platform:device_id=0002

For all other versions of Windows, set the platform parameter to viridian=true. For example:

xe vm-param-set uuid=<VM uuid> platform:viridian=true

11.4.2.Importing Disk Images

The XenCenter Import wizard allows you to import a disk image into a pool or specific host as a VM. The Import wizard takes you through the usual steps needed to create a new VM in XenCenter: nominating a host, and then configuring storage and networking for the new VM.

Requirements

You must be logged in as root or have the Pool Administrator Role Based Access Control (RBAC) role associated with your user account.

DHCP has to be running on the management network XenServer is using.

The Import wizard requires local storage on the server on which you are running it.

To Import VM(s) from a Disk Image using XenCenter:

1.Open the Import wizard by doing one of the following:

In the Resources pane, right-click, and then select Import on the shortcut menu.

On the File menu, select Import.

2.On the first page of the wizard, locate the file you want to import, and then click Next to continue.

3.Specify the VM name and allocate CPU and memory resources.

Enter a name for the new VM to be created from the imported disk image, and then allocate the number of CPUs and amount of memory. Click Next to continue.

4.Specify the pool or host to which you want to import the VM(s), and then (optionally) assign the VM(s) to a home XenServer host.

To select a host or pool, choose from the Import VM(s) to drop-down list.

To assign each VM a home XenServer host, select a server from the list in the Home Server. If you wish not to assign a home server, select Don't assign a home server.

Click Next to continue.

5.Configure storage for the imported VM(s): select one or more storage repositories on which to place the imported virtual disks, and then click Next to continue.

To place all the imported virtual disks on the same SR, select Place all imported VMs on this target SR, and then select an SR from the list.

To place the virtual disks of incoming VMs onto different SRs, select Place imported VMs on the specified target SRs. For each VM, select the target SR from the list in the SR column.

6.Configure networking for the imported VMs: map the virtual network interfaces in the VMs you are importing to target networks in the destination pool. The Network and MAC address shown in the list of incoming VMs are stored as part of the definition of the original (exported) VM in the export file. To map an incoming virtual network interface to a target network, select a network from the list in the Target Network column. Click Next to continue.

49

Image 56
Contents Citrix XenServer 6.2.0 Virtual Machine Users Guide Trademarks Contents VM Migration with XenMotion and Storage XenMotion Importing the Demo Linux Virtual Appliance Windows VM Release Notes Setting Up a Red Hat Installation Server XenServer Documentation About this DocumentOverview Other Methods of VM Creation Virtual MachinesCreating VMs XenServer Tools Importing an Exported VMPage Operating System Minimum Maximum Minimum Disk Space Supported Guests and Allocating ResourcesSupported Guests, Virtual Memory, and Disk Size Limits 4GB 8GB Experimental Guests Operating SystemVirtual device Linux VMs Windows VMs Deprecated GuestsXenServer Product Family Virtual Device Support VM Block Devices Basic Procedure for Creating a Windows VM Creating Windows VMsAvailable Windows Templates Template Name DescriptionTo create a Windows 7 32-bit VM Using XenCenter to Create a VMAttaching an ISO Image Library Page Using the CLI to Create a Windows VM Installing a Windows VM from an ISO Repository Using the CLICreating Linux VMs Install From Network From CD Repository Distribution VendorCreating a Linux VM by Installing from a Physical CD/DVD Creating a Linux VM by Installing From an ISO Image Network Installation NotesTo install Rhel Using a Kickstart File Advanced Operating System Boot ParametersTo install Debian using a preseed file Installing the Linux Guest Agent To install the guest agentAdditional Installation Notes for Linux Distributions Linux Distribution Installation NotesPreparing to Clone a Linux VM Additional Debian NotesMachine Name IP addressPage VM Migration with XenMotion and Storage XenMotion XenMotion and Storage XenMotionXenMotion Storage XenMotionLimitations and Caveats Migrating a VM using XenCenterLive VDI Migration To Move Virtual Disks To uninstall the XenServer Tools Updating VMsUpdating Windows Operating Systems Updating XenServer Tools for Windows VMsPage Creating a vApp using XenCenter VAppsManaging vApps in XenCenter Creating vAppsStart and shutdown vApps using XenCenter Deleting vApps using XenCenterDeleting vApps To start a vAppTo import a vApp Importing and Exporting vAppsTo export a vApp VM Boot Behavior Persist XenDesktop Private Desktop ModeReset XenDesktop Shared Desktop Mode Advanced Notes for Virtual MachinesInstalldir/xensetup.exe /S /norestart Windows Volume Shadow Copy Service VSS provider Connecting to a Windows VM Using Remote DesktopTo enable the Windows XenServer VSS provider To Enable Remote Desktop on a Windows VMTime Handling in Windows VMs Time Handling in Linux VMsGuest OS Dependent wallclock Independent wallclock Installing a VM from Reseller Option Kit BIOS-locked MediaTo set individual Linux VMs to maintain independent times Using the CLI Preparing for Cloning a Windows VM Using VSSUsing XenCenter Assigning a GPU to a Windows VM for Use with XenDesktop Cloning Windows VMsTo assign a GPU to a Windows VM using XenCenter To assign a GPU to a Windows VM using xe CLITo detach a Windows VM from a GPU using XenCenter To detach a Windows VM from a GPU using the xe CLIDetach the GPU from the VM by entering the following Useful Tests To Import the Demo Linux Virtual Appliance Using XenCenterImporting the Demo Linux Virtual Appliance Page Format Description Importing and Exporting VMsSupported Formats Open Virtualization Format OVF and OVA Attribute DescriptionDisk Image Formats VHD and Vmdk XVA FormatOperating System Fixup XVA Version 1 FormatTo use the RawVDI transfer protocol Transfer VMImporting VMs To Import VMs from OVF/OVA using XenCenter Importing VMs from OVF/OVAPage To Import VMs from a Disk Image using XenCenter Importing Disk ImagesTo Import VMs from XVA Files VM using XenCenter Importing VMs from XVAExporting VMs as OVF/OVA To Import a VM from XVA using the xe CLIExporting VMs To Export VMs as OVF/OVA using XenCenter To Export VMs as XVA Files using XenCenter Exporting VMs as XVATo Export VMs as XVA Files using the xe CLI Appendix A. Windows VM Release Notes Release NotesAppendix B. Linux VM Release Notes Red Hat Enterprise Linux 4.5 toRed Hat Enterprise Linux Preparing a Rhel 4.5 to 4.8 guest for cloningCentOS Oracle Enterprise LinuxSuse Enterprise Linux 10 SP1 Suse Enterprise Linux 10 SP3Ubuntu On a Windows computer Appendix C. Creating ISO ImagesCreating an ISO on a Linux computer Appendix D. Enabling VNC for Linux VMs Enabling a Graphical Console on Debian Squeeze VMsDetermining the Location of your VNC Configuration File Configuring GDM to use VNCFirewall Settings VNC Screen ResolutionEnabling VNC for RHEL, CentOS, or OEL 6.x VMs Create the xinetd.d file, /etc/xinetd.d/vnc-server-streamSetting up SLES-based VMs for VNC Enabling Remote AdministrationModifying the xinetd Configuration Checking for a VNC ServerTo Open the VNC Port on Sles 10.x VMs Firewall Checking Runlevels To Open the VNC Port on Sles 11.x VMs FirewallAppendix E. Setting Up a Red Hat Installation Server Copying Installation MediaEnable Remote Access NFSFTP HttpAppendix F. Troubleshooting VM Problems To enable saving of Linux VM crash dumpsVM Crashes Controlling Linux VM Crashdump BehaviourTroubleshooting Boot Problems on Linux VMs