Hi,
I have two GPUs:
I want the 1080 GPU passed through to a VM and the 1060 available to the host, possibly for LXC passthrough.
I've done the following setup which worked just fine for passing through nvidia gpus to VMs other times I've done it
Add iommu boot argument:
Add vfio modules:
Add driver blacklist:
Check GPU ID:
Added the GPU to vfio:
While the above works just fine to add the 1080 GPU to a VM (after adding the PCI-E device via webui), however the second gpu the 1060 is not available for the host:
As the above suggests, the 1060 is still in use by vfio-pci, what do I need to do to exclude it from vfio-pci so the host can use it again?
I saw the package pve-nvidia-vgpu-helper installed, is it possible that this one may be interfering here?
I have two GPUs:
Code:
root@tower8:~# lspci | egrep 'VGA|3D'
01:00.0 VGA compatible controller: NVIDIA Corporation GP104 [GeForce GTX 1080] (rev a1)
02:00.0 VGA compatible controller: NVIDIA Corporation GP106 [GeForce GTX 1060 3GB] (rev a1)
I want the 1080 GPU passed through to a VM and the 1060 available to the host, possibly for LXC passthrough.
I've done the following setup which worked just fine for passing through nvidia gpus to VMs other times I've done it
Add iommu boot argument:
Code:
root@tower8:~# cat /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on"
Add vfio modules:
Code:
root@tower8:~# nano /etc/modules
vfio
vfio_iommu_type1
vfio_pci
Add driver blacklist:
Code:
root@tower8:~# nano /etc/modprobe.d/blacklist.conf
blacklist radeon
blacklist nouveau
# comment out nvidia-driver for gpu-separation
# blacklist nvidia
Check GPU ID:
Code:
root@tower8:~# lspci -n -s 01:00
01:00.0 0300: 10de:1b80 (rev a1)
01:00.1 0403: 10de:10f0 (rev a1)
root@tower8:~# lspci -n -s 02:00
02:00.0 0300: 10de:1c02 (rev a1)
02:00.1 0403: 10de:10f1 (rev a1)
Added the GPU to vfio:
Code:
root@tower8:~# nano /etc/modprobe.d/vfio.conf
options vfio-pci ids=10de:1b80 disable_vga=1
Code:
update-grub
update-initramfs -u
reboot
While the above works just fine to add the 1080 GPU to a VM (after adding the PCI-E device via webui), however the second gpu the 1060 is not available for the host:
Code:
root@tower8:~# nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
Code:
root@tower8:~# lspci -nnk | grep -A3 NVIDIA
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP104 [GeForce GTX 1080] [10de:1b80] (rev a1)
Subsystem: ASUSTeK Computer Inc. Device [1043:8725]
Kernel driver in use: vfio-pci
Kernel modules: nvidia
01:00.1 Audio device [0403]: NVIDIA Corporation GP104 High Definition Audio Controller [10de:10f0] (rev a1)
Subsystem: ASUSTeK Computer Inc. Device [1043:8725]
Kernel driver in use: vfio-pci
Kernel modules: snd_hda_intel
02:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP106 [GeForce GTX 1060 3GB] [10de:1c02] (rev a1)
Subsystem: Hewlett-Packard Company Device [103c:82fc]
Kernel driver in use: vfio-pci
Kernel modules: nvidia
02:00.1 Audio device [0403]: NVIDIA Corporation GP106 High Definition Audio Controller [10de:10f1] (rev a1)
Subsystem: Hewlett-Packard Company Device [103c:82fc]
Kernel driver in use: vfio-pci
Kernel modules: snd_hda_intel
As the above suggests, the 1060 is still in use by vfio-pci, what do I need to do to exclude it from vfio-pci so the host can use it again?
I saw the package pve-nvidia-vgpu-helper installed, is it possible that this one may be interfering here?