Re: how to run bhyve and virtualbox at the same time

From: Mario Marietto <marietto2008_at_gmail.com>
Date: Sun, 26 Jun 2022 20:33:40 UTC
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.