Hello
I am relatively new to Linux, and completely new to Mint.
I can't seem to get GPU passthrough to work. slot one has host nvidia GT710 and slot 3 is my GTX 1660Ti for passthrough
Code: Select all
root@TJs-WorkHorse:~# lspci | grep VGA
09:00.0 VGA compatible controller: NVIDIA Corporation Device 2182 (rev a1)
42:00.0 VGA compatible controller: NVIDIA Corporation GK208B [GeForce GT 710] (rev a1)
Code: Select all
root@TJs-WorkHorse:~# sudo /home/tech-junk1e/Documents/win7VM.sh
QEMU 2.11.1 monitor - type 'help' for more information
(qemu) qemu-system-x86_64: -device vfio-pci,host=09:00.0,multifunction=on: vfio error: 0000:09:00.0: group 14 is not viable
Please ensure all devices within the iommu_group are bound to their vfio bus driver.
The GPU is in its own iommu group but the GPU seems to contain a USB controller
Code: Select all
root@TJs-WorkHorse:~# lspci -nn | grep 09:00
09:00.0 VGA compatible controller [0300]: NVIDIA Corporation Device [10de:2182] (rev a1)
09:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:1aeb] (rev a1)
09:00.2 USB controller [0c03]: NVIDIA Corporation Device [10de:1aec] (rev a1)
09:00.3 Serial bus controller [0c80]: NVIDIA Corporation Device [10de:1aed] (rev a1)
Code: Select all
root@TJs-WorkHorse:~# lspci -kn | grep -A 2 09:00
09:00.0 0300: 10de:2182 (rev a1)
Subsystem: 3842:1263
Kernel driver in use: vfio-pci
--
09:00.1 0403: 10de:1aeb (rev a1)
Subsystem: 3842:1263
Kernel driver in use: vfio-pci
--
09:00.2 0c03: 10de:1aec (rev a1)
Subsystem: 3842:1263
Kernel driver in use: xhci_hcd
09:00.3 0c80: 10de:1aed (rev a1)
Subsystem: 3842:1263
Kernel driver in use: vfio-pci
it is in its own iommu group
Code: Select all
root@TJs-WorkHorse:~# for a in /sys/kernel/iommu_groups/*; do find $a -type l; done | sort --version-sort
/sys/kernel/iommu_groups/0/devices/0000:00:01.0
/sys/kernel/iommu_groups/1/devices/0000:00:01.1
/sys/kernel/iommu_groups/2/devices/0000:00:02.0
/sys/kernel/iommu_groups/3/devices/0000:00:03.0
/sys/kernel/iommu_groups/4/devices/0000:00:03.1
/sys/kernel/iommu_groups/5/devices/0000:00:04.0
/sys/kernel/iommu_groups/6/devices/0000:00:07.0
/sys/kernel/iommu_groups/7/devices/0000:00:07.1
/sys/kernel/iommu_groups/8/devices/0000:00:08.0
/sys/kernel/iommu_groups/9/devices/0000:00:08.1
/sys/kernel/iommu_groups/10/devices/0000:00:14.0
/sys/kernel/iommu_groups/10/devices/0000:00:14.3
/sys/kernel/iommu_groups/11/devices/0000:00:18.0
/sys/kernel/iommu_groups/11/devices/0000:00:18.1
/sys/kernel/iommu_groups/11/devices/0000:00:18.2
/sys/kernel/iommu_groups/11/devices/0000:00:18.3
/sys/kernel/iommu_groups/11/devices/0000:00:18.4
/sys/kernel/iommu_groups/11/devices/0000:00:18.5
/sys/kernel/iommu_groups/11/devices/0000:00:18.6
/sys/kernel/iommu_groups/11/devices/0000:00:18.7
/sys/kernel/iommu_groups/12/devices/0000:00:19.0
/sys/kernel/iommu_groups/12/devices/0000:00:19.1
/sys/kernel/iommu_groups/12/devices/0000:00:19.2
/sys/kernel/iommu_groups/12/devices/0000:00:19.3
/sys/kernel/iommu_groups/12/devices/0000:00:19.4
/sys/kernel/iommu_groups/12/devices/0000:00:19.5
/sys/kernel/iommu_groups/12/devices/0000:00:19.6
/sys/kernel/iommu_groups/12/devices/0000:00:19.7
/sys/kernel/iommu_groups/13/devices/0000:01:00.0
/sys/kernel/iommu_groups/13/devices/0000:01:00.1
/sys/kernel/iommu_groups/13/devices/0000:01:00.2
/sys/kernel/iommu_groups/13/devices/0000:02:00.0
/sys/kernel/iommu_groups/13/devices/0000:02:01.0
/sys/kernel/iommu_groups/13/devices/0000:02:02.0
/sys/kernel/iommu_groups/13/devices/0000:02:03.0
/sys/kernel/iommu_groups/13/devices/0000:02:04.0
/sys/kernel/iommu_groups/13/devices/0000:02:09.0
/sys/kernel/iommu_groups/13/devices/0000:05:00.0
/sys/kernel/iommu_groups/13/devices/0000:06:00.0
/sys/kernel/iommu_groups/13/devices/0000:08:00.0
/sys/kernel/iommu_groups/14/devices/0000:09:00.0
/sys/kernel/iommu_groups/14/devices/0000:09:00.1
/sys/kernel/iommu_groups/14/devices/0000:09:00.2
/sys/kernel/iommu_groups/14/devices/0000:09:00.3
/sys/kernel/iommu_groups/15/devices/0000:0a:00.0
/sys/kernel/iommu_groups/16/devices/0000:0a:00.2
/sys/kernel/iommu_groups/17/devices/0000:0a:00.3
/sys/kernel/iommu_groups/18/devices/0000:0b:00.0
/sys/kernel/iommu_groups/19/devices/0000:0b:00.2
/sys/kernel/iommu_groups/20/devices/0000:0b:00.3
/sys/kernel/iommu_groups/21/devices/0000:40:01.0
/sys/kernel/iommu_groups/22/devices/0000:40:01.3
/sys/kernel/iommu_groups/23/devices/0000:40:02.0
/sys/kernel/iommu_groups/24/devices/0000:40:03.0
/sys/kernel/iommu_groups/25/devices/0000:40:03.1
/sys/kernel/iommu_groups/26/devices/0000:40:04.0
/sys/kernel/iommu_groups/27/devices/0000:40:07.0
/sys/kernel/iommu_groups/28/devices/0000:40:07.1
/sys/kernel/iommu_groups/29/devices/0000:40:08.0
/sys/kernel/iommu_groups/30/devices/0000:40:08.1
/sys/kernel/iommu_groups/31/devices/0000:41:00.0
/sys/kernel/iommu_groups/32/devices/0000:42:00.0
/sys/kernel/iommu_groups/32/devices/0000:42:00.1
/sys/kernel/iommu_groups/33/devices/0000:43:00.0
/sys/kernel/iommu_groups/34/devices/0000:43:00.2
/sys/kernel/iommu_groups/35/devices/0000:43:00.3
/sys/kernel/iommu_groups/36/devices/0000:44:00.0
/sys/kernel/iommu_groups/37/devices/0000:44:00.2
Code: Select all
#!/bin/bash
vmname="windows7vm"
if ps -ef | grep qemu-system-x86_64 | grep -q multifunction=on; then
echo "A passthrough VM is already running." &
exit 1
else
# use pulseaudio
export QEMU_AUDIO_DRV=pa
export QEMU_PA_SAMPLES=8192
export QEMU_AUDIO_TIMER_PERIOD=99
export QEMU_PA_SERVER=/run/user/1000/pulse/native
cp /usr/share/OVMF/OVMF_VARS.fd /tmp/my_vars.fd
qemu-system-x86_64 \
-name $vmname,process=$vmname \
-machine type=pc,accel=kvm \
-cpu host,kvm=off \
-smp 20,sockets=1,cores=20,threads=1 \
-m 24G \
-balloon none \
-rtc clock=host,base=localtime \
-vga none \
-nographic \
-serial none \
-parallel none \
-soundhw hda \
-usb \
-device usb-host,vendorid=0x1e7d,productid=0x3214 \
-device usb-host,vendorid=0x1e7d,productid=0x2e4b \
-device vfio-pci,host=09:00.0,multifunction=on \
-device vfio-pci,host=09:00.1 \
-device vfio-pci,host=09:00.2 \
-device vfio-pci,host=09:00.3 \
-drive if=pflash,format=raw,readonly,file=/usr/share/OVMF/OVMF_CODE.fd \
-drive if=pflash,format=raw,file=/tmp/my_vars.fd \
-boot order=dc \
-drive id=disk0,if=virtio,cache=none,format=raw,file=/media/tech-junk1e/win.img \
-drive file=/home/tech-junk1e/Downloads/WINDOWS_7_ALL_IN_ONE_PRE-ACTIVATED.ISO,index=1,media=cdrom \
-drive file=/home/tech-junk1e/Downloads/virtio-win-0.1.164.iso,index=2,media=cdrom \
-netdev type=tap,id=net0,ifname=vmtap0,vhost=on \
-device virtio-net-pci,netdev=net0,mac=00:16:3e:00:5d:5b
exit 0
fi
##-vga none \
##
i have tried disabling passthrough and running software emulation and get error 0003 and cannot load my win7 iso
I am Running:
AMD Threadripper 1920X
ASUS X399 Prime motherboard
Two Corsair Dominator Platnium 16GB 3000 CL 15 for 32 GB of RAM
Nvidia GT 710 Host GPU
Nvidia GTX 1660Ti for passthrough
Seagate Ironwolf 4TB 5900RPM HDD
If there is anything else needed please let me know as I am still new to this
EDIT: Sorry, I forgot to mention, I am using Mint 19.1 kernel 4.15.0-47 generic. fresh install, and I followed the new tutorial linked at the beginning of thread. I also have the latest bios for my motherboard.