Bugzilla – Bug 1213499
libvirtd: When adding a host USB device & Start: "usb-host' is not a valid device model name"
Last modified: 2023-07-20 00:34:26 UTC
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0 Build Identifier: Unable to add any host USB devices to a KVM VM due to the above error, on the current MicroOS. Add any USB device, Run the VM, and immediately a window pops up with: Error starting domain: internal error: QEMU unexpectedly closed the monitor (vm='cygnus-old'): 2023-07-20T00:13:42.182489Z qemu-system-x86_64: -device {"driver":"usb-host","hostbus":3,"hostaddr":2,"id":"hostdev2","bus":"usb.0","port":"2"}: 'usb-host' is not a valid device model name Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/asyncjob.py", line 72, in cb_wrapper callback(asyncjob, *args, **kwargs) File "/usr/share/virt-manager/virtManager/asyncjob.py", line 108, in tmpcb callback(*args, **kwargs) File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn ret = fn(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/virt-manager/virtManager/object/domain.py", line 1425, in startup self._backend.create() File "/usr/lib64/python3.11/site-packages/libvirt.py", line 1373, in create raise libvirtError('virDomainCreate() failed') libvirt.libvirtError: internal error: QEMU unexpectedly closed the monitor (vm='cygnus-old'): 2023-07-20T00:13:42.182489Z qemu-system-x86_64: -device {"driver":"usb-host","hostbus":3,"hostaddr":2,"id":"hostdev2","bus":"usb.0","port":"2"}: 'usb-host' is not a valid device model name Reproducible: Always Steps to Reproduce: 1. In virt-manager add any host USB device. 2. Run the VM. 3. Profit with error. Actual Results: Error starting domain: internal error: QEMU unexpectedly closed the monitor (vm='cygnus-old'): 2023-07-20T00:13:42.182489Z qemu-system-x86_64: -device {"driver":"usb-host","hostbus":3,"hostaddr":2,"id":"hostdev2","bus":"usb.0","port":"2"}: 'usb-host' is not a valid device model name Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/asyncjob.py", line 72, in cb_wrapper callback(asyncjob, *args, **kwargs) File "/usr/share/virt-manager/virtManager/asyncjob.py", line 108, in tmpcb callback(*args, **kwargs) File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn ret = fn(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/virt-manager/virtManager/object/domain.py", line 1425, in startup self._backend.create() File "/usr/lib64/python3.11/site-packages/libvirt.py", line 1373, in create raise libvirtError('virDomainCreate() failed') libvirt.libvirtError: internal error: QEMU unexpectedly closed the monitor (vm='cygnus-old'): 2023-07-20T00:13:42.182489Z qemu-system-x86_64: -device {"driver":"usb-host","hostbus":3,"hostaddr":2,"id":"hostdev2","bus":"usb.0","port":"2"}: 'usb-host' is not a valid device model name Expected Results: Add the host USB device and start the VM.