Importing an .XVA VM
-
Does xcp-ng have a cli function for:
xe vm-import
I have tried this without success. The xe help indicates the function exists:
[23:44 svr10482 zfs]# xe help vm-import command name : vm-import reqd params : optional params : filename, preserve, sr-uuid, force, host-username, host-password, type, remote-config, url, vdi: description : Import a VM. If type=ESXServer is given, it will import from a VMWare server and 'host-username', 'host-password' and 'remote-config' are required. Otherwise, it will import from a file, and 'filename' is required. If the option preserve=true is given then as many settings as possible are restored, including VIF MAC addresses. The default is to regenerate VIF MAC addresses. The VDIs will be imported into the Pool's default SR unless an override is provided. If the force option is given then any disk data checksum failures will be ignored. If the parameter 'url' is specified, xapi will attempt to import from that URL.
[23:40 svr10482 zfs]# ls -l *.xva -rw-r--r-- 1 root root 136909479936 Oct 15 20:58 NSMRD101.xva [23:40 svr10482 zfs]# xe vm-import NSMRD101.xva The server failed to handle your request, due to an internal error. The given message may give details useful for debugging the problem. message: INTERNAL_ERROR: [ Not_found ]
-
@McHenry hi
you need to call
xe vm-import filename=/path/to/file.xva
-
This post is deleted! -
@McHenry The import should have given you an uuid once finished which si the uuid of the VM.
It should also appears when doing an
xe vm-list
-
Got it, thank you.