Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jun 2022 01:50:25 +0700
From:      Eugene Grosbein <eugen@grosbein.net>
To:        Mario Marietto <marietto2008@gmail.com>, =?UTF-8?Q?Corvin_K=c3=b6hne?= <c.koehne@beckhoff.com>, FreeBSD virtualization <freebsd-virtualization@freebsd.org>, hackers@freebsd.org
Subject:   Re: how to run bhyve and virtualbox at the same time
Message-ID:  <62B9FBF1.6030906@grosbein.net>
In-Reply-To: <CA%2B1FSig5qQRcQMm8uJ0A%2BNO1485MXsh_fEjMtU55iF_Qk0jn8w@mail.gmail.com>
References:  <CA%2B1FSig5qQRcQMm8uJ0A%2BNO1485MXsh_fEjMtU55iF_Qk0jn8w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 26.06.2022 20:43, Mario Marietto wrote:
> Hello to everyone.
> 
> Just for educational purposes I've virtualized MacOS Monterey with Virtualbox in FreeBSD :
> 
> 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.

If you need to pass USB disk only (not other kinds of USB devices), then USB pass-through is not only way, there is another one:
you can pass block device without performance hit.

Optionally, in the /etc/devfs.rules:

[localrules=10]
add path 'da*' mode 0660 group vboxusers

So, any CAM-supported disks including USB-attached is writable by vboxusers group.

Then create VMDK link to actual device:

$ VBoxManage internalcommands createrawvmdk -filename $HOME/usbdisk.vmdk -rawdisk /dev/da1

Then attach VMDK to the VM as fixed HDD.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?62B9FBF1.6030906>