I messed up GTX 1060 Passthrough

pancio

Member
Jan 27, 2020
5
0
6
45
Hello,
I need help with messed up configuration. I need to passthrough gtx 1060 gpu to VM. I tried creating Win10 and Kali VM but I wasnt able to install nvidia drivers into them. Windows 10 was also disabling Nvidia card with 43 error. I am trying to use monitor connected to HDMI port of the nvidia card and use it as primary monitor for VM.

01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP106 [GeForce GTX 1060 6GB] [10de:1c03] (rev a1) (prog-if 00 [VGA controller])
Subsystem: NVIDIA Corporation GP106 [GeForce GTX 1060 6GB] [10de:1c03]
Flags: fast devsel, IRQ 11
Memory at f6000000 (32-bit, non-prefetchable) [disabled] [size=16M]

Memory at e0000000 (64-bit, prefetchable) [disabled] [size=256M]
Memory at f0000000 (64-bit, prefetchable) [disabled] [size=32M]
I/O ports at e000 [disabled]
Expansion ROM at f7000000 [disabled] [size=512K]

Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [78] Express Legacy Endpoint, MSI 00
Capabilities: [100] Virtual Channel
Capabilities: [250] Latency Tolerance Reporting
Capabilities: [128] Power Budgeting <?>
Capabilities: [420] Advanced Error Reporting
Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
Capabilities: [900] #19
Kernel modules: nvidiafb, nouveau (there is no Kernel driver assigned to this device, I dont know why)

01:00.1 Audio device [0403]: NVIDIA Corporation GP106 High Definition Audio Controller [10de:10f1] (rev a1)
Subsystem: NVIDIA Corporation GP106 High Definition Audio Controller [10de:1c03]
Flags: bus master, fast devsel, latency 0, IRQ 17
Memory at f7080000 (32-bit, non-prefetchable) [size=16K]

Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [78] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel

blacklist.conf:
blacklist radeon
blacklist nouveau
blacklist nvidia

pve-blacklist.conf:
blacklist nvidiafb
blacklist nvidia
blacklist radeon
blacklist nouveau

/etc/modprobe.d/vfio.conf:
ptions vfio-pci ids=10de:1c03,10de:10f1

I added line in grub file:
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on"

dmesg | grep "IOMMU"
[ 0.057737] DMAR: IOMMU enabled

/etc/initramfs-tools/modules
vfio vfio_iommu_type1 vfio_virqfd vfio_pci ids=10de:1c03,10de:10f1

/etc/modules
vfio vfio_iommu_type1 vfio_pci vfio_virqfd ids=10de:1c03,10de:f1
 
OK , I got it fixed. It was vfio-pci module that havent been loaded.

Now I have different problem, after I get Windows 10 VM keep booting without errors I decided to passtrough PCI network adapter and now Windows 10VM is stoping at uefi Start boot option bar. Here is my machine setup:

gent: 0
bios: ovmf
boot: c
bootdisk: scsi0
cores: 2
efidisk0: zfsstorage:vm-100-disk-1,size=1M
hostpci0: 01:00,pcie=1,x-vga=1
hostpci1: 03:00,pcie=1
ide2: none,media=cdrom
machine: q35
memory: 4096
name: Win10GPU
numa: 1
ostype: win10
scsi0: zfsstorage:vm-100-disk-0,cache=writeback,size=32G
scsihw: virtio-scsi-pci
smbios1: uuid=be0fd151-7220-4e04-847f-d9530e0e2e4c
sockets: 1
usb0: host=03f0:034a,usb3=1
vmgenid: 636bda7b-e96b-4bf5-be42-76a8c4312137