I am actually installing nvidia driver in a guest vm, however get could not initialization
I am using passthrough
Host setup vfio, and confirmed through lspci -k
41:00.0 VGA compatible controller: NVIDIA Corporation GM107GL [Quadro K620] (rev a2)
Subsystem: NVIDIA Corporation Device 1098
Kernel driver in use: vfio-pci
Kernel modules: nouveau
41:00.1 Audio device: NVIDIA Corporation Device 0fbc (rev a1)
Subsystem: NVIDIA Corporation Device 1098
Kernel driver in use: vfio-pci
Kernel modules: snd_hda_intel
guest is sles12sp2
command line is like:
/usr/bin/qemu-system-x86_64 -enable-kvm
-machine pc-i440fx-2.6
-cpu host,kvm=off
-m 8192
-smp 1,sockets=1,cores=1,threads=1
-vga none -nographic
-net nic -net bridge,br=br0
-drive if=pflash,format=raw,readonly,file=/usr/share/qemu/ovmf-x86_64-ms-code.bin
-drive if=pflash,format=raw,file=/usr/share/qemu/ovmf-x86_64-ms-vars.bin
-drive file=/var/lib/libvirt/images/sles12sp2-uefi.qcow2,format=qcow2,if=none,id=drive-virtio-disk0
-device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x7,drive=drive-virtio-disk0,id=virtio-disk0
-device vfio-pci,host=41:00.0,id=hostdev0,multifunction=on,x-vga=on
-device vfio-pci,host=41:00.1,id=hostdev1
-usb -device usb-host,hostbus=2,hostaddr=2
-usb -device usb-host,hostbus=2,hostaddr=3
Xorg.0.log (41.7 KB)