由于在Ubuntu上没有对HD60 Pro的驱动程序支持,因此我想创建Windows 10 VM并通过捕获卡。

qemuqemu-kvmvirt-managerdmesg | grep 'IOMMU enabled'

这些是我的PCI设备...

$ lspcia
00:00.0 Host bridge: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers (rev 07)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) (rev 07)
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
00:14.0 USB controller: Intel Corporation 200 Series/Z370 Chipset Family USB 3.0 xHCI Controller
00:16.0 Communication controller: Intel Corporation 200 Series PCH CSME HECI #1
00:17.0 SATA controller: Intel Corporation 200 Series PCH SATA controller [AHCI mode]
00:1b.0 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #17 (rev f0)
00:1b.2 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #19 (rev f0)
00:1b.3 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #20 (rev f0)
00:1b.4 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #21 (rev f0)
00:1c.0 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #1 (rev f0)
00:1c.2 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #3 (rev f0)
00:1c.4 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #5 (rev f0)
00:1d.0 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #9 (rev f0)
00:1f.0 ISA bridge: Intel Corporation Z370 Chipset LPC/eSPI Controller
00:1f.2 Memory controller: Intel Corporation 200 Series/Z370 Chipset Family Power Management Controller
00:1f.3 Audio device: Intel Corporation 200 Series PCH HD Audio
00:1f.4 SMBus: Intel Corporation 200 Series/Z370 Chipset Family SMBus Controller
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (2) I219-V
01:00.0 VGA compatible controller: NVIDIA Corporation GP107 [GeForce GTX 1050 Ti] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GP107GL High Definition Audio Controller (rev a1)
07:00.0 Multimedia controller: YUAN High-Tech Development Co., Ltd. Device 0380
YUAN High-Tech Development Co., Ltd. Device

但是,当我尝试添加设备时,启动VM时系统冻结了。我重新启动并尝试启动VM,但是系统再次冻结。

这也是可重复的:我可以创建一个新的VM并通过此YUAN设备,但是每当我尝试启动VM时它都会冻结。

如果我再次删除设备并启动VM,则会引发错误:

Error starting domain: internal error: Process exited prior to exec: libvirt:  error : unable to set AppArmor profile 'libvirt-318bbb3b-3e45-4ed9-9d77-7310bdb5d222' for '/usr/bin/qemu-system-x86_64': No such file or directory
sudo rm /etc/apparmor.d/libvirt/libvirt*

系统:

  • 操作系统:Ubuntu 20.04.1 LTS(64 bit)
  • 采集卡:Elgato HD60 Pro
  • 处理器:Intel Core i5-8600K
  • 主板:技嘉Z370 HD3
  • GPU:NVIDIA GeForce GTX 1050 Ti