Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Jun 2022 16:34:23 -0300
From:      Mario Lobo <lobo@bsd.com.br>
To:        hackers@freebsd.org
Cc:        freebsd-virtualization@freebsd.org
Subject:   Re: how to run bhyve and virtualbox at the same time
Message-ID:  <CA%2ByoEx_0=XiBq9xHu9SLbtWwswQ-h%2BxLmSGB6Yme8ZGvhzOvNQ@mail.gmail.com>
In-Reply-To: <62B9FBF1.6030906@grosbein.net>
References:  <CA%2B1FSig5qQRcQMm8uJ0A%2BNO1485MXsh_fEjMtU55iF_Qk0jn8w@mail.gmail.com> <62B9FBF1.6030906@grosbein.net>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Mon, Jun 27, 2022 at 4:00 PM Eugene Grosbein <eugen@grosbein.net> wrote:

> 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.
>
>
>
You don't need to go that far.

You can share any local mounted disk with the virtualbox SharedFolder
option.
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!]

[-- Attachment #2 --]
<div dir="ltr"><div><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 27, 2022 at 4:00 PM Eugene Grosbein &lt;<a href="mailto:eugen@grosbein.net">eugen@grosbein.net</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 26.06.2022 20:43, Mario Marietto wrote:<br>
&gt; Hello to everyone.<br>
&gt; <br>
&gt; Just for educational purposes I&#39;ve virtualized MacOS Monterey with Virtualbox in FreeBSD :<br>
&gt; <br>
&gt; Screenshot_2022-06-26_15-32-51.jpg<br>
&gt; <br>
&gt; 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&#39;t have a low level speed like that. So,I&#39;ve thought of some ideas to overcome the problem.<br>
<br>
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:<br>
you can pass block device without performance hit.<br>
<br>
Optionally, in the /etc/devfs.rules:<br>
<br>
[localrules=10]<br>
add path &#39;da*&#39; mode 0660 group vboxusers<br>
<br>
So, any CAM-supported disks including USB-attached is writable by vboxusers group.<br>
<br>
Then create VMDK link to actual device:<br>
<br>
$ VBoxManage internalcommands createrawvmdk -filename $HOME/usbdisk.vmdk -rawdisk /dev/da1<br>
<br>
Then attach VMDK to the VM as fixed HDD.<br>
<br>
<br>
</blockquote></div><br clear="all"></div>You don&#39;t need to go that far.<br><br></div>You can share any local mounted disk with the virtualbox SharedFolder option.<br><div><div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Mario Lobo<br><a href="http://www.mallavoodoo.com.br" target="_blank">http://www.mallavoodoo.com.br</a><br>FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!]</div></div></div></div></div></div>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2ByoEx_0=XiBq9xHu9SLbtWwswQ-h%2BxLmSGB6Yme8ZGvhzOvNQ>