Latest XCP-ng 8.2: Cannot import XVA, even with latest XOA
-
Hi all,
Today I've setup a fresh install of XCP-ng 8.2 (latest) on a new Dell R740xd server. I also downloaded the latest version of XCP-ng Center 20.04.01. This is what I tried:
- First I tried to import an XVA backup through XCP-ng Center. It would show a yellow VM and hang at that point.
- I tried exposing an NFS share to xcpng (host) and ran
xe vm-import filename=/tmp/cifsmount/xcpng_vm_backups/20200707T203024Z.xva force=true sr-uuid=d1cdbdfd-1c84-6175-40dc-184bc77297fd
. As per the docs, a good import will cause that command to terminate by printing the UUID for the new VM. However, it never terminates, not even in a screen session. - Last option, I've installed XOA (latest) and tried importing the same XVA. No luck.
- I have of course tried other XVA backups, nothing works.
Right now I'm testing the XOA cli tool and trying to see if this works. Can someone help please?
Thanks, Mike.
-
Not much luck here either.
root@xcpng-host0-xoa:/mnt/linux_data/xcpng_vm_backups/docker0# xo-cli vm.import sr=d1cdbdfd-1c84-6175-40dc-184bc77297fd @=20200707T203003Z.xva ā Internal Server Error Error: Internal Server Error at onResponse (/usr/local/lib/node_modules/xo-cli/node_modules/http-request-plus/dist/index.js:230:21) at processTicksAndRejections (internal/process/task_queues.js:93:5)
-
This is clearly not a client issue, but a host issue (or a XVA problem).
Why using
force
withxe
by the way? Let's talk withxe
only which is the safest best.- When you start the import, is there a task created?
- Check the usual logs (xensource.log)
-
@olivierlambert Yes, a task is created (in XOA), which never ends.
With
xe vm-import
it creates a VM in yellow state, but never progresses beyond that.I just setup a fresh install of Ubuntu 20, I'll export it and try and re-import it as XVA.
-
Is the task having any progress?
-
This post is deleted! -
@olivierlambert Hang on there's a sliver of progress now!
-
@olivierlambert It's showing 1% but not doing much beyond that.
-
Anything happening in xensource or SMlog?
-
@olivierlambert Nothing out of the ordinary. Still 1%.
-
Then you have an issue on the storage or in the XVA file itself.
-
@olivierlambert it's definitely not the storage, will try a different XVA to isolate.
-
@olivierlambert Are there any compatibility issues, i.e. say exporting a XVA with an older version of XCPng and trying to import with a newer version?
-
No known issue with XVA import. Nor any recent tickets about this kind of problem.
-
@olivierlambert Thanks your comments got me thinking, it could be the NFS mount connection is dropping out; trying a test now to mount it via fstab in XCPng.
-
@olivierlambert here's another clue. If I mount my local CIFS share onto the XCPng host, after a while I cannot do
cd /mnt ls -la # it just hangs here. I have to kill the SSH session and SSH back in
This only happens after mounting the CIFS share the very first time after boot.
Thoughts?
-
@olivierlambert bit more info
[20:42 xcpng-host0 ~]# mount -t cifs //10.0.x.x/linux_data on /mnt/linux_data type cifs (rw,relatime,vers=3.0,cache=strict,username=myuser,uid=0,forceuid,gid=0,noforcegid,addr=10.0.x.x,file_mode=0755,dir_mode=0755,soft,nounix,serverino,mapposix,noperm,rsize=1048576,wsize=1048576,echo_interval=60,actimeo=1) [20:42 xcpng-host0 ~]# cd /mnt/linux_data # it just hangs here. I have to kill the SSH session and SSH back in
-
That's your problem: fix your storage (reboot your host to see), and then import will work
-
@olivierlambert Hah, indeed it was! CIFS is totally unstable, but I was able to get NFS working with these configs:
mount -o vers=3,soft,mountproto=tcp [IP]:/share /mnt/nfs_share/backup.xva