Offline virtualization migration
VMware to Hyper-V Migration with Zero Data Loss and Zero Network Requirements
A global enterprise needed off VMware vSphere — and its recurring per-CPU licensing — but couldn't re-platform the workloads on its plant servers, and couldn't use the network to move them: no vMotion, no vSphere, no network P2V. So we built a single-purpose .NET tool that becomes its own migration environment.
It images a bootable WinPE disk, boots each server into a local, fully offline environment, and runs a staged, resumable conversion in place — cleanly stripping VMware, rebuilding each VMDK disk as a checksum-verified Generation 2 VHDX, provisioning a Hyper-V host through native interop, and first-booting the converted guest. The result: a reproducible, operator-runnable conversion that retired the vSphere estate and its per-CPU licensing — with verified zero data loss, and nothing new to license in its place.
And because we built the tool rather than licensed one, there are no per-seat, per-host, or per-migration fees — it's wizard-guided, so a site technician can run a conversion in under 90 minutes (several at once where a site has multiple servers), even at remote plants with little on-site engineering.
The constraint that ruled out every off-the-shelf path
The enterprise wanted off VMware vSphere — the recurring per-CPU licensing was a major cost, and the model had only gotten harder. But the migration was anything but routine:
- The workloads had to stay exactly as they werere-platforming hundreds of production plant servers wasn't an option
- The cutover couldn't use the networkconstrained bandwidth, narrow change windows, and locked-down plant sites ruled out vMotion, vSphere conversion, and network P2V
- The data-protection bar forbade any path without an offline, verifiable checkpoint
- Off-the-shelf converters fell shortnone could strip VMware out of the guest *and* rebuild a bootable Hyper-V host on bare metal
So rather than stitch together brittle scripts, our team built the migration environment itself.
In-place conversion · offline
One server, VMware to Hyper-V — with no network
Each server boots from custom WinPE media into a local, network-free environment, then runs a staged, resumable conversion: strip VMware, rebuild each disk VMDK→VHDX with a verified read-back, build the Hyper-V host, and first-boot the converted guest.
What the tool does.
Its own bootable environment
The tool images a hybrid UEFI bootable disk with an embedded WinPE kernel and the migrator itself, then boots each server into a local, fully offline migration OS — no network, no vMotion, no vSphere.
Staged, resumable pipeline
Migration runs as an ordered pipeline — prepare guest, convert disks, build host, first boot. Each stage persists its state, so a conversion that crosses several reboots resumes where it left off.
Cleanly strips VMware
It captures the guest's identity (NICs, DNS, time zone) to reapply later, then removes VMware Tools, drivers, virtual NICs, and registry artifacts — leaving a clean guest for Hyper-V.
Verified VMDK→VHDX conversion
Each disk is captured to a WIM intermediate and applied into a Generation 2 VHDX, then read back and checksum-verified — so the conversion is provably lossless, not assumed.
Builds the Hyper-V host and guest
It installs Windows Server Core with the Hyper-V role, writes the UEFI boot loader, and provisions the Gen 2 VM directly through the Hyper-V WMI layer — no GUI, no PowerShell module dependency.
Native interop + embedded PowerShell
Win32 P/Invoke handles privileged operations — token privileges, controlled reboots, disk enumeration — and an embedded PowerShell host runs the disk and imaging scripts straight from the assembly, all from one .NET application.
A tool that becomes its own operating system
The migrator is a single .NET application that does double duty: on a running server it writes a bootable disk; booted from that disk, it runs the whole conversion with no external dependencies.
- A hybrid GPT/UEFI bootable diska small EFI system partition, a WinPE partition carrying the kernel and the migrator, and a data partition for the converted disks, logs, and tools
- SHA-256-locked mediathe image is hashed before media is written, so a version mismatch can't silently ship
- A self-aware runtimethe tool detects whether it woke up as a VMware guest, in WinPE, or on the new Hyper-V host, and picks the right stage automatically
Cleanly stripping VMware, then rebuilding on Hyper-V
Before anything is imaged, the guest is sanitized in place — but its identity is preserved:
- Identity captured firstNIC/IP/DNS, page-file, and time-zone settings are saved so they can be reapplied on the Hyper-V side
- VMware removed at the rootservices stopped and de-registered, the driver stack and virtual NICs torn down, and orphaned registry keys and files swept
- Rebuilt for Hyper-Va Server Core Hyper-V host is provisioned, the UEFI boot loader written, and a Generation 2 VM stood up with Secure Boot through the Hyper-V WMI layer
Verified, lossless disk conversion
The disk path is deliberately format-agnostic and two-step, with verification built in:
- Captureeach source VMDK-backed volume is imaged into a compressed WIM
- Applythe WIM is applied into a freshly partitioned Generation 2 VHDX configured for UEFI and Secure Boot; OS and data disks convert independently
- Verifyimage hashing plus a read-back of the converted VHDX make the conversion checksum-verified, not assumed; a prior VHDX is backed up before a re-run, so a retry never clobbers a previous attempt
How a server crosses over.
Boot offline
The server boots from the custom WinPE media into a local migration environment — no network in the loop.
Strip VMware
VMware Tools, drivers, and virtual NICs are removed; the guest's identity is saved to reapply later.
Convert disks
Each disk is captured to a WIM and rebuilt as a verified Generation 2 VHDX.
Build Hyper-V
A Server Core Hyper-V host is provisioned and the Gen 2 VM created through the Hyper-V WMI layer.
First boot
The converted guest first-boots on Hyper-V with its saved identity reapplied; progress is carried across via Hyper-V KVP.
Offline by construction, auditable by design
Running with no network isn't a side effect — it's the data-protection guarantee, and every step is accountable:
- No network in the loopevery step runs from the bootable media, so there's no path for data to leave the machine
- Scripts from memorythe embedded PowerShell host runs imaging scripts straight from the application's resources, not loose files on disk
- A reproducible audit traila structured logger timestamps and attributes every action, for operators and engineers alike
A few steps stay deliberately hands-on — firmware UEFI/Secure Boot settings and the physical network assignment — so the cutover is always under an operator's control.
Built, not bought — and the savings were clean
The economics worked on two fronts: the replacement platform was already paid for, and we built the migration tool instead of licensing one.
- Nothing new to licensethe organization's Microsoft enterprise agreement already covered Windows Server Standard on these hosts (their cores licensed), which includes the Hyper-V role and the right to run two Windows Server guests per host — Datacenter where a host runs more. So VMware's per-CPU licensing was eliminated, not swapped for another
- No recurring tool licensingno per-seat, per-host, or per-migration fees for the migrator; across an estate this size, a one-time build favored building over buying
- Tailored to the plant estateit fits how these factory sites are actually built and run, not a generic conversion path, and it addresses real procedural and manpower constraints
- A wizard, not a specialistthe conversion is guided and automated, with only light hands-on steps, so a site technician can run it without a senior engineer on the call
- Built for remote, thin-staffed sitesa global operation with little on-site engineering at some plants could still migrate locally and safely
- Designed for under 90 minutes a serverand where a site has several VMware servers, they convert in parallel
Tools & stack
- .NET
- C#
- WinForms
- PowerShell
- SmartAssembly
- Win32 P/Invoke
- Privilege-token APIs
- WMI
- Controlled reboot/shutdown
- Windows PE
- DISM (WIM capture/apply)
- diskpart
- bcdboot (UEFI)
- SHA-256 validation
- VMware vSphere / ESXi
- VMware Tools
- VMDK
- Windows Server
- Hyper-V (Gen 2, UEFI + Secure Boot)
- VHDX
- Hyper-V WMI
- Hyper-V KVP
- Windows Server Core
- Dell
Before & after
Before — VMware, and a migration that needed the network
A vSphere estate with recurring per-CPU licensing, and no safe way to move it: vMotion, vSphere conversion, and network P2V all assumed bandwidth, change windows, and a network path the plant sites couldn't give.
After — an offline tool the operators run
A wizard-guided, bootable migrator converts each server in place with no network and verified zero data loss — a site technician can run it in under 90 minutes, several at once where a site has multiple servers, with no senior engineer per migration. The vSphere estate and its per-CPU licensing are retired with nothing new to license in its place — Hyper-V was already covered by the organization's Windows Server entitlement — and the workloads run on, untouched.
Migrating off VMware usually means the network, a maintenance window, and a leap of faith. We built a tool that becomes its own bootable operating system, converts each server in place with no network at all, and verifies each disk by checksum and read-back — so an enterprise could retire its vSphere licensing without putting a single workload at risk.
Evidence
What changed in the work.
- A custom .NET tool that images its own WinPE boot media and runs the entire conversion offline — no network, no vMotion, no vSphere
- A staged, resumable pipeline that survives reboots: strip VMware, convert disks, build the Hyper-V host, first-boot the guest
- Verified VMDK→VHDX conversion — captured to a WIM and read back checksum-verified, for provably lossless disks
- Cleanly strips VMware (Tools, drivers, NICs, registry) after capturing the guest's identity to reapply on Hyper-V
- Builds a Generation 2 Hyper-V host and guest via native Win32 and Hyper-V WMI interop, with an embedded PowerShell host
- Retired the vSphere estate and its recurring per-CPU VMware licensing — an estimated ~$1M/yr
- A wizard-guided run a site technician can complete in under 90 minutes — and run in parallel across a site's servers — with no senior engineer required
- No per-seat, per-host, or per-migration licensing — a one-time build that, across the estate, favored building over an off-the-shelf converter
- Replaced VMware with Hyper-V at no new platform licensing — already covered by the organization's Windows Server Standard entitlement — so the VMware spend was eliminated, not shifted


