vm-bhyve
vm-bhyve copied to clipboard
How to passthru a usb device to guest?
Host is FreeBSD12.2 Guest is Windows10
Android phone is plugged into the computer, how can I debug android app on windows?
@bleakwind so this is a limit in the underlying FreeBSD bhyve virtualization, only PCIe devices can be passed through, not individual USB. See https://wiki.freebsd.org/bhyve/pci_passthru
And for vm-bhyve man page
passthru
The passthru command lists all PCI devices in the system, the
device ID required for bhyve, and whether the device is currently
ready to be used by a guest. In order to make a device ready, it
needs to be reserved on boot by adding the device ID to the
pptdevs variable in /boot/loader.conf.
Once a device is ready, it can be assigned to a guest by adding
passthruX="{ID}" to the guest's configuration file. X should be
an integer starting at 0 for the first passthrough device.
More details can be found in the bhyve wiki.