ESXI Import via API

Imran Hussain

New Member
Jul 29, 2024
1
0
1
Hello Proxmox team,

Is there any documentation available for what is explained on the VMWare ESXI VM import via wizzard (https://pve.proxmox.com/wiki/Migrate_to_Proxmox_VE#Automatic_Import_of_Full_VM) corresponding to corresponding APIs? We are trying to automate our ESXI users to onboard to Proxmox via automation which can be achieved via APIs instead of going through the wizzard which is interactive. Or is this being planned in PVE 8.3? If so any timelines for the new release (8.3) version?

Thanks in advance
Imran
 
Hi,

everything the GUI does is done via the API, importing included

first the gui checks this api endpoint:

https://pve.proxmox.com/pve-docs/ap...odes/{node}/storage/{storage}/import-metadata

which returns some metadata about the import. It then calculates some values on the frontend (mostly mapping stuff when it's windows etc.)
and then it calls POST on
https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/qemu

which simply creates a VM

the only "special" thing we have here is that we use the 'import-from=<source volume>' syntax for the new volumes that then imports the data from esxi
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!