Hi there
I'm making the transition from opnsense (bsd based) firewall to openwrt because I need a virtualized machine running on the firewall host and altough bhyve is working, usb passthru doesn't and I need it (plus the fact that FreeBSD is slower at routing packets than linux, I loose at max about 30 MB/s or 240 Mb/s with opnsense compared to openwrt on a Gb link)
So my next move i was to install openwrt on my x86 hardware and setup qemu with this guide :
all went ok, but usb passthru isnt working either, when I launch the vm, I got this message :
qemu-system-x86_64: -device usb-host,vendorid=0x12d1,productid=0x1001: 'usb-host' is not a valid device model name
I'm launching qemu with this command :
qemu-system-x86_64 -m 512M \
-machine q35 \
-enable-kvm -cpu kvm64 -smp 2 \
-bios /mnt/sda3/vm/uefi-firmware/ovmf-x64/OVMF-pure-efi.fd \
-drive file=/mnt/sda3/vm/debian/debian8go.img,format=raw,if=virtio \
-device virtio-net-pci,mac==E2:F2:6A:01:9D:C9,netdev=br0 \
-netdev bridge,br=br-lan,id=br0 \
-device usb-host,vendorid=0x12d1,productid=0x1001 \
-nographic
Surely enough, removing the line with usb make the vm start but then without usb passthru
While searching the web I came accross some talks about this message saying that it's because qemu has been build without usb support
From qemu-1.7 release version, the old usb-host(host-linux.c) had been removed,
re-implemented by libusbx. So you should build qemu with --enable-libusb, then
you can use usb pass-through capacity.
so my question is : does the qemu provided in packages of 18.06.2 has been built with --enable-libusb or not ?
If not, cou you fix it or provide instructions to recompile qemu with the proper usb support ?
Additionnal question : Why oh why the provided qemu is so old, current version is 4.0.0 while in the latest stable openwrt 18.06.2, it's 2.11.1 ?
thanks