ppggff / vagrant-qemu

Use Vagrant to manage machines using QEMU. Test with Apple Silicon / M1 and CentOS aarch64 image
MIT License
408 stars 32 forks source link

USB Forwarding? #43

Closed andronat closed 10 months ago

andronat commented 1 year ago

Is it possible to attach usb from MacOS? I'm running Apple Silicon M1 on Ventura 13.3?

ppggff commented 1 year ago

What kind of usb device is it?

andronat commented 1 year ago

It's a serial adapter like this one. I'm using it for some IoT device developing.

andronat commented 1 year ago

I case someone is interested this is how I attached a usb device:

qe.extra_qemu_args = %W[-usb -device qemu-xhci -device usb-host,vendorid=0x<vendorid here>,productid=0x<productid here>,]