#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)
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
- In Virt-Manager:
Add Hardware -> PCI Host Device -> Choose your device - In Virt-Manager:
Boot Options -> Check/mark the PCI Device as bootable - 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
it should work fine, windows will be a bit confused as for why does its hardware suddenly change, but it will work
Just tried booting my NVMe in a VM on my Fedora system, it's alive (ouch the screen resolution)
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
@young meadow so should i pass through the NVMe drive as storage or as PCI
I tried PCI earlier and it worked.
alright
@desert maple did it work for you?