Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jun 2022 10:29:29 +0100
From:      David Chisnall <theraven@FreeBSD.org>
To:        freebsd-hackers@freebsd.org
Subject:   Re: how to run bhyve and virtualbox at the same time
Message-ID:  <d76307e6-1e14-f58c-2d70-115b2d7cd5b2@FreeBSD.org>
In-Reply-To: <CA%2B1FSihK9Q4cmthTyGb_TQLN_LOC%2B2GAiFoOOukQHGQ0Scuzsw@mail.gmail.com>
References:  <CA%2B1FSig5qQRcQMm8uJ0A%2BNO1485MXsh_fEjMtU55iF_Qk0jn8w@mail.gmail.com> <62B9FBF1.6030906@grosbein.net> <CA%2B1FSihK9Q4cmthTyGb_TQLN_LOC%2B2GAiFoOOukQHGQ0Scuzsw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 27/06/2022 20:41, Mario Marietto wrote:
> 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.

On macOS, VirtualBox can coexist with other hypervisors because it does 
not provide a kernel module (it is not allowed to on recent macOS) but 
is, instead, layered on top of Apple's Hypervisor framework.

bhyve has also been ported to sit on top of Apple's Hypervisor framework 
(xhyve, used by Docker) and I believe that the abstractions provided by 
the bhyve kernel module are fairly similar.

It should be possible to port VirtualBox to sit on top of vmm.ko.  I 
have not been able to find any documentation of the vmm(4) ioctls other 
than the source code, so I'd imagine that about 2/3 of this work would 
be documenting the kernel interfaces.

David



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d76307e6-1e14-f58c-2d70-115b2d7cd5b2>