From owner-freebsd-virtualization@FreeBSD.ORG Tue Aug 6 23:17:11 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id D4EE6FB4 for ; Tue, 6 Aug 2013 23:17:11 +0000 (UTC) (envelope-from mailinglists@debank.tv) Received: from smtpout300.onlinespamfilter.nl (smtpout300.onlinespamfilter.nl [IPv6:2001:4cb8:1:1620:217:21:240:161]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 936AC2A4F for ; Tue, 6 Aug 2013 23:17:11 +0000 (UTC) Received: from smtp.onlinespamfilter.nl (localhost [127.0.0.1]) by smtp.onlinespamfilter.nl (Postfix) with ESMTP id 76BB620AA8 for ; Wed, 7 Aug 2013 01:19:13 +0200 (CEST) Received: from smtp.debank.tv (145-158-ftth.on.nl [88.159.158.145]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.onlinespamfilter.nl (Postfix) with ESMTPS for ; Wed, 7 Aug 2013 01:19:13 +0200 (CEST) Received: from smtp.debank.tv (smtp.debank.tv [172.16.143.25]) by smtp.debank.tv (Postfix) with ESMTP id AD952323F55 for ; Wed, 7 Aug 2013 01:17:07 +0200 (CEST) Received: from debank.tv (roundcube.debank.tv [172.16.143.41]) by smtp.debank.tv (Postfix) with ESMTP id 72A6D323F18 for ; Wed, 7 Aug 2013 01:17:07 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 07 Aug 2013 11:17:07 +1200 From: mailinglists@debank.tv To: freebsd-virtualization@freebsd.org Subject: Re: bhyve and virtualbox on the same host using EPT In-Reply-To: <52018166.7050004@freebsd.org> References: <1f2844d8e1f5f5f931811be351f19bd9@debank.tv> <52018166.7050004@freebsd.org> Message-ID: X-Sender: mailinglists@debank.tv User-Agent: Roundcube Webmail/0.8.6 X-Virus-Scanned: ClamAV using ClamSMTP @ debank.tv X-OSF-Virus: CLEAN X-OSF-SUM: 4301b54191f685fe22873c6f2956af02 X-OSF-Info: Checked for spam and viruses X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Aug 2013 23:17:11 -0000 On 2013-08-07 11:06, Peter Grehan wrote: > Hi Rob, > >> Bhyve generates the following error after the bootloader screen: >> >> ----------------------------------------------------- >> Booting... >> 4 vCPUs requested but only 1 available >> ----------------------------------------------------- > > What this means is that the model of CPU that you have doesn't > support the "unrestricted guest" feature, which allows a guest to run > in 16-bit mode. > > bhyve boots FreeBSD directly into 64-bit mode on the main CPU, but > secondary CPUs are started through a boostrap from 16-bit mode to > 64-bit mode. There was a hack early on in bhyve to avoid this by > starting the secondaries directly in 64-bit mode, but it was bhyve- > and FreeBSD-specific and difficult to maintain. Given that there was > only a small timeframe of CPUs that supported EPT but not unrestricted > guest (early Nehalems), we decided to the 64-bit AP spinup. > > You can still run single vCPU guests though. > >> The Virtualbox logs below show EPT in use: > > On the issue of running VBox and bhyve at the same time: that's not > recommended and will probably result in a crash. To do this requires > cooperation from hypervisors in that they will completely flush state > any time they could be context-switched away to avoid the other > hypervisor's state from colliding. This results in poor performance > which is why it usually isn't done by default. > > I think we know how to fix this in bhyve, but aren't there yet. > > later, > > Peter. > > Peter, Thanks for your answer, this clears things up, I was under the impression that EPT support automatically included the "unrestricted guest" feature. Unfortunately I'll have to stick with Virtualbox as I need multiple CPU support for my vm's. Thanks for the great software though, I'll be back running bHyve once I get my hands on a more capable machine! Thanks, Rob Evers