Windows VMs on KVM: VirtIO Drivers Without the Downtime
Windows doesn’t include the VirtIO drivers KVM uses for fast disk and network access. If a migrated Windows VM boots from a VirtIO disk without the storage driver installed, it stops with INACCESSIBLE_BOOT_DEVICE. Install the virtio-win drivers before switching the boot disk, or let the conversion tool inject them, and Windows moves cleanly.
Why Windows Needs Extra Drivers
On KVM, guests get the best performance from paravirtualized VirtIO devices: VirtIO block or SCSI for disks and VirtIO network for NICs. Linux has these drivers built in. Microsoft does not ship them with Windows, so they come from the virtio-win driver package, published as an ISO by the Fedora project and packaged by Red Hat.1, 2
- viostor and vioscsi: storage drivers, needed to boot from a VirtIO disk
- NetKVM: the VirtIO network driver
- Balloon and other device drivers, plus the QEMU guest agent, which lets the platform read IP addresses and shut the guest down cleanly
The Boot Error to Avoid
Stop code 0x7B, INACCESSIBLE_BOOT_DEVICE, means Windows lost access to its system partition during start-up. Microsoft lists switching to a different storage controller than the one used at installation among the causes.3, 4 That is exactly what happens when a VM moves from a VMware controller to a VirtIO disk without the driver in place. The fix is to make sure the storage driver is installed and set to load at boot before the VM starts on VirtIO.
A Safe Order of Steps
- Check the guest. Confirm the Windows version is supported by the current virtio-win release, and take note of anything unusual in the RVTools export, such as old snapshots or raw device mappings. See how to read an RVTools export.
- Stage the drivers. Either install virtio-win in the guest while it still runs on VMware, or use a conversion tool that injects the drivers. virt-v2v, for example, installs VirtIO drivers into Windows guests during conversion when the virtio-win package is available, and otherwise falls back to slower emulated devices.5
- Export and import. Export the VM (OVF/OVA or its VMDK disks) and import it on KVM. CognixStack imports OVA, VMDK and qcow2 and converts the disks.
- If in doubt, boot once on an emulated controller. Start on SATA or IDE, confirm the VirtIO driver is installed, then switch the boot disk to VirtIO.
- Switch the NIC. Move to the VirtIO network adapter and re-apply any static IP settings, which Windows ties to the old adapter.
- Clean up. Uninstall VMware Tools, and install and start the QEMU guest agent.
- Test. Check services, applications, licensing and backups before you sign off the wave.
Things That Catch Teams Out
- Static IPs: the new adapter starts without the old adapter's settings. Record them before the move.
- Windows activation and licensed software: a hardware change can trigger reactivation of Windows or of applications licensed to hardware IDs. Plan for it in the pilot.
- Driver signing: use signed driver packages for production Windows guests.
- Old Windows versions: very old releases may not be supported by current drivers. Decide early whether to upgrade, keep or retire them.
Doing It at Scale
Prove the steps on a handful of Windows VMs in the pilot wave, then script them. With CognixStack, our engineers run the waves with your team and stage the drivers as part of each wave, with a rollback route for every one. See the full VMware to KVM migration guide.
Sources
- Fedora Docs: Creating Windows virtual machines using VirtIO drivers
- Red Hat: KVM paravirtualized (virtio) drivers
- Microsoft Learn: Bug check 0x7B INACCESSIBLE_BOOT_DEVICE
- Microsoft Learn: Advanced troubleshooting for Stop error 7B or Inaccessible_Boot_Device
- Red Hat: virt-v2v configuration changes for Windows virtual machines
Frequently Asked Questions
Do Windows VMs need special drivers on KVM?
Why does my migrated Windows VM show INACCESSIBLE_BOOT_DEVICE?
Should I remove VMware Tools?
Will Windows need to be reactivated?
Get a Free Migration Assessment
We map your estate, renewal dates and options, and show you the plan and the price.