Export to ova from command line
-
I know I can export VM's from the XO GUI to OVA format.
(and it works fine)Is there any way to export VM's to OVA format using the command line ??
(either on XCP or XO)I can find plenty of examples of exporting to the XVA format, but I can't seem to find much on exporting to the OVA format.
-
Ping @julien-f
-
Looks like you can do this with XO CLI --
xo-cli vm.export vm=a01667e0-8e29-49fc-a550-17be4226783c @=vm.xva
From https://github.com/vatesfr/xen-orchestra/blob/master/packages/xo-cli/README.md
-
That looks like xva format ...not ova ??? unless I am reading something wrong ??
VM export
xo-cli vm.export vm=a01667e0-8e29-49fc-a550-17be4226783c @=vm.xva
Or can I simply change the file extension ?? ( ie; @=vm.ova ) ??
-
@Dude417 said in Export to ova from command line:
That looks like xva format ...not ova ??? unless I am reading something wrong ??
Ah... I overlooked that. Not sure if OVA is supported here without looking into it further.
-
@Dude417 Hello, you need to use the
format
param for that:xo-cli vm.export vm=a01667e0-8e29-49fc-a550-17be4226783c format=ova @=vm.ova
I've also just added OVA support for VM export in the REST API: https://github.com/vatesfr/xen-orchestra/blob/master/packages/xo-server/docs/rest-api.md#vm-export
-
Awesome ! Thank you !
I'll try to test that today. -
Can this also be done without compression?
-
@rfx77 Compression is only supported for XVA format and is disabled unless
compress
is passed.