Hello! I need to create a VM and passthrought some host USB port to it. Sadly libvirt doesn’t support QEMU built-in feature to use -hostport argument (which was added 10 years ago…). I tried to add custom arguments to domain (qemu:commandline) but this didn’t work. When I just run qemu-system-x86_64 -device host-usb,hostbus=X,hostport=Y -usb everything works well. It seems like libvirt restricts some QEMU actions. How can I fix this? OS: Debian 12
this may help, if you’re using apparmour.
https://serverfault.com/questions/667426/pass-an-usb-hub-from-a-kvm-host-to-a-guest-with-libvirt