Export to ova from command line
-
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. -
@julien-f said in Export to ova from command line:
compress
is there a way to export xoa via xe cli command?
-
@ainsean got it
xe vm-export vm=uuid filename=path compress=true -
O olivierlambert marked this topic as a question
-
O olivierlambert has marked this topic as solved