Citrix

How to Manually Import Virtual Machines to Other Than the Default Storage Repository

  • CTX124660
  • Created onMar 26, 2014
  • Updated onMay 23, 2014
Article Topic Storage

Objective

Importing Virtual Machines (VMs) using XenConvert imports to the default Storage Repository (SR) selected in XenCenter for the appropriate XenServer.  If the servers are in a pool, manually importing with the following procedure works around the default SR requirement if required to import to an SR other than the default.

XenConvert requires a default SR to be selected when the selection to import a VM to a XenServer is selected.  When multiple XenServer’s are in a pool, the default SR is the shared SR and the local SR is not an option.  To import to an SR other than the default, use 2.0.3 XenConvert to convert to an XVA (ova.xml + disk chunks) and import using following xe commands.

OVA File Formats

It is important to understand the Open Virtual Machine format (OVA) as it could mean two things – ova.xml or .ova.
  • Ova.xml is a file that is part of the original XVA (aka XVA V1) format. (XVA V2 is a single .xva file). Ova.xml is the format that xe vm-import accepts.

  • An .ova file is a single file archive of the files that comprise an OVF Package.

  • XenConvert is phasing out usage of ova.xml.

  • XenConvert 2.0 does support importing ova.xml.

  • XenConvert 2.1 does not support importing ova.xml but does support importing .ova.

  • With XenConvert 2.1, one has to temporarily change the default SR first.

  • If it is XenServer 5.6 Beta, then XenCenter includes a new OVF plug-in that can import .ovf or .ova created by XenConvert.

Instructions

Complete the following procedure to import a VM to an SR other than the default SR for XenServer’s in pool.

  1. Download and install the XenConvert version 2.0.3 on the physical host machine.

  2. Select to convert physical machine to an XVA (ova.xml plus disk chunks).

  3. Put the exported ova.xml plus disk chunks in a folder to share in Windows.

  4. Share the folder in which you located the ova.xml + disk chunks.

  5. On XenServer where you want to import the VM, identify the SR Universally Unique Identifier (UUID) to use as the destination with the following command:
    xe sr-list name-label=<name of your SR>

  6. Create a CIFS share in XenServer and mount the Windows share as described below:

    1. Make a target directory for the CIFS share with the following command:
      mkdir /tmp/cifsmount.

    2. Mount the CIFS share with following command:
      mount –t cifs //<IP or FQDN of target machine>/share /tmp/cifsmount –o username=user,password=<password>

    3. Navigate the CIFS share and see if you can see the files with the following command:
      ls /tmp/cifsmount.

      Screen shot:

      User-added image

  7. Import the VM using the following xe command :
    xe vm-import filename=/tmp/cifsshare/<name of ova.xml> force=true sr-uuid=<uuid of desitination SR> preserve=true
    The VM must import to your XenServer and SR. 

Additional Resources

Applicable Products

Automatic translation

Important: Non-English versions of this article are translated by an automatic translation system (also referred to as Machine Translation, or MT) and have not been translated or reviewed by a person. Citrix offers a machine translated version of this article to allow for greater access to the support content. However, automatic translation is not always perfect and may contain vocabulary, syntax or grammar errors. Citrix is not responsible for inconsistencies, errors or damage incurred as a result of the use of machine translated articles. Thank you.

Traduction automatique

Important : cet article a été traduit par un système de traduction automatique (également appelé Traduction automatique ou TA) et n'a pas été vérifié par des spécialistes. Citrix propose une traduction automatique de cet article afin de permettre à toute personne ne maîtrisant pas l'anglais d'accéder au contenu de l'assistance. Toutefois, la traduction automatique n'étant pas parfaite, elle peut contenir des erreurs de terminologie, de syntaxe ou de grammaire. Citrix n'est pas responsable des incohérences, erreurs ou dommages pouvant résulter de l'utilisation par nos clients d'articles TA.

Automatische vertaling

Belangrijk: Dit artikel is vertaald door een automatisch vertalingssysteem (ook Machine Translation of MT genoemd) en is niet vertaald of beoordeeld door mensen. Citrix biedt een machine-vertaalde versie van dit artikel aan om een betere toegang mogelijk te maken tot de support-inhoud. Automatisch vertalen werkt echter niet altijd perfect en het resultaat kan fouten bevatten in de woordkeuze, syntaxis of grammatica. Citrix is niet verantwoordelijk voor inconsistenties, fouten of schade als gevolg van het gebruik van MT-artikelen door onze klanten.

Maschinelle Übersetzung

Wichtig: Dieser Artikel wurde mit einem maschinellen Übersetzungssystem und ohne jegliche Bearbeitung durch Personen übersetzt. Citrix bietet maschinelle Übersetzungen von Artikeln an, damit Benutzer umfassenden Zugriff auf Support-Inhalte haben. Maschinelle Übersetzungen enthalten jedoch möglicherweise Fehler in Bezug auf Terminologie, Syntax und Grammatik. Citrix übernimmt keine Verantwortung für Inkonsistenzen, Fehler oder Schäden, die aus der Verwendung von maschinell übersetzten Artikeln durch Kunden resultieren.

自动翻译

重要提示:本文是由自动翻译系统翻译完成的(也称为“机器翻译”或 MT),未经人工翻译或审查。Citrix 提供本文的机器翻译版本是为了方便更多人访问支持内容。然而,自动翻译的文章并不总是完美的,可能存在词汇、语法或文法方面的错误。对于因客户使用机器翻译文章导致出现的不一致、错误或损害,Citrix 不承担任何责任。

機械翻訳

重要:この技術情報資料は機械翻訳システム(自動翻訳あるいはMTとも呼ぶ)により翻訳され、翻訳者により翻訳またはレビューされたものではありません。サポート用資料をより参照しやすくするため、Citrixはこの技術文書の機械翻訳バージョンを提供しています。しかしながら、機械翻訳の品質は翻訳者による翻訳ほど十分ではありません。誤訳や、文法、言葉使い、そのほか、たとえば日本語を母国語としない方が日本語を話すときに間違えるようなミスを含んでいる可能性があります。機械翻訳の品質、および技術情報資料の内容の誤訳やお客様が技術情報資料を利用されたことによって生じた直接または間接的な問題や損害については、いかなる責任も負わないものとします。

Tradução automática

Importante: este artigo foi traduzido por um sistema de tradução automática (também conhecido por Machine Translation ou MT) e não foi traduzido nem revisado por pessoas. A Citrix oferece uma versão traduzida por máquina deste artigo para permitir maior acesso ao conteúdo de suporte. No entanto, a tradução automática não é sempre perfeita, podendo conter erros de vocabulário, sintaxe ou gramática. A Citrix não se responsabiliza por inconsistências, erros ou danos incorridos como resultado do uso de artigos de MT de nossos clientes.

Traducción automática

Importante: Este artículo ha sido traducido por un sistema de Traducción automática (también llamada MT o Machine Translation) sin intervención de un traductor humano. Citrix ofrece la traducción automática de este artículo para ampliar el acceso a la información de asistencia técnica. No obstante, la traducción automática no es perfecta y puede contener errores de vocabulario, sintaxis y gramática. Citrix no se hace responsable de cualquier imprecisión, error o daño ocasionados por el uso que hagan nuestros clientes de los artículos traducidos automáticamente.
Languages
Was this helpful?
Thank you for your feedback

Share your comments or find out more about this topic

Citrix Forums