Cannot Download Exported VM After Export Task Completes Successfully
-
@Danp Of course, thanks for replying.
I go to the VM, and click on the export button at the top-right (screenshot #1). Then I set
Type = xva
andCompression = Zstd
(screenshot #2), then click OK, copy the download link and wait for the task to complete, then I paste the link into a new browser tab and execute.SCREENSHOT #1:
SCREENSHOT #2:
-
As mentioned in the following image, the URL is only valid for a short period of time --
Whenever I click the link or the OK button, the download automatically starts via the browser.
-
@Danp Yes, understood - but
a short period of time
is a rather vague statement, don't you think?I tried doing the download immediately after I copied the link, failed each time. So I decided to wait for the export task to complete then execute the download - it also fails. Do you know where the
xva
file is stored temporarily? Perhaps I can access the file system and move it to another location before it gets deleted.I recall that when I exported this VM from the test lab at work, I experienced a similar issue and I simply paused the download (within the browser) and then resumed it, and that's how I got the transfer to start. Unfortunately, I wasn't tracking the precise timing of that, as it seemed rather random. I also tried that on this system, to no avail.
Also, does the temporary file get stored on XO or on one of the hosts?
-
@kagbasi-wgsdac Can you explain your use case? Does the download work if you click the Download VM link or the OK button?
-
@Danp Just got in the car to drive to work. I'll try doing what you've asked when I get to work (in about an hour).
-
@Danp As requested:
My Use Case:
I am performing a Proof-of-Concept within an air-gapped environment at work. One of tests I'm performing is to validate the VM Export/Import functionality. So I exported this VM from the air-gapped lab environment I've setup at work and brought it home to test if I could import into the pool running at my church (on a physical host). However, it suffered a catastrophic drive failure and I ended up having to rebuild it. With the rebuild done, I was able to import the VM successfully. Now I'm attempting to export it so I can take it back to work and import it, to complete my testing.As requested, neither clicking the
Download VM
link nor theOK
button result in a successful download. I'm using Chrome, and have also tried Edge. I don't have Firefox on my PC, but I could install and test if you think it's necessary. -
@kagbasi-wgsdac AFAIK, it should be browser agnostic. Do you get any errors? Have you checked the browser console for any useful output?
You could try exporting the VM from the XCP-ng host's CLI using
xe vm-export
. -
@Danp Unfortunately, I don't see any errors in the log of the VM or on the Host. Within the browser's console, the only thing that comes up is the following:
Fortunately, when I attempt the operation via the
xe cli
, it results in the following error:Yet the XOCE pool tasks showed that it completed successfully:
-
@kagbasi-wgsdac You can monitor the XO logs by issuing the command
journalctl -u xo-server -f -n 50
and then retrying the export from within XO.You could also check the logs on the XCP host -- https://docs.xcp-ng.org/troubleshooting/log-files/
-
I would also check the disk space.
-
@olivierlambert You were right. Looks like while we were troubleshooting this issue (about two days ago), I ran an
xe vm-export
command, though it failed, enough of the XVA file got created and that was sufficient to fill the partition up.This didn't become obvious until I opened XCP-ng Center today and saw the following alarm:
Disk Usage for Control Domain on server 'WGSDAC-SV-VMH01' has reached 92%. XCP-NG's performance will be critically affected if this disk becomes full. Log files or other non-essential (user created) files should be removed.
So I deleted the culprit file and freed up the storage space, and now the export is downloading. However, it's timing out before all the file is downloaded. It gets all the way up to about 8.6 GB downloaded then the transfer rate drops to 0 B/s.
I suspect this is due to the file being deleted on the host before the transfer completes. Is there a quick way to increase the timeout?
From XOCE Instance:
From XOA Instance:
-
Do you know how long it reaches 8.6 and stops?
-
@olivierlambert I didn't time it. I'm leaving home to drop the kids off at school, then off to work afterwards. I'll run it again and time it and report back.
-
@olivierlambert Just ran the test on both XOCE and XOA, and looks like it takes about 8 minutes to get to 8.6GB downloaded before the transfer rate drops to zero. I also observed the transfer rate drop to zero at 8.3GB for a short while before picking back up and stalling at the 8 minute mark.
I made a video of the test - it's uploading to my YouTube channel now, when it finishes I'll update this post with the link.
-
That's interesting, so it's like something stop sending data or downloading after 8 min
-
@olivierlambert Yep.
Here's the video of the test - https://www.youtube.com/watch?v=tiVdR74PNjw