EnvMap GitHub

Moving VMs from VMware ESXi to Proxmox, including the ones you cannot switch off

Most guides to leaving VMware start with the same step, shut the VM down. For a lot of systems that is fine. For the ones where it is not, this post explains what a move has to carry and how EnvMap carries it. It is also honest that, so far, that has been proven in a lab and not yet on a real host.

Since Broadcom changed how VMware is licensed, a lot of teams are moving their virtual machines to Proxmox VE. The tools for that have got good. This post looks at the ways available today, what each one asks of you, and the case none of them covers: a system that has to keep running while it moves.

The ways to move a VM today#

Proxmox's own import wizard#

Current Proxmox VE releases ship an ESXi importer. You add the ESXi host as a storage (Datacenter → Storage → Add → ESXi), and its VMs appear there, ready to import with their disks and settings converted. Proxmox's announcement on its forum has the details.

For most powered-off VMs this is the right tool, and it is the first thing to try. Three things to know about it, from its users and its documentation:

Export and convert by hand#

Export the VM as OVF or copy its VMDK files, convert them with qemu-img, and attach them to a new VM with qm disk import. It works anywhere and needs no special access, and every step is yours: the network cards, the disk controller, the boot order and the drivers.

What they have in common#

Both shut the system down. Its processes end, its connections close, and it starts again on Proxmox. With a maintenance window that is a sound plan. Some systems have none: a database primary that nothing has a replica of, a licence server bound to a session, a box nobody dares restart because nobody remembers what it does at boot.

What a running VM is made of#

A running VM is three things, and each one moves differently.

  1. Its disks. These can be copied while the system runs, as long as something keeps track of what changes during the copy.
  2. Its memory. The processes, their open files, the network connections, the kernel's own state. A hypervisor can see which pages change. The system inside it mostly cannot, so a copy made from inside needs a short freeze to get one consistent picture.
  3. The virtual hardware it is driving. This is the hard part. ESXi gives a guest VMware's network card and disk controller and its own firmware. Proxmox gives virtio devices on a different chipset. A kernel that wakes up on hardware it has never seen is still talking to the old devices.

VMware's vMotion and Proxmox's live migration both solve the third problem by not having it: they move a VM between hosts that present the same virtual hardware. Between ESXi and Proxmox that is not possible, so the guest has to be told about its new hardware as it wakes up.

How EnvMap moves a running VM#

In EnvMap you choose a host on each side, select a VM and click the arrow. Behind that:

The order matters for safety. Until the receiver says the system has arrived, the old VM is only frozen, and if anything breaks it carries on where it stopped. A move that fails before the last step never stopped the system at all.

The details of every one of those steps, and what the check asks for before it creates anything, are in the docs for a move.

One example of why the corrections matter#

A disk controller kept through a move is, on the new VM, a fresh device that knows nothing of the queues its driver thinks it has. The driver only notices when a command times out, and then it escalates to a reset. In the lab that took 118 and 110 seconds on AlmaLinux 10: two minutes in which every disk read waits. With the reset issued as the first act on arrival, it took 0.15 to 0.18 seconds across seven moves.

That is the shape of most of this work. Nothing crashes, and the system answers pings. Then a fault surfaces two minutes later, and only on one kernel.

What the lab showed#

The engine was run in a lab that gives each VM the hardware ESXi and Proxmox give their guests. After every move these were checked: the same hostname, a background process with the same process ID still counting, unbroken uptime, the network answering on the same address, a file's checksum, and a writer's log with no line missing.

SystemESXi shape to Proxmox shapeProxmox shape to ESXi shape
Ubuntu 24.04PassPass
Debian 13PassPass
AlmaLinux 10PassPass
CentOS 7PassPass, 7 of 8 runs

A TCP connection held open by a third VM carried on through the move with the same port numbers. So did a move there and back again, and an undo after the whole system had crossed.

What it does not do yet#

This is a preview, and the limits are real:

If it refuses your VM, it says why in words, before it creates anything.

Powered-off VMs, and the free ESXi licence#

A powered-off VM is moved too, without ever being started. Two small helper VMs copy its disks from host to host, and every byte is read back before the move counts as done. For a powered-off VM going to Proxmox, Proxmox's own importer does a similar job. EnvMap's version also works from Proxmox back to ESXi, and from one screen with the rest of the estate.

On the free ESXi licence, VMware's API only reads. EnvMap then works through the host's own shell over SSH, by itself, and still reads through the API.

Try it#

Try it on two lab hosts first, with a VM you can afford to restart:

bash
curl -fsSLO \
  https://raw.githubusercontent.com/ammar-hassoun/envmap/main/deploy/compose/compose.yaml
docker compose up -d

Then add an ESXi host and a Proxmox node under Hypervisors, allow management on both, and open ⇄ VM migration. The overview is on the VMware to Proxmox page, and the whole procedure in Move a VM.

If you run it on a real host, the result is the most useful thing anyone can send us right now, whatever it is. What to do when a move is refused is in Troubleshooting. Tell us in Discussions.

EnvMap home · Docs · GitHub