XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Import VM from exported xva

    Scheduled Pinned Locked Moved Solved Xen Orchestra
    3 Posts 2 Posters 2.7k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      HeMaN
      last edited by

      Hi,

      I reinstalled my XCP-ng server. Before that I exported all vm's to a network storage (via powershell script).

      After reinstalling the new server (booting from SSD and created a new virtual disk on my raid controller for local storage replacing the previous 2 virtual disks) I installed the XOA appliance with the quick install option from the server webpage.

      When I choose "Import - VM" I can drag and drop the xva of my choise and start the import.
      After the import is finished I am prsented with the overview of a new VM in XOA.
      When I try to start the VM or for example want to change the network settings, I get an error "no such VM 682c77dd-2448-7447-4a8e-783748408516".

      When I look at Home - VM the VM is also not listed there.
      When I look at home - Storage - MySR - Disks, the disk is listed and showing to be attached to a VM (that does not exist).

      Is this a bug, am I doing something wrong, or are my expectations of having a working VM after importing wrong?

      Workaround I found for now:
      the imported VM is showing up under templates. So I create a new VM based on the template. This VM is working as expected.
      Only issue is I have two disks then (taking twice the storage space?)

      1 Reply Last reply Reply Quote 0
      • olivierlambertO Offline
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        Your powershell script is probably incorrectly exporting a VM without flipping the "is a template" to false.

        That's why I suggest to use VM export/backup with XO in the first place (if you can).

        In your case, just do a xe vm-param-set is-a-template=false uuid=<VM UUID> and it will appear as a normal VM.

        1 Reply Last reply Reply Quote 1
        • H Offline
          HeMaN
          last edited by

          Thank you again! This did the magic trick.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post