How do I change a Windows virtual machine's disk controller to VirtIO?
Changing the controller right away ends in an INACCESSIBLE_BOOT_DEVICE blue screen, because Windows has no VirtIO driver yet. Install the driver from Guest Tools while the system runs on the old controller, start Windows in safe mode on VirtIO, and return to a normal start.
Before you start
snapshot, migawka
The state of a volume at one moment, kept on the same pool; it is not a backup.virtual machine, maszyna wirtualna
A computer made in software, with a system of its own.
The state of a volume at one moment, kept on the same pool; it is not a backup.virtual machine, maszyna wirtualna
A computer made in software, with a system of its own.
Take a snapshot or a copy of the virtual machine. The change affects the boot disk, and the snapshot is the way back after a mistake. If Windows is encrypted with BitLocker, suspend protection before step 4 and keep the recovery key at hand.
Steps
- Virtualization Station
QNAP's app that runs virtual machines with KVM and QEMU on supported Intel and AMD NAS models.On the NAS in Virtualization Station turn the machine off and add a temporary disk with the VirtIO controller, of any size. - Insert the driver disc: in the machine's CD/DVD ROM settings choose Add → Insert Guest Tools CD, and start the machine.
- In Windows install QNAP Guest Tools. Device Manager should show the new VirtIO controller and disk without a warning mark.
- Open a command prompt as administrator and turn on starting in safe mode (it stays on until step 7):
bcdedit /set {current} safeboot minimal - Shut Windows down. In the machine's settings change the system disk's controller to VirtIO. If the machine does not start from the disk, choose that disk as the boot device in the boot options.
- Start the machine. Windows starts in safe mode and loads the driver for the boot disk.
bcdedit /deletevalue {current} safeboot- Shut the machine down and remove the temporary disk of step 1.
Check that it worked
What not to do
Sources
- QNAP: How to use Virtualization Station 4?
- QNAP: How to set up a disk using the VirtIO controller in Virtualization Station
- Microsoft: BCDEdit /set
Checked: 25 November 2026, against the documentation of QNAP and Microsoft. We did not perform the steps on a virtual machine; names in Virtualization Station may differ in your version.