

It will fail to boot because the drivers won't load.Then go edit the VM, change from list view to XML view so you can swap in your UUID from your original motherboard, save the settings, then start the VM.UNCHECK "Start VM after creation" then hit create.Primary vDisk Bus: Make sure the VirtIO drivers are selected.Primary vDisk Location - Select manual then grab /dev/disk/by-id/ata-YOURDEVICEIDHERE.qcow2.qemu-img convert -p -O raw /dev/disk/by-id/ata-YOURDEVICEIDHERE "/mnt/user/domains/Your-PC-Name-Goes-Here.img" img, if you are not comfortable with that or if someone in the comments has a better reason not to use it enter the following:ĥc1.

I had some 400 gb to convert so I used qcow2 instead of. qemu-img convert -p -O qcow2 /dev/disk/by-id/ata-YOURDEVICEIDHERE "/mnt/user/domains/Your-PC-Name-Goes-Here.qcow2"ĥc. (I use qcow as my image format since the performance is better, think of how race car drivers will take out the seats and any extra weight that they can dump)ĥb. (the device disk id in the ssh terminal will look like this /dev/disk/by-id/ata-YOURDEVICEIDHERE)ĥa. If no errors were found enter the following code which will converts the img file, we are going to use your formatted passthrough NVMe drive ID here because I found using the "sdb" or w/e letter your device is can change during a reboot.mnt/user/domains/Your-PC-Name-Goes-Here# qemu-img check -r all Your-PC-Name-Goes-Here.VHDX I am assuming you have your domains under user and mnt so it will look like thisĤa. Open your unraid terminal and run a consistency check.Moving the VHD file may also take some time. Copy the newly created VHD file either onto your unraid array, I moved mine into Domains. Rename the VHD file to the name of your computer that you are going to make a VM.I deleted a bunch of games but kept programs and settings. This may take anywhere between 20 mins - 60 mins depending on how big the data is on your drive and how fast your system is. Go to this website, this converts your physical hard disc (in your case, your NVMe) to a vhd file that unraid can convert to then run as a VM, select all the partitions you want to convert to VHD.Grab the UUID of your motherboard and save this either IRL or on a notepad and put that notepad file onto your usb that has unraid on it.I just recently moved my gaming pc to a VM using the below process. I used this process to not reinstall windows 10, downloading all my programs, readjusting my settings. First, as others have commented, practice with a pass-through VM first to get the hang of IOMMU groups and such.
