Latest XCP-ng 8.2: Cannot import XVA, even with latest XOA
-
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