Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jun 2022 22:33:40 +0200
From:      Mario Marietto <marietto2008@gmail.com>
To:        Dustin Marquess <dmarquess@gmail.com>
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%2B1FSiivuzyQvR7%2Bun2CYJntRQ6TsN=2Si52TDLnEhYMaLVqRA@mail.gmail.com>
In-Reply-To: <CA%2B1FSii0ZGHZefs07A6yL8p_wbL_1MajWpi4we7CnDF2WcrG=Q@mail.gmail.com>
References:  <CA%2B1FSig5qQRcQMm8uJ0A%2BNO1485MXsh_fEjMtU55iF_Qk0jn8w@mail.gmail.com> <CAJpsHY4u8DyuJfGRN%2BsdeO%2BL1wOSXvpMRagsEBOPP3rp6tCUEw@mail.gmail.com> <CA%2B1FSii0ZGHZefs07A6yL8p_wbL_1MajWpi4we7CnDF2WcrG=Q@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000001fe0e205e25fba84
Content-Type: text/plain; charset="UTF-8"

As far as I can see,bhyve can't run at the same time with virtualbox.
So,let's change perspective. What about changing the bhyve source code so
that macOS can be virtualized directly in bhyve ?

Below you can see what are the parameters needed to boot and run MacOS
Monterey with virtualbox :

    <ExtraData>
      <ExtraDataItem
name="VBoxInternal/Devices/efi/0/Config/DmiBoardProduct"
value="Mac-551B86E5744E2388"/>
      <ExtraDataItem
name="VBoxInternal/Devices/efi/0/Config/DmiSystemProduct"
value="MacBookPro15,1"/>
      <ExtraDataItem
name="VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" value="1.0"/>
      <ExtraDataItem name="VBoxInternal/Devices/smc/0/Config/DeviceKey"
value="ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"/>
      <ExtraDataItem
name="VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" value="1"/>
      <ExtraDataItem name="VBoxInternal/TM/TSCMode" value="RealTSCOffset"/>
      <ExtraDataItem name="VBoxInternal2/EfiGraphicsResolution"
value="1500x900"/>
    </ExtraData>

I already know that bhyve does not support them,but how much work is needed
to give to bhyve the ability to accept them ? Most of them are EFI
related,so I presume that the file uefi-firmware/BHYVE_BHF_CODE.fd should
be patched heavily ? What else ?

Il giorno dom 26 giu 2022 alle ore 20:47 Mario Marietto <
marietto2008@gmail.com> ha scritto:

> Sure,I knew about CIFS and NFS,but I didn't think about a 9P client.
> Anyway,who told you that I'm looking for the easiest route ? Sometimes I
> like to explore more exotic methods to try to accomplish a task,especially
> when I see that there would be some useful functions but that have not been
> explored,like an ingenious method to run virtualbox and bhyve at the same
> time,that could be useful.
>
> Il giorno dom 26 giu 2022 alle ore 20:29 Dustin Marquess <
> dmarquess@gmail.com> ha scritto:
>
>> On Sun, Jun 26, 2022 at 8:45 AM Mario Marietto <marietto2008@gmail.com>
>> wrote:
>>
>>> 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 :
>>>
>>
>> macOS supports CIFS (SMB) and NFS mounts natively, so that would probably
>> be the easiest. There's also a 9P client for macOS (
>> https://github.com/benavento/mac9p ) and a 9P server for *IX (
>> https://github.com/chaos/diod ) that you can use, instead of dealing
>> with USB-over-IP.
>>
>> -Dustin
>>
>
>
> --
> Mario.
>


-- 
Mario.

