could not install nvidia(k620) driver in a guest linux vm

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)

btw, the guest vm could run without nvidia driver, so I think my passthrough setup should be fine, it just crashed the screen when login with nvidia driver, still could ssh login though.

Is there a license requirement for nvdia driver vm ususage or need extra setup? Thanks

Any comments are appreciate it.

PCI passthrough is not supported on Quadro K620. Most Quadro GPUs support it, but the lowest end Quadro GPUs do not, in some cases.