From nobody Sun Jun 26 20:33:40 2022 X-Original-To: freebsd-virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 48E6D873BBF; Sun, 26 Jun 2022 20:34:17 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-yw1-x1129.google.com (mail-yw1-x1129.google.com [IPv6:2607:f8b0:4864:20::1129]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LWMyw4NCTz3Fkb; Sun, 26 Jun 2022 20:34:16 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-3176b6ed923so67897657b3.11; Sun, 26 Jun 2022 13:34:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1MiliiF5LB6IugTrU8Ppmm5G3+YfvvsWVpR5Jyc6OMQ=; b=nEsmmkQnuwfIFhC6TOlWMiQ4b5L5G4sJH0n7DiBokZIyrcdSR20CoX84ppac4kpwzk 6svMNt43v3J3Eaua0HLk+5N/K+ZBXB7DYgMaPe7eVhmpCiJ6O6tiL9VWOhqERBevAWhj PdxJScX9zZqFxC+93ZZbk3f+KR2iONMfb7CXUEZAfNyLhQzHzpCZ+zN2mad/O129kBX4 SIVZDIJdyjHr2fbsiqT+gNB5oTFsRrOYvD1AL+Q6tzM5HUuInhrICrWLXQve+mtORNqO QlCtyNzETKz4Tn5foPDPN2jMIwzoiIeckTE+Myy31ahaR6HTpkU4kYXIkaR61pF90RjA FQBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1MiliiF5LB6IugTrU8Ppmm5G3+YfvvsWVpR5Jyc6OMQ=; b=3FtlLPQpzd3GJWNl4w2Nmk0jcCBubgNgQMNenw2KVoxx/3i4Ljm1popkOCl+LCeDdR Lx6rUh2/FWmojqYj6n7ji/OeOX2OBOBgJMlLXb8dBRprSLpgKRgHtuXjh8SUOZJsl++P VsI2vkOHlyeSfkzWuN0FD3eB3pKM5FxhNJY+5FSMqNTFJrRuzmbu6x6H/zax6gEjtyJD Vuj+tA8YUXqCHMzcKlv2PE71PmsbwUZMMffUKJ7BWmUBSJ5gACUb6557ZQ/IeKajkbMQ 7SlizNGWy73J9y9pwotBvoBpCQFm3Qp59KjsmuQATyPwpqlAztveKfomd5B/5xGZ4BRT Jx0g== X-Gm-Message-State: AJIora8tYxkdLmy16dT4rxq9BwGJs28edruL5QSZZNIzytY9m0DVHK2G 4dI8q+9DCs95EQC6+QCcbE+LZRfYNRsF3iEIw00= X-Google-Smtp-Source: AGRyM1ujysojotVCW4Bmed0jj0J/tJTb4xuxM5WhyYg3WTwrfXWBUgkNMRV9kHW30UVu7fg9R/3IdkNfI+SbQayWR4o= X-Received: by 2002:a0d:dd41:0:b0:318:3ac4:9b98 with SMTP id g62-20020a0ddd41000000b003183ac49b98mr11007362ywe.519.1656275655973; Sun, 26 Jun 2022 13:34:15 -0700 (PDT) List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Mario Marietto Date: Sun, 26 Jun 2022 22:33:40 +0200 Message-ID: Subject: Re: how to run bhyve and virtualbox at the same time To: Dustin Marquess Cc: =?UTF-8?Q?Corvin_K=C3=B6hne?= , FreeBSD virtualization , hackers@freebsd.org Content-Type: multipart/alternative; boundary="0000000000001fe0e205e25fba84" X-Rspamd-Queue-Id: 4LWMyw4NCTz3Fkb X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=nEsmmkQn; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of marietto2008@gmail.com designates 2607:f8b0:4864:20::1129 as permitted sender) smtp.mailfrom=marietto2008@gmail.com X-Spamd-Result: default: False [-3.56 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.89)[-0.892]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::1129:from]; NEURAL_HAM_SHORT(-0.67)[-0.669]; MLMMJ_DEST(0.00)[freebsd-virtualization,hackers]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N --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 : 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 >> 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
As far as I can see,bhyve can't run at the same t= ime with virtualbox. So,let's change perspective. What about changing t= he bhyve source code so that macOS can be virtualized directly in bhyve ?

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

=
=C2=A0 =C2=A0 <ExtraData>
=C2=A0 =C2=A0 =C2=A0 <ExtraDat= aItem name=3D"VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" = value=3D"Mac-551B86E5744E2388"/>
=C2=A0 =C2=A0 =C2=A0 <E= xtraDataItem name=3D"VBoxInternal/Devices/efi/0/Config/DmiSystemProduc= t" value=3D"MacBookPro15,1"/>
=C2=A0 =C2=A0 =C2=A0 <= ;ExtraDataItem name=3D"VBoxInternal/Devices/efi/0/Config/DmiSystemVers= ion" value=3D"1.0"/>
=C2=A0 =C2=A0 =C2=A0 <ExtraDat= aItem name=3D"VBoxInternal/Devices/smc/0/Config/DeviceKey" value= =3D"ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc&q= uot;/>
=C2=A0 =C2=A0 =C2=A0 <ExtraDataItem name=3D"VBoxIntern= al/Devices/smc/0/Config/GetKeyFromRealSMC" value=3D"1"/><= br>=C2=A0 =C2=A0 =C2=A0 <ExtraDataItem name=3D"VBoxInternal/TM/TSCM= ode" value=3D"RealTSCOffset"/>
=C2=A0 =C2=A0 =C2=A0 &l= t;ExtraDataItem name=3D"VBoxInternal2/EfiGraphicsResolution" valu= e=3D"1500x900"/>
=C2=A0 =C2=A0 </ExtraData>

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 uefi-firmware/BHYVE_BHF_CODE.fd should be patched heavily ? What else ?=

Il giorno dom 26 giu 2022 alle ore 20:47 Mario Mar= ietto <marietto2008@gmail.com<= /a>> 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 accompli= sh 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 c= ould be useful.
On Sun, Jun 26, 2022 at 8:45 AM Mario Marietto <<= a href=3D"mailto:marietto2008@gmail.com" target=3D"_blank">marietto2008@gma= il.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. Ev= en though there is no known USB over IP tool which can run natively on Free= BSD. For example I tried this one :

=
macOS supports CIFS (SMB) and NFS mounts natively, so that would proba= bly be the easiest. There's also a 9P client for macOS (=C2=A0https://github.co= m/benavento/mac9p ) and a 9P server for *IX (=C2=A0https://github.com/chaos/diod )= that you can use, instead of dealing with USB-over-IP.

-Dustin


--
Mario.
=


--
Mario.
--0000000000001fe0e205e25fba84--