--0000000000001fe0e205e25fba84
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>As far as I can see,bhyve can&#39;t run at the same t=
ime with virtualbox. So,let&#39;s change perspective. What about changing t=
he bhyve source code so that macOS can be virtualized directly in bhyve ?<b=
r></div><div><br></div><div>Below you can see what are the parameters neede=
d to boot and run MacOS Monterey with virtualbox :<br></div><div><br></div>=
<div>=C2=A0 =C2=A0 &lt;ExtraData&gt;</div>=C2=A0 =C2=A0 =C2=A0 &lt;ExtraDat=
aItem name=3D&quot;VBoxInternal/Devices/efi/0/Config/DmiBoardProduct&quot; =
value=3D&quot;Mac-551B86E5744E2388&quot;/&gt;<br>=C2=A0 =C2=A0 =C2=A0 &lt;E=
xtraDataItem name=3D&quot;VBoxInternal/Devices/efi/0/Config/DmiSystemProduc=
t&quot; value=3D&quot;MacBookPro15,1&quot;/&gt;<br>=C2=A0 =C2=A0 =C2=A0 &lt=
;ExtraDataItem name=3D&quot;VBoxInternal/Devices/efi/0/Config/DmiSystemVers=
ion&quot; value=3D&quot;1.0&quot;/&gt;<br>=C2=A0 =C2=A0 =C2=A0 &lt;ExtraDat=
aItem name=3D&quot;VBoxInternal/Devices/smc/0/Config/DeviceKey&quot; value=
=3D&quot;ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc&q=
uot;/&gt;<br>=C2=A0 =C2=A0 =C2=A0 &lt;ExtraDataItem name=3D&quot;VBoxIntern=
al/Devices/smc/0/Config/GetKeyFromRealSMC&quot; value=3D&quot;1&quot;/&gt;<=
br>=C2=A0 =C2=A0 =C2=A0 &lt;ExtraDataItem name=3D&quot;VBoxInternal/TM/TSCM=
ode&quot; value=3D&quot;RealTSCOffset&quot;/&gt;<br>=C2=A0 =C2=A0 =C2=A0 &l=
t;ExtraDataItem name=3D&quot;VBoxInternal2/EfiGraphicsResolution&quot; valu=
e=3D&quot;1500x900&quot;/&gt;<br><div>=C2=A0 =C2=A0 &lt;/ExtraData&gt;</div=
><div><br></div><div>I already know that bhyve does not support them,but ho=
w much work is needed to give to bhyve the ability to accept them ? Most of=
 them are EFI related,so I presume that the file <span style=3D"font-family=
:monospace"><span style=3D"color:rgb(0,0,0);background-color:rgb(255,255,25=
5)">uefi-firmware/BHYVE_BHF_CODE.fd should be patched heavily ? What else ?=
 </span><br></span></div></div><br><div class=3D"gmail_quote"><div dir=3D"l=
tr" class=3D"gmail_attr">Il giorno dom 26 giu 2022 alle ore 20:47 Mario Mar=
ietto &lt;<a href=3D"mailto:marietto2008@gmail.com">marietto2008@gmail.com<=
/a>&gt; ha scritto:<br></div><blockquote class=3D"gmail_quote" style=3D"mar=
gin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1=
ex"><div dir=3D"ltr">Sure,I knew about CIFS and NFS,but I didn&#39;t think =
about a 9P client. Anyway,who told you that I&#39;m looking for the easiest=
 route ? Sometimes I like to explore more exotic methods to try to accompli=
sh a task,<span lang=3D"en">especially when I see that there would be some =
useful functions but that have not been explored,like a</span><span lang=3D=
"en">n ingenious method to run virtualbox and bhyve at the same time,that c=
ould be useful.</span><span lang=3D"en"></span><span lang=3D"en"></span></d=
iv><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">Il =
giorno dom 26 giu 2022 alle ore 20:29 Dustin Marquess &lt;<a href=3D"mailto=
:dmarquess@gmail.com" target=3D"_blank">dmarquess@gmail.com</a>&gt; ha scri=
tto:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px=
 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D=
"ltr"><div dir=3D"ltr">On Sun, Jun 26, 2022 at 8:45 AM Mario Marietto &lt;<=
a href=3D"mailto:marietto2008@gmail.com" target=3D"_blank">marietto2008@gma=
il.com</a>&gt; wrote:<br></div><div class=3D"gmail_quote"><blockquote class=
=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg=
b(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div>If that can&#39;t be=
 done,I&#39;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. Ev=
en though there is no known USB over IP tool which can run natively on Free=
BSD. For example I tried this one :</div></div></blockquote><div><br></div>=
<div>macOS supports CIFS (SMB) and NFS mounts natively, so that would proba=
bly be the easiest. There&#39;s also a 9P client for macOS (=C2=A0<a href=
=3D"https://github.com/benavento/mac9p" target=3D"_blank">https://github.co=
m/benavento/mac9p</a> ) and a 9P server for *IX (=C2=A0<a href=3D"https://g=
ithub.com/chaos/diod" target=3D"_blank">https://github.com/chaos/diod</a>; )=
 that you can use, instead of dealing with USB-over-IP.</div><div><br></div=
><div>-Dustin</div></div></div>
</blockquote></div><br clear=3D"all"><br>-- <br><div dir=3D"ltr">Mario.<br>=
</div>
</blockquote></div><br clear=3D"all"><br>-- <br><div dir=3D"ltr" class=3D"g=
mail_signature">Mario.<br></div>

--0000000000001fe0e205e25fba84--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSiivuzyQvR7%2Bun2CYJntRQ6TsN=2Si52TDLnEhYMaLVqRA>