Cannot export VM in .ova file
-
Hi Dan2462, I would like you to go for the following steps. In the star just choose the virtual machine and pick the option that says File > Export to OVF. Now add a name for the OVF file and mention a directory in which you need to save it. Here mention if you want to export the virtual machine as an OVF, a folder with individual files, or as an OVA, a single-file archive. At the end press Export to start the procedure of OVF export. This step will take some time and a status bar lets you know about the progress of the export process. Apart from that, https://appuals.com/export-import-vm-oracle/ this website would be really helpful for you in getting to know much more about it. I hope that by following these steps you would be able to resolve this issue.
-
Sorry for grave digging here, but since this answer ranks pretty high in the Google results, I thought I might add a possible solution:
During the export wizard in XCP-ng Center, you're being asked for the network configuration of the Transfer VM. As for my observations, two things are pretty vital here:
- The network you choose to place the Transfer VM's virtual interface in must be reachable from your computer/XCP-ng center.
- Enter a static IP configuration, DHCP has never worked for me, even though a DHCP server is running in the selected network.
Hope this helps some!
-
Dear,
with a brand-new 8.2 xcp-ng server installation I was able to export ova from XCP-NG Center.
After upgrading it with latest patches (yum update) I'm not able to to export back ova.
I've done this test both on my production server and also installing it in a new system from scratch.I've tried using both DHCP and static IP. no luck.
Thanks in advance for any feedback.
The log reports is the following:
2022-02-27 20:40:18,971 INFO Audit [Main program thread] - Operation started: ExportApplianceAction: xcpserver: VM bdc057c5-d2c4-a3ff-e307-fe510de32146 (VM1): Pool 0bc5c93d-6cfc-811a-cf85-0b72732ca6e5 (xcpserver): Host 7314e7fb-cd5f-481b-a464-86b3acc3ae5c (xcpserver): 2022-02-27 20:40:24,867 ERROR XenOvfTransport.iSCSI [30] - Failed to start Transfer VM. There was a failure communicating with the plug-in. 2022-02-27 20:40:24,868 ERROR XenOvfTransport.Export [30] - Failed to transfer virtual disk C:\Backup\VM1\6ad97f18-51e4-45ed-b088-bfa2affc1b87.vhd System.Exception: Failed to start the Transfer VM. ---> XenAPI.Failure: There was a failure communicating with the plug-in. at XenAPI.JsonRpcClient.Rpc[T](String callName, JToken parameters, JsonSerializer serializer) at XenAPI.Host.call_plugin(Session session, String _host, String _plugin, String _fn, Dictionary`2 _args) at XenOvfTransport.iSCSI.StartiScsiTarget(Session xenSession, String vdiuuid, Boolean read_only) --- End of inner exception stack trace --- at XenOvfTransport.iSCSI.StartiScsiTarget(Session xenSession, String vdiuuid, Boolean read_only) at XenOvfTransport.iSCSI.Connect(Session xenSession, String vdiuuid, Boolean read_only) at XenOvfTransport.Export._copydisks(EnvelopeType ovfEnv, String label, String targetPath) 2022-02-27 20:40:24,877 ERROR XenOvfTransport.Export [30] - Export failed System.Exception: Failed to transfer virtual disk C:\Backup\VM1\6ad97f18-51e4-45ed-b088-bfa2affc1b87.vhd. ---> System.Exception: Failed to start the Transfer VM. ---> XenAPI.Failure: There was a failure communicating with the plug-in. at XenAPI.JsonRpcClient.Rpc[T](String callName, JToken parameters, JsonSerializer serializer) at XenAPI.Host.call_plugin(Session session, String _host, String _plugin, String _fn, Dictionary`2 _args) at XenOvfTransport.iSCSI.StartiScsiTarget(Session xenSession, String vdiuuid, Boolean read_only) --- End of inner exception stack trace --- at XenOvfTransport.iSCSI.StartiScsiTarget(Session xenSession, String vdiuuid, Boolean read_only) at XenOvfTransport.iSCSI.Connect(Session xenSession, String vdiuuid, Boolean read_only) at XenOvfTransport.Export._copydisks(EnvelopeType ovfEnv, String label, String targetPath) --- End of inner exception stack trace --- at XenOvfTransport.Export._copydisks(EnvelopeType ovfEnv, String label, String targetPath) at XenOvfTransport.Export._export(Session xenSession, String targetPath, String ovfname, String vmUuid) 2022-02-27 20:40:24,877 ERROR XenAdmin.Actions.AsyncAction [30] - System.Exception: Failed to export. ---> System.Exception: Failed to transfer virtual disk C:\Backup\VM1\6ad97f18-51e4-45ed-b088-bfa2affc1b87.vhd. ---> System.Exception: Failed to start the Transfer VM. ---> XenAPI.Failure: There was a failure communicating with the plug-in. at XenAPI.JsonRpcClient.Rpc[T](String callName, JToken parameters, JsonSerializer serializer) at XenAPI.Host.call_plugin(Session session, String _host, String _plugin, String _fn, Dictionary`2 _args) at XenOvfTransport.iSCSI.StartiScsiTarget(Session xenSession, String vdiuuid, Boolean read_only) --- End of inner exception stack trace --- at XenOvfTransport.iSCSI.StartiScsiTarget(Session xenSession, String vdiuuid, Boolean read_only) at XenOvfTransport.iSCSI.Connect(Session xenSession, String vdiuuid, Boolean read_only) at XenOvfTransport.Export._copydisks(EnvelopeType ovfEnv, String label, String targetPath) --- End of inner exception stack trace --- at XenOvfTransport.Export._copydisks(EnvelopeType ovfEnv, String label, String targetPath) at XenOvfTransport.Export._export(Session xenSession, String targetPath, String ovfname, String vmUuid) --- End of inner exception stack trace --- at XenOvfTransport.Export._export(Session xenSession, String targetPath, String ovfname, String vmUuid) at XenOvfTransport.Export.Process(String targetPath, String ovfname, String[] vmUuid) at XenAdmin.Actions.OVFActions.ExportApplianceAction.Run() at XenAdmin.Actions.AsyncAction.RunWorkerThread(Object o) 2022-02-27 20:40:24,878 WARN Audit [30] - Operation failure: ExportApplianceAction: xcpserver: VM bdc057c5-d2c4-a3ff-e307-fe510de32146 (VM1): Pool 0bc5c93d-6cfc-811a-cf85-0b72732ca6e5 (xcpserver): Host 7314e7fb-cd5f-481b-a464-86b3acc3ae5c (xcpserver): Disconnecting virtual disk 6ad97f18-51e4-45ed-b088-bfa2affc1b87.vhd ...
-
I wouldn't rely on XCP-ng Center for that. Xen Orchestra will have OVA export in the April release. VMDK export is already there
-
@olivierlambert thanks, OVA export in april will be a very great feature that complitely allow me to forget xcp-ng center
-
Indeed, we are close to finish it, maybe even March release Hang on!
-
@olivierlambert
and how to export the xo appliance with xo? -
Like any other VM?
-
@olivierlambert
playing arround since hours to migrate my xcp-ng (running on my HP Gen8 Microserver) to a bigger SSD.
cloning the disk with clonezille wasnt successfull so i decide to start from scratch.- Exporting xo with xcp-ng center -> pain in the ass
- ex and importing vhd manually -> same pain in the ..
i am working since years with vmware and proxmox but this one was challenge ... such a "simple" think
now i have created a new vhd ... and copy the old xo vhd over it ... rescan .. worksi couldnt find a working tuto for doing this the right way ..
br,
rowie -
Maybe your question was not clear, you asked to export XO with XO, you didn't talk about XCP-ng at all It was a typo then, you meant XCP-ng?
-
@olivierlambert
yes, xcp-ng! sorry for confusingxcp-ng Center isnt working great in such things right?
-
XCP-ng Center isn't an officially supported client for XCP-ng in the first place, as per https://docs.xcp-ng.org/management/
-
ah, ok. that explains a lot!
What is the best way to migrate xcp-ng to a larger hard drive?? -
Depends a lot on what you have available. IMHO, I consider the system as disposable, since you can export the metadata, reinstall and import the metadata again. Or backup your VM, reinstall, restore. Or migrate out to another host, reinstall, re-migrate the VMs.
So many possibilities, that all depends on your setup.