how to run bhyve and virtualbox at the same time

From: Mario Marietto <marietto2008_at_gmail.com>
Date: Sun, 26 Jun 2022 13:43:53 UTC
Hello to everyone.

Just for educational purposes I've virtualized MacOS Monterey with
Virtualbox in FreeBSD :

[image: Screenshot_2022-06-26_15-32-51.jpg]

Now,the problem is that Virtualbox supports only USB 1.0 speed devices
because it does not support the USB 3.0/3.1 plugin/addon and since I use a
lot of USB disks and I transfer data between them,I can't have a low level
speed like that. So,I've thought of some ideas to overcome the problem.

My idea is to use a tool called USB over IP,sharing the USB disks I have
from an OS that can mount them to the MacOS that / which can't. At the
beginning my idea was to install the server part on a bhyve virtual
machine,let's say for example Linux or Windows.

----> But I've soon realized that I can't run both bhyve and VirtualBOX at
the same time.

So,I'm here to ask you if you know some patch,tricks,wrapper and so on,to
be able to do that.

If that can't be done,I'm forced to install the USB-IP server on FreeBSD
itself and the client on MacOS,but this makes the task more complicated to
accomplish. Even though there is no known USB over IP tool which can run
natively on FreeBSD. For example I tried this one :

www.virtualhere.com

I  tried to install it with the linuxulator and natively and I've got the
same output. Surprisingly it started,but unfortunately it reported another
error,telling that it can't find an IP protocol to communicate with the
client :

mario@marietto:/home/mario# ./vhusbdx86_64

VirtualHere USB Server is running...press CTRL-C to stop
setsockopt - IP_PKTINFO: Protocol not available


I wanted to explore what could be done to fix this bug and I've opened a
bug report here :

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264835


Later,I've got an email that pointed me here :


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264865


as you can read,someone replied,telling :

Here is an example of use:

https://github.com/jacktrip/jacktrip/blob/main/src/UdpDataProtocol.cpp#L297


I don't understand if he is talking about the "bug" that we are talking
about at the beginning. I mean this :

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264835

because I'm not a programmer so I don't see which correlation there is
between the two bug reports.

Furthermore I don't have any *UdpDataProtocol.cpp file *on my* FreeBSD
13.1-RELEASE *system. So,I don't know what to do now.

-- 
Mario.