我正在尝试设置带有 GPU 直通功能的 Windows 10使用本指南。当我启动域时,它会抛出 KVM 内核错误。没有直通的 VM 运行正常。
ls -ld /dev/kvm 的输出
crw-rw-rw-+ 1 root kvm 10, 232 sep 8 17:42 /dev/kvm
/etc/udev/rules.d/65-kvm.rules 的内容
KERNEL=="kvm", GROUP="kvm", MODE="0666"
笔记:我必须自己创建这个文件
/var/log/libvirt/qemu/win10.log 的内容
...
-device ich9-intel-hda,id=sound0,bus=pcie.0,addr=0x1b \
-device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0,audiodev=audio1 \
-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 virtio-balloon-pci,id=balloon0,bus=pci.4,addr=0x0 \
-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
-msg timestamp=on
audio: Could not init `spice' audio driver
audio: warning: Using timer based audio emulation
Could not access KVM kernel module: Permission denied
2022-07-14T17:59:18.594088Z qemu-system-x86_64: -accel kvm: failed to initialize kvm: Permission denied
2022-07-14 17:59:18.676+0000: shutting down, reason=failed
2022-08-25 09:53:10.580+0000: shutting down, reason=failed
2022-09-08 13:58:04.803+0000: shutting down, reason=failed
2022-09-08 14:18:31.434+0000: shutting down, reason=failed
2022-09-08 14:32:29.145+0000: shutting down, reason=failed
2022-09-08 14:42:06.994+0000: shutting down, reason=failed
2022-09-08 14:44:22.631+0000: shutting down, reason=failed
2022-09-08 14:54:31.428+0000: shutting down, reason=failed
2022-09-08 15:15:21.686+0000: shutting down, reason=failed
2022-09-08 15:17:29.841+0000: shutting down, reason=failed
2022-09-08 15:42:04.487+0000: shutting down, reason=failed
其他日志似乎没有问题
在联想 Legion 5 15ACH6H 上尝试
这可能是由于 Spice 音频驱动程序未初始化造成的吗?