Date: Mon, 27 Jun 2022 21:41:38 +0200 From: Mario Marietto <marietto2008@gmail.com> To: Eugene Grosbein <eugen@grosbein.net> Cc: =?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: <CA%2B1FSihK9Q4cmthTyGb_TQLN_LOC%2B2GAiFoOOukQHGQ0Scuzsw@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
--000000000000e4654805e2731d7b Content-Type: text/plain; charset="UTF-8" I did it already and it works. Fact is that if I use virtualbox I can't use bhyve at the same time. So It's not a good idea to use only virtualbox machines. Il giorno lun 27 giu 2022 alle ore 21:01 Eugene Grosbein <eugen@grosbein.net> ha scritto: > 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. > > > -- Mario. --000000000000e4654805e2731d7b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">I did it already and it works. Fact is that if I use virtu= albox I can't use bhyve at the same time. So It's not a good idea t= o use only virtualbox machines.<br></div><br><div class=3D"gmail_quote"><di= v dir=3D"ltr" class=3D"gmail_attr">Il giorno lun 27 giu 2022 alle ore 21:01= Eugene Grosbein <<a href=3D"mailto:eugen@grosbein.net">eugen@grosbein.n= et</a>> ha scritto:<br></div><blockquote class=3D"gmail_quote" style=3D"= margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-lef= t:1ex">On 26.06.2022 20:43, Mario Marietto wrote:<br> > Hello to everyone.<br> > <br> > Just for educational purposes I've virtualized MacOS Monterey with= Virtualbox in FreeBSD :<br> > <br> > Screenshot_2022-06-26_15-32-51.jpg<br> > <br> > 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 l= evel speed like that. So,I've thought of some ideas to overcome the pro= blem.<br> <br> If you need to pass USB disk only (not other kinds of USB devices), then US= B 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=3D10]<br> add path 'da*' 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 -r= awdisk /dev/da1<br> <br> Then attach VMDK to the VM as fixed HDD.<br> <br> <br> </blockquote></div><br clear=3D"all"><br>-- <br><div dir=3D"ltr" class=3D"g= mail_signature">Mario.<br></div> --000000000000e4654805e2731d7b--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSihK9Q4cmthTyGb_TQLN_LOC%2B2GAiFoOOukQHGQ0Scuzsw>