From owner-freebsd-virtualization@FreeBSD.ORG Sun Dec 30 17:05:20 2012 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 59EAD2CE; Sun, 30 Dec 2012 17:05:20 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id 140828FC0A; Sun, 30 Dec 2012 17:05:19 +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 B874D11CC5; Mon, 31 Dec 2012 03:05:12 +1000 (EST) Received: from Peter-Grehans-MacBook-Pro.local (c-75-71-5-126.hsd1.co.comcast.net [75.71.5.126]) by dommail.onthenet.com.au (MOS 4.2.4-GA) with ESMTP id BIZ93242 (AUTH peterg@ptree32.com.au); Mon, 31 Dec 2012 03:05:09 +1000 Message-ID: <50E07436.4040105@freebsd.org> Date: Sun, 30 Dec 2012 10:04:54 -0700 From: Peter Grehan User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 MIME-Version: 1.0 To: Alfred Perlstein Subject: Re: question on bhyve + 9-stable References: <50E06701.7070409@mu.org> In-Reply-To: <50E06701.7070409@mu.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Junkmail-Info: RCVD_IN_SORBS_DUL,RDNS_DYNAMIC,SPF_SOFTFAIL X-Junkmail-Status: score=24/51, host=dommail.onthenet.com.au Cc: neel@freebsd.org, freebsd-virtualization@freebsd.org 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: Sun, 30 Dec 2012 17:05:20 -0000 Hi Alfred, > I only have 1 really fast machine, so I've decided to give bhyve a whirl > and try to do -stable development inside of a bhyve instance. Great ! > The problem I'm having is that: > 1) the 9.1-RELEASE image does not seem to boot because it can not mount > the rootfs (iso). I think this may be due to missing virtualization > modules. Yep, that's right. Michael Dexter has pre-built virtio modules at http://mirrors.nycbug.org/pub/BHyVe/r244024/ .. and I guess the long-term solution for running older FreeBSD releases is to have bhyve implement block/network device models that will be recognized. AHCI looks like a good pick for a block model: any input on a network device would be appreciated (e1000 does seem to stick out). > 2) building release iso from 9-stable, while it has the klds needed, the > image seems to causes the hypervisor to exit. That's the new TSC sync detection code, which does a CPUID with basically a random leaf value. bhyve should deal with that: a fix will be in when I'm back from vacation. But, in the meantime, there are two workarounds: - use single CPU only (-c 1), or - force the hard-coded hypervisor detection code in FreeBSD to trigger with a loader variable set smbios.bios.vendor="Bochs" ... and, since the TSC is actually OK, force the use of that as the timecounter set kern.timecounter.invariant_tsc=1 set kern.timecounter.smp_tsc=1 later, Peter.