I am using a windows vm and attached actually three usb devices to vm. When I try di remove one usb device from vm an error message is thrown from virsh on command line.
Failed to remove USB device.
error: Failed to detach device from /tmp/virsh_usbn4uXED
error: XML Fehler: Invalid value for attribute 'id' in element 'vendor': '0x'. Expected integer value
virsh detach-device --domain Server-HP --file '/tmp/virsh_usbn4uXED' --persistent --config
OMV\Exception: Failed to remove USB device.
error: Failed to detach device from /tmp/virsh_usbn4uXED
error: XML Fehler: Invalid value for attribute 'id' in element 'vendor': '0x'. Expected integer value
virsh detach-device --domain Server-HP --file '/tmp/virsh_usbn4uXED' --persistent --config in /usr/share/openmediavault/engined/rpc/kvm.inc:2543
Stack trace:
#0 /usr/share/openmediavault/engined/rpc/kvm.inc(1798): OMVRpcServiceKvm->virshCommand(Array, 'Failed to remov...')
#1 [internal function]: OMVRpcServiceKvm->removeUsb(Array, Array)
#2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('removeUsb', Array, Array)
#4 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Kvm', 'removeUsb', Array, Array, 1)
#5 {main}
Seems some problem on plugin creating command line skript.
Is it generally possible to remove usb device on running kvm vm? Actually I shutdown VM but removing is still not possible. May be manually removing from vm xml file will be successfull.