Import VM from exported xva
-
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?) -
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. -
Thank you again! This did the magic trick.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login