π Hey! I'll explain you how to setup an Oculus Rift/Rift S/Quest (1/2) on a Windows 10 VM made with Qemu and KVM with a GPU Passthrough.
- A Windows 10 VM made with KVM and with a GPU passthrough
- Obviously an Oculus (Any Oculus, tested with a CV1 and a Quest 2)
- If it's a Quest, an Oculus link
- And a brain
You'll need to made a USB passthrough, so your virtual Windows can detect the Oculus device. The disadvantage is that you can't use Linux and Windows at the same time (For now, I'm working on it π). I'll show in this tutorial how to make a USB passthrough and make a little .sh for unbind your CPU/PCIe USB controller.
Hardware:
- CPU: Intel Core i5-9600K
- GPUs: MSI Nvidia GTX 650 (For Linux π§) and an Aorus RTX 2060 Super (For Windows π)
Software:
- OS: Manjaro 21.0 XFCE
- VM OS: Windows 10 20H2
- For the VM: Qemu 5, with virt-manager
You will need to unbind your Usb Controller: Intel [...] USB xHCI Host Contoller
.
Your can find it with the command in your terminal: lspci
Find the ID of your USB Controller and make a .sh with
#!/bin/sh
echo -n "0000:00:14.0" > /sys/bus/pci/drivers/xhci_hcd/unbind # Replace "0000:00:14.0" by your usb controller's ID.
sudo virsh start win10 # Or an another command for starting the VM
And add your USB controller into the devices of your VM in the Virt-Manager.
Start it, install the Oculus software, set the default sound on the Oculus, an that's it!
If you have any crackling problems, i've solved by not using Scream but using directly the device or using PulseAudio passthrough.
It's the same that Intel but you need to find your USB Controller..
It's the same that Intel but you need to find your USB Controller..