Skip to navigation
GPU Pass-through On Linux/Virt-Manager like qemu/kvm
09.02.24
# Check if you have an extra GPU available with ```console neofetch ``` # If you have at least 2 GPUs, then find out the IDs you like to use with the command below ```console lspci -nn ``` ## write down the IDs, in my case I took the IDs from my build in graphic card and its audio ```text 00:02.0 Display controller [0380]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller [8086:0412] (rev 06) 00:03.0 Audio device [0403]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller [8086:0c0c] (rev 06) ``` # After you found your ids, add them to the grub file /etc/default/grub with "intel_iommu=on vfio-pci.ids=8086:0412,8086:0c0c" The line will look like: ```txt GRUB_CMDLINE_LINUX_DEFAULT="intel_iommu=on vfio-pci.ids=8086:0412,8086:0c0c" ``` # rebuild grub and reboot ```console sudo grub-mkconfig -o /boot/grub/grub.cfg ``` #find out how is using your device ```console lspci -k ``` it shows that my card was in use by i915, so I have to overwrite the preference below # create the file /etc/modprobe.d/vfio.conf ```text options vfio-pci ids=8086:0412,8086:0c0c softdep pre: vfio-pci ``` # update the kernel loading with one of 2 below commands(depends on your system) ```console sudo mkinitcpio -p linux sudo update-initramfs -u ``` # reboot and add the hardware "PCI Host Device" in your QEMU manager
https://www.youtube.com/watch?v=KVDUs019IB8&ab_channel=MentalOutlaw
Reply
Anonymous
Information Epoch 1730248193
Silence is golden.
Home
Notebook
Contact us