Hi everyone,
I have managed to pass through 1 of my GPUs using
lxc config device add v3 rtx1 gpu gputype=physical pci=0000:04:00.0
so LXD can create VMs with it
the problem is that NVIDIA drivers are installed but the GPU remains ‘unclaimed’, the drivers install well but nvidia-smi
fails
~# lspci | grep -i nvidia
06:00.0 VGA compatible controller: NVIDIA Corporation TU104 [GeForce RTX 2080] (rev a1)
06:00.1 Audio device: NVIDIA Corporation TU104 HD Audio Controller (rev a1)
06:00.2 USB controller: NVIDIA Corporation TU104 USB 3.1 Host Controller (rev a1)
06:00.3 Serial bus controller: NVIDIA Corporation TU104 USB Type-C UCSI Controller (rev a1)
:~# 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.
:~# lshw -numeric -C display
*-display
description: VGA compatible controller
product: Virtio 1.0 GPU [1AF4:1050]
vendor: Red Hat, Inc. [1AF4]
physical id: 0
bus info: pci@0000:04:00.0
logical name: /dev/fb0
version: 01
width: 64 bits
clock: 33MHz
capabilities: msix pm pciexpress vga_controller bus_master cap_list rom fb
configuration: depth=32 driver=virtio-pci latency=0 resolution=1280,800
resources: iomemory:80-7f irq:21 memory:81800000-81ffffff memory:812400000-812403fff memory:82000000-82000fff memory:c0000-dffff
*-display UNCLAIMED
description: VGA compatible controller
product: TU104 [GeForce RTX 2080] [10DE:1E82]
vendor: NVIDIA Corporation [10DE]
physical id: 0
bus info: pci@0000:06:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller bus_master cap_list
configuration: latency=0
resources: iomemory:80-7f iomemory:80-7f memory:80000000-80ffffff memory:8
Is there a way of claiming the Nvidia GPU and stopping the Virtio one?
please help . . . I need the GPU for my k8s workloads
thanks,
Luke