Citrix Systems 6.2.0 manual Exporting VMs as OVF/OVA, To Import a VM from XVA using the xe CLI

Page 58

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 (.xva or ova.xml), and then click Next to continue.

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

3.Select a pool or host for the imported VM to start on, and then choose Next to continue.

4.Select the storage repositories on which to place the imported virtual disk, and then click Next to continue.

5.Configure networking for the imported VM: map the virtual network interface in the VM you are importing to target a network 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.

6.Review the import settings, and then click Finish to begin the import process and close the wizard.

Note:

Importing a VM may take some time, depending on the size of the VM and the speed and bandwidth of the network connection.

The import progress is displayed in the status bar at the bottom of the XenCenter window and on the Logs tab. When the newly-imported VM is available, it appears in the Resources pane.

To Import a VM from XVA using the xe CLI:

To import the VM to the default SR on the target XenServer host, enter the following:

xe vm-import -h <hostname> -u <root> -pw <password> \ filename=<pathname_of_export_file>

To import the VM to a different SR on the target XenServer host, add the optional sr-uuidparameter:

xe vm-import -h <hostname> -u <root> -pw <password> \ filename=<pathname_of_export_file> sr-uuid=<uuid_of_target_sr>

If you wish to preserve the MAC address of the original VM, add the optional preserve parameter and set to true:

xe vm-import -h <hostname> -u <root> -pw <password> \ filename=<pathname_of_export_file> preserve=true

Note:

Importing a VM may take some time, depending on the size of the VM and the speed and bandwidth of the network connection.

Once the VM has been imported, the command prompt returns the UUID of the newly-imported VM.

11.5. Exporting VMs

You can export OVF/OVA and XVA files using the XenCenter Export wizard; you can also export XVA files via the xe CLI.

11.5.1. Exporting VMs as OVF/OVA

Using the XenCenter Export wizard, you can export one or more VM(s) as an OVF/OVA package. When you export VMs as an OVF/OVA package, the configuration data is exported along with the virtual hard disks of each VM.

51

Image 58
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 Overview About this DocumentXenServer Documentation Creating VMs Virtual MachinesOther Methods of VM Creation XenServer Tools Importing an Exported VMPage Supported Guests, Virtual Memory, and Disk Size Limits Supported Guests and Allocating ResourcesOperating System Minimum Maximum Minimum Disk Space 4GB 8GB Experimental Guests Operating SystemXenServer Product Family Virtual Device Support Deprecated GuestsVirtual device Linux VMs Windows VMs VM Block Devices Available Windows Templates Basic Procedure for Creating a Windows VMCreating Windows VMs Template Name DescriptionAttaching an ISO Image Library Using XenCenter to Create a VMTo create a Windows 7 32-bit VM 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 Debian using a preseed file Advanced Operating System Boot ParametersTo install Rhel Using a Kickstart File Installing the Linux Guest Agent To install the guest agentAdditional Installation Notes for Linux Distributions Linux Distribution Installation NotesMachine Name Preparing to Clone a Linux VMAdditional Debian Notes IP addressPage XenMotion VM Migration with XenMotion and Storage XenMotionXenMotion and Storage XenMotion Storage XenMotionLive VDI Migration Migrating a VM using XenCenterLimitations and Caveats To Move Virtual Disks Updating Windows Operating Systems To uninstall the XenServer ToolsUpdating VMs Updating XenServer Tools for Windows VMsPage Managing vApps in XenCenter Creating a vApp using XenCenterVApps Creating vAppsDeleting vApps Start and shutdown vApps using XenCenterDeleting vApps using XenCenter To start a vAppTo export a vApp Importing and Exporting vAppsTo import a vApp Reset XenDesktop Shared Desktop Mode VM Boot BehaviorPersist XenDesktop Private Desktop Mode Advanced Notes for Virtual MachinesInstalldir/xensetup.exe /S /norestart To enable the Windows XenServer VSS provider Windows Volume Shadow Copy Service VSS providerConnecting to a Windows VM Using Remote Desktop To Enable Remote Desktop on a Windows VMTime Handling in Windows VMs Time Handling in Linux VMsTo set individual Linux VMs to maintain independent times Installing a VM from Reseller Option Kit BIOS-locked MediaGuest OS Dependent wallclock Independent wallclock Using XenCenter Preparing for Cloning a Windows VM Using VSSUsing the CLI Assigning a GPU to a Windows VM for Use with XenDesktop Cloning Windows VMsTo detach a Windows VM from a GPU using XenCenter To assign a GPU to a Windows VM using XenCenterTo assign a GPU to a Windows VM using xe CLI To detach a Windows VM from a GPU using the xe CLIDetach the GPU from the VM by entering the following Importing the Demo Linux Virtual Appliance To Import the Demo Linux Virtual Appliance Using XenCenterUseful Tests Page Supported Formats Importing and Exporting VMsFormat Description Open Virtualization Format OVF and OVA Attribute DescriptionDisk Image Formats VHD and Vmdk XVA FormatOperating System Fixup XVA Version 1 FormatImporting VMs Transfer VMTo use the RawVDI transfer protocol 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 To Import a VM from XVA using the xe CLIExporting VMs as OVF/OVA 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 cloningSuse Enterprise Linux 10 SP1 CentOSOracle Enterprise Linux Suse Enterprise Linux 10 SP3Ubuntu Creating an ISO on a Linux computer Appendix C. Creating ISO ImagesOn a Windows 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-streamModifying the xinetd Configuration Setting up SLES-based VMs for VNCEnabling Remote Administration 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 FirewallEnable Remote Access Appendix E. Setting Up a Red Hat Installation ServerCopying Installation Media NFSFTP HttpVM Crashes Appendix F. Troubleshooting VM ProblemsTo enable saving of Linux VM crash dumps Controlling Linux VM Crashdump BehaviourTroubleshooting Boot Problems on Linux VMs