J'ai installed a Windows 10 virtual machine using an IDE disk and would now like to change the disk to use the Virtio driver.
For other versions of Windows, the approach in this question seems to be sufficient - [Comment migrate an IDE VM to a virtio VM?](https://unix.stackexchange.com/questions/134884/how-to-migrate-an-ide-vm-to-a-virtio-vm)
However with Windows 10, this leads to an `INACCESSIBLE_BOOT_DEVICE` issue.
I am aware that the preferred approach is the use the Virtio device from the start and install the appropriate virtio driver when prompted. Unfortunately I was having some separate issues with changing the CD in KVM (I couldn't get 2 CDROM devices to work either).
Existe-t-il un moyen de correct this issue without reinstalling?
Similar issue here - [https://me.m01.eu/blog/2015/03/windows-10-kvm-and-iscsi/#comment-36090]( 2 )
Windows 10 in KVM: changer démarrage disk to Virtio
Re: Windows 10 in KVM: changer démarrage disk to Virtio
All the answers are correct but vous devrez peut-être perform few additional steps after you have installed virtio drivers. Here are the steps I followed:
-
Configure boot disk as SATA and start the VM.
-
Open an elevated invite de commandes and set the VM to boot into safe mode by typing
```
bcdedit /set "{current}" safeboot minimal
```
-
Shut-down the VM and change the boot device type to virtio.
-
Boot the VM, it will enter in safe mode. Booting into safe mode automatically enables and loads all boot-start drivers will be enabled and loaded, including virtio. Since there is now a miniport installed to use it, the kernel will now make it part of the drivers that are to be loaded on boot.
-
To disable safe mode for the next boot, run in an elevated invite de commandes:
```
bcdedit /deletevalue "{current}" safeboot
```
-
Shut down.
-
Reconfigure the boot disk to virtio and start the VM.
-
Configure boot disk as SATA and start the VM.
-
Open an elevated invite de commandes and set the VM to boot into safe mode by typing
```
bcdedit /set "{current}" safeboot minimal
```
-
Shut-down the VM and change the boot device type to virtio.
-
Boot the VM, it will enter in safe mode. Booting into safe mode automatically enables and loads all boot-start drivers will be enabled and loaded, including virtio. Since there is now a miniport installed to use it, the kernel will now make it part of the drivers that are to be loaded on boot.
-
To disable safe mode for the next boot, run in an elevated invite de commandes:
```
bcdedit /deletevalue "{current}" safeboot
```
-
Shut down.
-
Reconfigure the boot disk to virtio and start the VM.