虚拟机管理器错误(未找到 USB 设备)

虚拟机管理器错误(未找到 USB 设备)

QEMU/KVM 上的虚拟机管理器不加载 Windows 10 客户机。

显示此消息:

Error starting domain: internal error: Did not find USB device 4e8:3413


Details:
Error starting domain: internal error: Did not find USB device 4e8:3413

Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 90, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 126, in tmpcb
callback(*args, **kwargs)
File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 83, in newfn
ret = fn(self, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/domain.py", line 1402, in startup
self._backend.create()
File "/usr/lib/python2.7/dist-packages/libvirt.py", line 1035, in create
if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirtError: internal error: Did not find USB device 4e8:3413

答案1

解决了

这就是我修复它的方法:

virsh edit <vmname># 启动 emacs(或者对于真正聪明的人来说是 vim)和 vm 的 xml

-- added  startupPolicy='optional' to the <source> line as below

  <hostdev mode='subsystem' type='usb' managed='yes'>
       <source startupPolicy='optional'>
         <vendor id='0x03f0'/>
         <product id='0x4217'/>
       </source>
     </hostdev>

相关内容