关于显卡直通的问题
环境
我的环境是Thinkstations20
cpu是x5670 支持 VT-x
内存是8*3
显卡是hd5500和Gtx650Ti
OS:openSUSE leap 42.3
我的目的是什么
我的目的是可以让我的宿主机作为日常开的机器使用
再开一台WIndows的虚拟机使用kvm 显卡直通去使用这个Gtx650ti的显卡从而实现日常的剪辑视频,和coding
目前的问题是
我现在已屏蔽了Gtx650Ti
04:00.0 VGA compatible controller: NVIDIA Corporation GK106 [GeForce GTX 650 Ti] (rev a1)
Subsystem: ZOTAC International (MCO) Ltd. Device 4292
Kernel driver in use: vfio-pci
Kernel modules: nouveau
04:00.1 Audio device: NVIDIA Corporation GK106 HDMI Audio Controller (rev a1)
Subsystem: ZOTAC International (MCO) Ltd. Device 4292
Kernel driver in use: vfio-pci
Kernel modules: snd_hda_intel
但是我去分配这个显卡设备然后启动虚拟机的时候就会出现无法启动下面这个是日志输出
2018-11-04 12:29:52.246+0000: starting up libvirt version: 3.3.0, qemu version: 2.9.1(openSUSE Leap 42.3), hostname: chaos-pc
LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin QEMU_AUDIO_DRV=none /usr/bin/qemu-kvm -name guest=win10-2,debug-threads=on -S -object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-6-win10-2/master-key.aes -machine pc-i440fx-2.9,accel=kvm,usb=off,vmport=off,dump-guest-core=off -cpu Westmere,hv_time,hv_relaxed,hv_vapic,hv_spinlocks=0x1fff -m 4096 -realtime mlock=off -smp 2,sockets=2,cores=1,threads=1 -uuid aadd4d8b-29bc-40f3-9389-da1faae73eb5 -display none -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-6-win10-2/monitor.sock,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=localtime,driftfix=slew -global kvm-pit.lost_tick_policy=delay -no-hpet -no-reboot -global PIIX4_PM.disable_s3=1 -global PIIX4_PM.disable_s4=1 -boot strict=on -device ich9-usb-ehci1,id=usb,bus=pci.0,addr=0x3.0x7 -device ich9-usb-uhci1,masterbus=usb.0,firstport=0,bus=pci.0,multifunction=on,addr=0x3 -device ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pci.0,addr=0x3.0x1 -device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pci.0,addr=0x3.0x2 -device lsi,id=scsi0,bus=pci.0,addr=0x4 -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x5 -drive file=/kvm/disk/win10.qcow2,format=raw,if=none,id=drive-scsi0-0-0,cache=unsafe -device scsi-hd,bus=scsi0.0,scsi-id=0,drive=drive-scsi0-0-0,id=scsi0-0-0,bootindex=2 -drive file=/kvm/iso/cn_windows_10_enterprise_ltsc_2019_x64_dvd_2efc9ac2.iso,format=raw,if=none,id=drive-ide0-0-1,readonly=on -device ide-cd,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1,bootindex=1 -netdev tap,fd=25,id=hostnet0 -device rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:4c:34:72,bus=pci.0,addr=0x2 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -chardev spicevmc,id=charchannel0,name=vdagent -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.spice.0 -device usb-tablet,id=input0,bus=usb.0,port=1 -chardev spicevmc,id=charredir0,name=usbredir -device usb-redir,chardev=charredir0,id=redir0,bus=usb.0,port=2 -chardev spicevmc,id=charredir1,name=usbredir -device usb-redir,chardev=charredir1,id=redir1,bus=usb.0,port=3 -device vfio-pci,host=04:00.0,id=hostdev0,bus=pci.0,addr=0x6 -device vfio-pci,host=04:00.1,id=hostdev1,bus=pci.0,addr=0x7,rombar=0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x8 -msg timestamp=on
2018-11-04T12:29:52.335429Z qemu-system-x86_64: -chardev pty,id=charserial0: char device redirected to /dev/pts/2 (label charserial0)
2018-11-04T12:29:52.365298Z qemu-system-x86_64: -device vfio-pci,host=04:00.0,id=hostdev0,bus=pci.0,addr=0x6: vfio error: 0000:04:00.0: failed to setup container for group 14: failed to set iommu for container: Operation not permitted
2018-11-04 12:29:52.430+0000: shutting down, reason=failed
我看到这里的日志片段是
vfio error: 0000:04:00.0: failed to setup container for group 14: failed to set iommu for container: Operation not permitted
我应该检查哪里可以获取帮助呢?谢谢