Hello Everyone,
I have an Asus ProArt 16 laptop with two 2 TB nvme SSDs and 32 GiB ram set up to dual boot into Fedora 42 and Windows 11. Windows lives on the SSD that originally came with the computer and Fedora runs from an SSD I added later. Dual booting works well. Grub2 got installed on the Fedora SSD, which has first boot priority in the UEFI firmware settings, and both Fedora and Windows boot and run without a problem. I’m trying to set up a Windows qemu/kvm virtual machine using the Windows SSD as a raw disk, but I cannot get the virtual machine to boot. I’d greatly appreciate some help finding out what’s wrong.
In creating the virtual machine on Virtual Machine Manager, I choose “manual install,” specifying /dev/disk/by-id/ as the source for the Windows boot disk device. I did this because I had read that this was the correct way to pass the physical disk block device to the VM for its use. When I tried this, the VM displayed the grub2> command line prompt. I believe this was because I had installed Fedora on the same SSD as Windows shortly after I got the computer, so Grub2 got installed on the Windows SSD’s ESP partition and a Grub2 bootloader remained there after I installed the second SSD and installed Fedora and Grub2 there. I then entered on the Grub2 command line the series of commands loading modules and ending with “boot” invoked when the Windows Grub menu item gets selected in the hope that would get Windows to boot. No luck. Nothing happened after I entered “boot” on the Grub2 command line.
I then tried to remove everything Grub2 had put into the ESP partition of the Windows SSD, hoping that this would cause the VM to avoid Grub2 and boot straight into Windows. I removed everything from the EFI directory except the Boot and Microsoft directories. When I then started the VM, it opened with a black screen, briefly displayed the TianoCore logo, then displayed a blue window with the message “Press any key to stop system reset” in the center with a 5 second countdown timer in the lower left corner. When the timer expired, the black screen and TianoCore logo reappeared followed by the same blue window, “Press any key” message, and countdown timer. Pressing a key to stop the reset presented a blue window entitled “Boot Option Restored” with a menu of three choices: Reset System, Continue boot, and Always continue boot. Continuing the boot resulted in the same “Press any key to stop reset” message. I feared that I might have damaged the Windows boot setup, but Windows booted normally from the Grub2 menu.
As a sanity check, I gave the Windows SSD boot priority in the UEFI firmware settings and the computer booted straight into Windows. I then tried Windows’ recovery and startup repair tools, but they reported that they could not repair the startup files (presumably because they weren’t broken).
I’ve also tried identifying the Windows SSD in alternative ways, using additional ids provided in the /dev/disk/by-id directory and also by using the nvme1n1 identifier assigned to it at that time, but that also failed in the same way. I also tried giving the VM the path to the ESP partition only on the Windows SSD, but that also failed in the same manner.
Obviously, the VM I’m trying to set up is simply not finding the Windows OS. I can’t think of anything else to try, so I hope someone reading this will have some suggestions. Thanks to all of you who’ve taken the time to read this far!
Darron