I have an installed GTX 960 at PCIe and a i7-2600k which has an integrated GPU. (and 16 GB RAM, Gigabyte Z68X-UD3H-B3 Mainboard)
The integrated GPU I don't use for my host system (Mint 21.3) and would like to use it inside my Linux Mint 21.3 VM which I generated inside Virtual Machine Manager (VMM).
Inside VMM at the Display Spice section I can activate OpenGL and select the integrated intel GPU.
(listen type: none, Type: Spice server)
This only works if I also activate Virtio with 3d acceleration inside the video section.
I also changed my grub to:
Code: Select all
GRUB_CMDLINE_LINUX_DEFAULT="intel_iommu=on iommu=pt"
It looks like something is not working:
Code: Select all
$ dmesg | grep -i -e DMAR -e IOMMU
[ 0.000000] Command line: BOOT_IMAGE=/@/boot/vmlinuz-5.15.0-94-generic root=UUID=..... ro rootflags=subvol=@ intel_iommu=on iommu=pt
[ 0.043134] Kernel command line: BOOT_IMAGE=/@/boot/vmlinuz-5.15.0-94-generic root=UUID=.. ro rootflags=subvol=@ intel_iommu=on iommu=pt
[ 0.043193] DMAR: IOMMU enabled
[ 0.205106] iommu: Default domain type: Passthrough (set via kernel command line)
Code: Select all
for g in $(find /sys/kernel/iommu_groups/* -maxdepth 0 -type d | sort -V); do
echo "IOMMU Group ${g##*/}:"
for d in $g/devices/*; do
echo -e "\t$(lspci -nns ${d##*/})"
done;
done;
IOMMU Group .:
Do I need to change something else?
---------------------------------------------------
For real passthrough I tried the grub settings (shown here):
Code: Select all
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on iommu=pt pcie_acs_override=downstream,multifunction initcall_blacklist=sysfb_init video=simplefb:off video=vesafb:off video=efifb:off video=vesa:off disable_vga=1 vfio_iommu_type1.allow_unsafe_interrupts=1 kvm.ignore_msrs=1 modprobe.blacklist=radeon,nouveau,nvidia,nvidiafb,nvidia-gpu,snd_hda_intel,snd_hda_codec_hdmi,i915"
Code: Select all
nano /etc/modules
# Modules required for PCI passthrough
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd
Code: Select all
update-initramfs -u -k all
So this didn't work either.
I also had no sound at my host system. Can just passthrough the GPU and keep my (onboard) sound?
Potential solutions for both options are welcome.
---------------------------------------------
What else do I need to change?
Most guides I found are only for discrete GPU's
This problem with black screen was also posted on other sides but without a working solution.