#Is it a good idea to boot a Windows install on a NVMe drive as a KVM virtual machine?

14 messages · Page 1 of 1 (latest)

desert maple
#

Is it okay to do that or do I need to make another install of Windows for use in KVM?

young meadow
#

Like passthrough an NVMe drive to VM? People have done that before successfully. It might require tweaking config (QEMU/libvirt), that I don't know about. https://wiki.archlinux.org/title/PCI_passthrough_via_OVMF#Physical_disk/partition
0. Maybe enable IOMMU in firmware and kernel command line (bootloader) either amd_iommu=on or intel_iommu=on

  1. In Virt-Manager: Add Hardware -> PCI Host Device -> Choose your device
  2. In Virt-Manager: Boot Options -> Check/mark the PCI Device as bootable
  3. In Virt-Manager: Start the VM, Windows will complain and maybe blue screen (forgot I installed Valorant too), then it reboots, and brings you to login screen hopefully
twilit falcon
#

it should work fine, windows will be a bit confused as for why does its hardware suddenly change, but it will work

young meadow
#

Just tried booting my NVMe in a VM on my Fedora system, it's alive (ouch the screen resolution)

desert maple
#

tysm

#

any good sources on passthrough stuff?

young meadow
#

It depends on what you're trying to passthrough but passing a storage device is easy enough. Last year I got into Proxmox Virtual Environment stuff trying to figure out a good setup to virtualize Windows alongside Linux, but Proxmox is a server-like environment. It still uses QEMU in the back end which is pretty much standard. Libvirt, used by virt-manager, is a library to interact with VMs of various kinds (even LXC) but Proxmox doesn't use it to run QEMU. QEMU is the thing to learn for KVM/QEMU stuff.

#

So yeah, it's based on QEMU features

desert maple
#

@young meadow so should i pass through the NVMe drive as storage or as PCI

young meadow
desert maple
#

alright

young meadow
#

@desert maple did it work for you?

desert maple
#

Haven't tried yet, I'm doing research

#

I'll open another support ticket if I ever run into any issues