Two clusters, two backup stories, neither good
I run two hypervisors because I never really figured I needed to choose. There are vCenters with ESXi hosts and multiple individual ESXi hosts, because it is what I spent years on and because the deployer that started this whole lab was written against it. There is a Proxmox cluster, because it is fun to use as well. Both hold VMs I would mind losing.
Proxmox has an answer: Proxmox Backup Server is genuinely good, dirty-bitmap incrementals and all. It also, by design, has no idea what an ESXi host is. The VMware side is where it got uncomfortable. Every serious backup tool for vSphere reads disks through the Virtual Disk Development Kit, which is Broadcom’s, lives behind a developer portal login, and cannot be redistributed. The tools that use it are licensed per socket or per VM, and most of them would rather you did not also have a Proxmox cluster which puts it at odds with most of the homelab culture today.
So the question I actually had was narrower than “how do I back up VMware”. It was: can one server back up running VMs from both platforms into the same store, with nothing installed inside the guests and nothing downloaded from Broadcom or Proxmox, and then put any of those VMs back on whichever cluster still exists?
The last clause is the one that turned out to matter. If a backup carries a description of the machine that is written in neither hypervisor’s dialect, then restoring it to the other hypervisor is a restore with an extra step rather than a migration project. That idea shaped everything, and it is why the project is a backup server that happens to convert rather than a converter that happens to keep copies.
Everything is a client of one REST API, and no hypervisor credential ever leaves the server. The web UI, the CLI, the vSphere Client plug-in and the Proxmox plug-in all call the same endpoints. The proxy VM that reads disks on vSphere holds no vCenter login; the Perl plug-in on a Proxmox node holds no PVE login. The server does every hypervisor call itself and hands the component next to the disk a work order: this device just appeared, read these ranges, push them here with this token.
The spike that killed the first design before lunch
My first transport was the obvious one. ESXi serves every datastore over HTTPS, and it honours range requests. Snapshot the VM, ask Changed Block Tracking which ranges moved since last time, fetch those ranges with HTTP, done, no proxy, no agent anywhere.
It worked beautifully on a powered-off VM. On a running VM it returned HTTP 500, every time, because VMFS holds a lock on the base disk while the VM runs, and a snapshot does not release it. The host will not let an outside reader open the file. I had designed the whole project around a transport that only works on machines nobody is using.
The thing that does work on a running VM is what VDDK’s HotAdd mode does underneath: attach the snapshot’s base disk to a second VM on the same cluster, and read it from inside that VM as a local block device. VDDK is a convenient wrapper around that, but the operation itself is an ordinary reconfigure call in the open vSphere API. Add the disk in independent non-persistent mode so nothing can write back to it, let the kernel in the helper VM see a new SCSI device, read the CBT ranges with plain pread, detach it afterward. No portal, no kit.
| Transport | Running VM | Incremental | Measured | Verdict |
|---|---|---|---|---|
| Datastore HTTPS range reads | no, HTTP 500 | yes | works on powered-off VMs | powered-off VMs and templates only |
| ExportSnapshot NFC lease | yes | no, full export every time | 25 MiB/s | last resort |
| Hot-add into a proxy VM, open API | yes | yes, CBT ranges by pread | 512 MiB/s | primary transport |
| VDDK | yes | yes | not tested | not needed |
On a 40 GB test VM with 7.5 GiB allocated and running, the full took 23 seconds wall including the quiesced snapshot and the cleanup, and the incrementals took 8 seconds moving between 3 and 133 MiB. A marker file written inside the running VM between the full and the incremental was present in the backup image, which mounted and passed fsck. That was the afternoon the design stopped being a guess.
The HTTPS path did not go to waste. It is still how powered-off VMs and templates are read, which means a standalone ESXi host with nothing on it but the VMs you want to protect needs no proxy at all for the ones that are switched off.
The shape that survived
Strip the vendors away and a backup run on either platform is the same four verbs: freeze the VM, ask what changed, read those blocks, release the freeze. A restore is three more: describe the machine, create it, write the blocks. A provider answers those calls and nothing else. The storage layer never learns which platform a disk came from.
hot-add to the proxy
BLAKE3 · zstd · upload
manifest + index per point
same hash, same upload
drives vzdump with fleecing
The store is modelled on Proxmox Backup Server, because PBS already proved the shape for VM images and I saw no reason to be original about it. Fixed 4 MiB chunks aligned to the disk, identity by BLAKE3 hash, zstd per chunk, zero chunks elided, the chunk written once no matter how many VMs or restore points contain it. A restore point is a manifest: the neutral VM spec plus, for each disk, an index mapping chunk number to hash. Every point is complete. Restoring never needs the chain of earlier ones, and retention is a policy on manifests, never on chunks; garbage collection is a mark-and-sweep that leaves anything younger than an hour alone.
The neutral spec is the quiet centre of the project. Name, CPUs, memory, firmware and secure-boot flag, whether a TPM was present, each disk with its size and controller and boot flag, each NIC with its MAC and model and network name, the SMBIOS UUID, a guest OS hint, and the original platform’s own identifiers. Mapping tables translate controller and NIC models between platforms. A vSphere VM and a Proxmox VM become the same kind of record, and that is what makes the rest possible.
Through the proxy, hashing and compression included, the server ingests at over 360 MiB/s. The proxy is a 2 vCPU, 2 GB Ubuntu cloud image that the server deploys itself from the UI: it fetches the image once, imports it with cloud-init first-boot data that installs the agent from the server, waits for the agent to call back, and then blanks the secret-bearing properties out of the VM. On the lab that is 64 seconds from clicking Deploy to the proxy reporting online.
Deploying a proxy from the UI. The proxy’s token travels in the OVF environment, is read by cloud-init on first boot, and is blanked from the VM’s properties the moment the agent checks in. The proxy never learns a vCenter password because it never needs one.
Proxmox, through Proxmox’s own front door
The Proxmox side could have been the server reading disks over the PVE API. It is not, for a reason I think is worth stating: Proxmox 9 has an external backup-provider interface, and once the server registers itself on the cluster as a storage of type hvbackup, every backup is an ordinary Proxmox backup job. The node freezes the guest through its agent, exposes each disk as a snapshot access with a dirty bitmap, and hands it to the plug-in. The plug-in reads only the dirty regions, hashes 4 MiB chunks, asks the server which ones it lacks, and uploads those.
That buys three things for free. Jobs scheduled in the Proxmox UI against the hvbackup storage land in the same catalog as jobs scheduled on the server. Restores run from the Proxmox UI through the same plug-in, which serves each disk from the repository over NBD and lets qemu-img write it wherever you point it. And archives deleted from the Proxmox side are deleted here, so there is one truth about what exists.
The Proxmox UI’s own Backups view, pointed at the hvbackup storage. These archives are rows in the server’s catalog; Proxmox lists, restores and prunes them through the plug-in and never knows there is a chunk store underneath.
Measured on the two-node cluster: a running VM’s 20 GiB full in 17 seconds, the next incremental 148 MiB in one second, a container’s 610 MiB in five seconds, restores from the Proxmox API in 16 and 8 seconds with checksums matching the originals. The Perl plug-in stays thin by rule: read, hash, send. All logic lives on the server, where it can be tested without a Proxmox node in the loop.
The restore that does not need the vCenter it came from
A restore creates a new VM; it never overwrites the original. The default gives the copy fresh MAC addresses and a fresh BIOS UUID, because the spike taught me the hard way that a restored copy carries the original’s DHCP client identity and SSH host keys and will cheerfully take over its lease if both run at once. The dialog says so in words.
The interesting part is the target picker. A restore point can land on any connection the server knows: the cluster it came from, another vCenter, a standalone ESXi host added as its own connection, or a Proxmox cluster. The source hypervisor is never contacted. A restore reads only the repository, so a vCenter that no longer exists is not an obstacle, which is the entire point of having backups.
The restore dialog. What the restore point names (host, datastore, networks) is remapped onto whatever the target has; one sensible candidate is taken and logged, several candidates are refused until you choose, because a copy must not silently land on the wrong VLAN.
Host, datastore and network are remapped with a rule I would hand to anyone building this: take the source’s name if the target has it, take the only usable candidate if there is one and write that choice to the task log, and refuse with the list if there are several. Explicit choices always win and are refused with the candidates when they do not exist. I do not want a disaster-recovery restore at three in the morning to make a plausible guess about which network a database server belongs on.
A conversion is a restore with a fix-up in the middle
Here is where the neutral spec pays for itself. Pick a Proxmox cluster as the target of a vCenter restore point, or a vCenter as the target of a Proxmox one, and the server converts the point first:
neutral spec
writable layer on top
or virt-customize
interface names pinned
config in the target's dialect
Every disk is exported over NBD straight from the repository with a qcow2 overlay on top, so the tools get something writable and the backup stays untouched. Towards Proxmox, virt-v2v-in-place makes the guest boot on KVM: virtio drivers into the initramfs, VMware pieces out. Towards VMware, virt-customize adds the paravirtual SCSI and vmxnet3 drivers and regenerates the initramfs. In both directions the guest’s network configuration is read, a systemd .link file pins every interface name the configuration uses to the NIC’s MAC address, so ens192 stays ens192 on Proxmox, and configurations that match by MAC are rewritten to the new addresses. Then qemu-img map on the overlay tells the server which blocks changed, and only those become chunks.
The numbers are small because the work is small. A 10 GiB Ubuntu VM from ESXi to Proxmox: 50 seconds of fix-ups, a 10 second read-back, 63 MiB new in the repository, booted with its interface name kept, a DHCP address, and the guest agent installed on first boot. A 20 GiB Ubuntu VM from Proxmox to vCenter: 12 seconds plus one, 34 MiB new, booted on a paravirtual controller with VMware Tools running.
Windows landed today, and it is the piece I was least sure would. Towards Proxmox, virt-v2v puts the virtio storage and network drivers into the registry and driver store from the virtio-win image and registers the guest agent to install on first boot. Towards VMware the copy is given devices Windows has inbox drivers for, LSI Logic SAS and E1000E, and the SYSTEM hive is pulled through guestfish, the boot-start services set and their overrides removed with a hivexregedit merge, and pushed back. Windows 11 gets a TPM state disk and the Microsoft secure-boot keys enrolled when the source booted that way. Anything older than Windows 7 or Server 2008 R2 is refused up front rather than converted badly. The unit tests pass; the lab run is tomorrow’s job, and I am saying so rather than implying otherwise.
A standalone converter has to read the whole source disk, transform it, and write the whole target disk. This one already has the blocks, already has them deduplicated, and already has a description of the machine that belongs to neither platform. What is left is the delta the fix-up tools write and a config file in the target’s dialect. The hard part was done by the backup, which is the thing you were going to run anyway.
Standby copies, and the failover that is one button
Once a restore onto any target was a solved problem, replication fell out of it. A replication names some VMs and a target connection, and keeps a powered-off copy of each on the target, refreshed after every backup of the source VM, on a schedule, or both. The first sync is a restore. Later syncs on a VMware target write only the chunks that differ between the point the replica holds and the newest one, straight into the replica’s disks through a proxy on the target, zero chunks included so freed blocks are cleared. On a Proxmox target the guest is restored again over the same ID with its MAC addresses re-applied. Cross-platform replicas convert first, with the identity of the first conversion pinned so the pinned interface names and the replica’s NICs stay in step.
Failover is power it on. Test boot is power it on with every NIC disconnected, and ending the test marks the copy dirty so the next sync rebuilds it. The source is never contacted; a sync reads only the repository. On the lab a 2.6 GiB VM replicated from vCenter to a standalone ESXi host through that host’s proxy in 10 seconds, a fresh backup of the source triggered the next sync on its own, and an ESXi VM replicated onto the Proxmox cluster with conversion.
Inside the hypervisor’s own console
I did not want a fourth tab. vCenter supports remote plug-ins: the server registers an extension with a manifest URL and its certificate thumbprint, vCenter fetches the manifest, and the vSphere Client grows a summary card on every VM, a Backups tab under Monitor, and right-click actions for Back up now and Restore. Every backup and restore also appears in vCenter’s Recent Tasks and posts an event you can hang an alarm on.
Inside the vSphere Client. The pages are served by the backup server through vCenter’s reverse proxy, so the browser needs no route to it; vCenter does. The user never types a password here: the client hands the page a session token, the server exchanges it for a clone ticket, reads the user name, and signs that user in if the account already exists.
That last mechanism follows the rule I set for the SSO work last month: a plug-in sign-in grants access to accounts that already exist and never creates them. Roles are not taken from vCenter. The Proxmox side gets the equivalent for free, because the hvbackup storage is simply there in the Proxmox UI, and the Nexus Dashboard gets a plug-in in both of its tiers, declarative and Python, so the fleet view can show protection state and overdue VMs next to everything else.
What only broke once it ran every night
The server has been taking a nightly job since the 20th, and the list of what the nights found is longer than the list of what the design review found.
The two o’clock refusal. Proxmox’s storage plug-in has a fifteen-second timeout on its online check, and the server’s status endpoint walked every chunk file in the repository to report free space. Under the nightly load that walk crossed fifteen seconds, the node declared the storage offline, and vzdump refused to back up the container job. Repository statistics are now cached and refreshed in the background; the status answer is instant and free space stays live.
Every schedule ran in UTC. The cron library reads a bare timestamp as UTC, so a job set for 02:00 ran at 02:00 UTC whatever the host’s zone, and nothing in the job editor said so. The scheduler now passes a zone-aware time, the time zone is a setting, and the dialogs name the zone next to the schedule. The schedule field itself is a picker now, with a preview line that says in words when the next three runs are, because I have never once been confident reading a cron expression at the moment it mattered.
The restore that crawled. Task progress was written to the catalog once per 8 KiB uploaded, which held HTTPS restores to about 2 MiB/s. Throttled to two writes a second it went to 7 MiB/s, and that ceiling is the ESXi PUT path, which insists on receiving every zero block of the disk’s capacity. Restores through a proxy are fast; proxy-less restores of large thin disks are slow by design, and the docs say which is which.
The clone that stole an address. I cloned a proxy VM to put one on the standalone host, and the clone presented the original’s DHCP identifier and took its lease. A cloned proxy needs a new machine ID, fresh SSH host keys and a MAC-based DHCP identifier before it first touches the network. That is in the README now, under a heading I wish I had not needed.
The core requirement nobody wrote down. Backing up through a direct ESXi connection, no vCenter involved, was in the first paragraph of the plan and in none of its tasks, so it was never proven until I noticed. It works: a powered-off full over HTTPS with no proxy, the host answering the CBT query itself, then a proxy on that host doing quiesced hot-add incrementals of the running VM and a restore back. But it was a week before anyone checked.
Then the smaller ones, each an afternoon: vCenter 8.0.3 wants three-part manifest version strings where the SDK guide shows four. vzdump runs the plug-in under Perl’s taint mode, so every argument and environment variable has to be untainted. zstd compression contexts are not thread-safe. The Proxmox restore code stats the source path, so an NBD URL alone is not enough and the disk has to appear as a file through nbdfuse. Fleecing is mandatory for the provider interface and needs an explicit storage. virt-v2v trims the filesystem, so the overlay’s zero extents have to become zero chunks without ever being read. And on Ubuntu 26.04 sudo drops the environment, which cost me twenty minutes on the first evening wondering why credentials I had just exported were not there.
None of those were in the architecture. All of them were in the seams between the architecture and software written by other people with other assumptions: a timeout in a Perl module, a timestamp convention in a cron library, a lock in VMFS, a taint flag in vzdump. The design was right on the 20th. The product was not usable until the nights had been through it.
How it compares
| Proxmox Backup Server | Commercial vSphere tools | hvbackup | |
|---|---|---|---|
| vSphere running VMs, incremental | no | yes, via VDDK | yes, hot-add through the open API |
| Proxmox running VMs, incremental | yes | some, recently | yes, as a PVE 9 backup provider |
| One deduplicated store across both | Proxmox only | per product | yes |
| Restore onto the other platform | no | migration products, separately licensed | yes, Linux proven, Windows landed today |
| Standby replicas with failover | no | yes | yes, including cross-platform |
| Inside the hypervisor’s own UI | native | plug-ins | vSphere Client plug-in; a Proxmox storage |
| Agents in guests | none | optional, for file-level | none |
| Vendor downloads needed | none | VDDK, portal account | none |
| Years in production | many | many | ten days of nights |
This is ten days old. The exit criterion I set for the core, two weeks of nightly runs with verified restores, has not been met, and the verification job’s test-boot path has been exercised against a damaged repository in unit tests but not with a real boot on the lab. Windows conversion passed its tests this afternoon and has not yet converted a real Windows guest end to end. It needs a paid or evaluation vSphere licence, because the free ESXi licence makes the API read-only and snapshots fail. It is not a replacement for Proxmox Backup Server in a pure-Proxmox shop and does not try to be. The dashboard screenshot shows nine failed runs in twenty-four hours, and I left it that way because that is what the day the Proxmox provider was being debugged looked like.
What it cost
Ten days, dated. The spike, the core service, the vSphere plug-in, the dashboard plug-in and the Proxmox provider all landed on the 20th. Conversion on the 21st, along with making the repository public. Replication and multiple vCenters on the 26th. The container image with the conversion tool chain on the 28th. Settings, the certificate manager, verification, notifications and Windows conversion today, the 30th. I am not going to claim the pace was planned.
A plan I kept editing in front of myself. The plan file is 53 KB and most of it is status, written the same day as the work, with the measurements and the things that broke. Four features were dropped from it on the 30th with a sentence each: encryption at rest, because the repository sits on storage I control and the filesystem can encrypt it without the server holding a key; file-level restore, because restores are whole VMs; instant recovery, because a restore through a proxy is fast enough and the vSphere half would have needed an NFS server in front of the chunk store; and a VDDK accelerator, because it is not redistributable and the open-API path is fast enough. Writing down why something is not built is cheaper than building it.
A publication gate. The repository is public, and the lab it was built on is not. A script runs over the whole history and tree before every push, refusing forbidden terms, unknown identities and co-author trailers, with its lists kept outside the repository. The same check runs in the public repository’s CI, so a slip that got past the hook would still be caught before anyone saw it.
Sixty-two unit tests and a lab. The tests cover the store, the conversion planning, the settings, the certificate handling, replication and notifications. They do not cover the thing that matters most, which is whether a backup taken tonight restores next month, and no unit test ever will. That is what the nightly job and the weekly test restore are for.
What this isn’t
It does not back up physical machines, Hyper-V or anything in a cloud. It does not restore individual files out of an image; if you need a file, restore the VM somewhere isolated and go and get it. It does not encrypt the repository, by decision, and it does not pretend to be a replacement for the backup product your hypervisor vendor already ships for its own platform.
It is also not finished in the sense that word deserves. It is installed, it runs every night, it has restored VMs onto both platforms and converted them between the two, and it has a list of what remains that I trust more than the list of what works, because the second list was written by me and the first was written by the logs.
Closing thought
The decision that made everything else cheap was made before any backup had been taken: the description of a machine would be written in nobody’s dialect.
After that, restoring to another vCenter was the same code as restoring to this one. Restoring to Proxmox was that code plus a fix-up. Replication was a restore on a schedule. Windows was the same fix-up with a registry hive in it. Each of those sounds like a product on its own, and each one arrived in a day or two, because the store did not care where a disk came from and the spec did not care where it was going.
The spike that returned HTTP 500 on the first afternoon was the best thing that happened to the project. It forced me to find the primitive the platform actually offers for reading a running disk, and that primitive turned out to be sitting in the open API the whole time, under the kit everyone assumes they need. Most of what I thought was proprietary was packaging.