From owner-freebsd-virtualization@FreeBSD.ORG Wed Nov 27 04:49:13 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 ESMTPS id 24B5B80B for ; Wed, 27 Nov 2013 04:49:13 +0000 (UTC) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id DE8F32656 for ; Wed, 27 Nov 2013 04:49:12 +0000 (UTC) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by alto.onthenet.com.au (Postfix) with ESMTPS id 1FAAB12179; Wed, 27 Nov 2013 14:49:11 +1000 (EST) Received: from Peters-MacBook-Pro.local (c-67-161-27-37.hsd1.ca.comcast.net [67.161.27.37]) by dommail.onthenet.com.au (MOS 4.2.4-GA) with ESMTP id BQJ17537 (AUTH peterg@ptree32.com.au); Wed, 27 Nov 2013 14:49:10 +1000 Message-ID: <529579CD.9010509@freebsd.org> Date: Tue, 26 Nov 2013 20:49:17 -0800 From: Peter Grehan User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Scott Pilz Subject: Re: bhyve - non *bsd guests References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.16 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: Wed, 27 Nov 2013 04:49:13 -0000 Hi Scott, > The error I'm getting is: > > VM unrestricted guest capability required > Error in initializing VM It's this one: > b) the CPU does not support what I'm trying to do Your 5570 CPU is a first-gen Nehalem. These models don't have 'unrestricted-guest' VT-x support which is required to run code in 16/32-bit mode with paging disabled. This feature arrived with Westmere and successors. grub-bhyve boots Linux and OpenBSD in 32-bit "flat" mode - protected mode with paging disabled. This can only work if unrestricted-guest is supported by the CPU. Other hypervisors work around this by using s/w instruction emulation until paging is enabled. You'll find the same error if you start up a FreeBSD VM with > 1 vCPU since the AP spinup code is started in 16-bit real mode. This doesn't show up with a single-vCPU FreeBSD guest since bhyveload sets up a 64-bit execution environment for the kernel. later, Peter.