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

[-- Attachment #1 --]
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.

[-- Attachment #2 --]
<div dir="ltr"><div>As far as I can see,bhyve can&#39;t run at the same time with virtualbox. So,let&#39;s change perspective. What about changing the bhyve source code so that macOS can be virtualized directly in bhyve ?<br></div><div><br></div><div>Below you can see what are the parameters needed to boot and run MacOS Monterey with virtualbox :<br></div><div><br></div><div>    &lt;ExtraData&gt;</div>      &lt;ExtraDataItem name=&quot;VBoxInternal/Devices/efi/0/Config/DmiBoardProduct&quot; value=&quot;Mac-551B86E5744E2388&quot;/&gt;<br>      &lt;ExtraDataItem name=&quot;VBoxInternal/Devices/efi/0/Config/DmiSystemProduct&quot; value=&quot;MacBookPro15,1&quot;/&gt;<br>      &lt;ExtraDataItem name=&quot;VBoxInternal/Devices/efi/0/Config/DmiSystemVersion&quot; value=&quot;1.0&quot;/&gt;<br>      &lt;ExtraDataItem name=&quot;VBoxInternal/Devices/smc/0/Config/DeviceKey&quot; value=&quot;ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc&quot;/&gt;<br>      &lt;ExtraDataItem name=&quot;VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC&quot; value=&quot;1&quot;/&gt;<br>      &lt;ExtraDataItem name=&quot;VBoxInternal/TM/TSCMode&quot; value=&quot;RealTSCOffset&quot;/&gt;<br>      &lt;ExtraDataItem name=&quot;VBoxInternal2/EfiGraphicsResolution&quot; value=&quot;1500x900&quot;/&gt;<br><div>    &lt;/ExtraData&gt;</div><div><br></div><div>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 <span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">uefi-firmware/BHYVE_BHF_CODE.fd should be patched heavily ? What else ? </span><br></span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno dom 26 giu 2022 alle ore 20:47 Mario Marietto &lt;<a href="mailto:marietto2008@gmail.com">marietto2008@gmail.com</a>&gt; ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="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 accomplish a task,<span lang="en">especially when I see that there would be some useful functions but that have not been explored,like a</span><span lang="en">n ingenious method to run virtualbox and bhyve at the same time,that could be useful.</span><span lang="en"></span><span lang="en"></span></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno dom 26 giu 2022 alle ore 20:29 Dustin Marquess &lt;<a href="mailto:dmarquess@gmail.com" target="_blank">dmarquess@gmail.com</a>&gt; ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">On Sun, Jun 26, 2022 at 8:45 AM Mario Marietto &lt;<a href="mailto:marietto2008@gmail.com" target="_blank">marietto2008@gmail.com</a>&gt; wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="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. Even though there is no known USB over IP tool which can run natively on FreeBSD. For example I tried this one :</div></div></blockquote><div><br></div><div>macOS supports CIFS (SMB) and NFS mounts natively, so that would probably be the easiest. There&#39;s also a 9P client for macOS ( <a href="https://github.com/benavento/mac9p" target="_blank">https://github.com/benavento/mac9p</a>; ) and a 9P server for *IX ( <a href="https://github.com/chaos/diod" target="_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="all"><br>-- <br><div dir="ltr">Mario.<br></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature">Mario.<br></div>

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