Resolved: ESXi Import Wizard - Is there a CLI equivalent

May 16, 2025
2
0
1
Hello,

Thread title essentially says it all.

Is there a CLI equivalent to the WebUI 'ESXi Import Wizard'?

From the description, the 'qm import' command sounds like it might do the trick, but I'm not sure what syntax is expected?

https://pve.proxmox.com/pve-docs/qm.1.html
qm import <vmid> <source> --storage <string> [OPTIONS]
Import a foreign virtual guest from a supported import source, such as an ESXi storage.

The WebUI tool works wonderfully, but I really don't want to have to click 'Import' hundreds of times to migrate my inventory of VMs ;)

Any pointers appreciated.

Thanks,
 
Hi!

Yes, there is and the one you found is also the correct one!

Suppose I want to import the virtual machine with the name TestVM from the ESXi storage esxistore to Proxmox VE on the local storage with vmid 404, then the command would need to be:

Code:
qm import 404 esxistore:ha-datacenter/TestDatastore/TestVM/TestVM.vmx --storage local
 
Hi!

Yes, there is and the one you found is also the correct one!

Suppose I want to import the virtual machine with the name TestVM from the ESXi storage esxistore to Proxmox VE on the local storage with vmid 404, then the command would need to be:

Code:
qm import 404 esxistore:ha-datacenter/TestDatastore/TestVM/TestVM.vmx --storage local
Hi Daniel,

Thank you for the information.

I tried what you recommend above but it wasn't working, I was fat fingering the path to the 'vmx' file.

Thanks again!