Product Documentation

Import Disk Images

Feb 01, 2013
Using the XenCenter Import wizard, you can import a disk image into a resource pool or a specific host, creating a new VM. The wizard will take you through many of the usual steps needed to create a new VM in XenCenter: nominating a home server, and configuring storage and networking for the new VM, plus some additional steps required as part of the import process, including:

Requirements for importing disk images

You need an RBAC role of Pool Admin to import disk images. The Import wizard will perform checks to ensure that you have a Pool Admin role in the destination pool before allowing you to continue. See RBAC overview for more information about RBAC roles.

Procedure

  • Open the Import wizard: on the File menu, select Import.
  • On the first page of the wizard, locate the disk image file you want to import, then click Next to continue.

    If you enter a URL location (http | https | file | ftp) in the Filename box, on clicking Next, a Download Package dialog box opens and you must specify a folder on your XenCenter host where the disk image will be copied.

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

    On the VM Definition page, enter the name of the new VM to be created from the imported disk image, and allocate CPU and initial memory resources. See VM CPU and Memory Allocation for guidelines on these fields.

    Click Next to continue.

  • Specify where to place the new VM and choose a home server.
    On the Location page, choose where you want to place the new VM, and (optionally) assign it a home server, then click Next to continue.
    • Click on a pool or standalone server in the Import VM(s) to list.
    • To nominate the home server for the VM, select a server from the list in the Home Server column. XenServer will always attempt to start up a VM on its home server if it can. See Home Server for more information on assigning a home server to new VMs.
    • If you do not want to nominate a home server, select Don't assign a home server from the list in the Home Server column.
  • Configure storage for the new VM.

    On the Storage page, select a storage repository (SR) where the imported virtual disk will be placed, then click Next to continue.

  • Configure networking for the new VM.

    On the Networking page, select a target network in the destination pool/standalone server for the new VM's virtual network interface.

    Click Next to continue.

  • Enable Operating System Fixup.

    If the disk image that you are importing was built on a hypervisor other than XenServer, select the Use Operating System Fixup check box and select an ISO SR where the Fixup ISO can be copied so that XenServer can use it. See About VM Import and Export for more information about this feature.

  • Configure Transfer VM networking.
    On the Transfer VM Settings page, configure the networking settings for the About VM Import and Export, then click Next to continue.
    • Select a network from the list of network interfaces available in the destination pool or standalone server.
    • To use automated Dynamic Host Configuration Protocol (DHCP) to automatically assign networking settings including the IP address, subnet mask and gateway, select Automatically obtain network settings using DHCP.
    • To configure networking settings manually, click Use these network settings and enter the IP address, subnet mask and gateway.
  • On the Finish page, review all the import settings and then click Finish to begin the import process and close the wizard.

    The import progress is displayed in the status bar at the bottom of the XenCenter window and also on the Logs tab.

    The import process may take some time, depending on the size of the imported virtual disks, the available network bandwidth, and the disk interface speed of the XenCenter host. When the import is finished, the newly-imported VMs will appear in the Resources pane.
    Note: After using XenCenter to import a disk image that contains Windows operating systems, you must set the platform parameter. This will vary according to the version of Windows contained in the disk image:
    • 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