From owner-freebsd-virtualization@FreeBSD.ORG Mon Jun 22 19:08:41 2015 Return-Path: Delivered-To: freebsd-virtualization@nevdull.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3AA46134 for ; Mon, 22 Jun 2015 19:08:41 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from alto.onthenet.com.au (alto2.onthenet.com.au [203.13.68.14]) by mx1.freebsd.org (Postfix) with ESMTP id ED920EC5 for ; Mon, 22 Jun 2015 19:08:40 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from iredmail.onthenet.com.au (iredmail.onthenet.com.au [203.13.68.150]) by alto.onthenet.com.au (Postfix) with ESMTP id 5862B126ED for ; Tue, 23 Jun 2015 05:08:39 +1000 (EST) Received: from localhost (iredmail.onthenet.com.au [127.0.0.1]) by iredmail.onthenet.com.au (Postfix) with ESMTP id 48ED6281FDF for ; Tue, 23 Jun 2015 05:08:39 +1000 (AEST) X-Amavis-Modified: Mail body modified (using disclaimer) - iredmail.onthenet.com.au Received: from iredmail.onthenet.com.au ([127.0.0.1]) by localhost (iredmail.onthenet.com.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2ikIASz_g9Ng for ; Tue, 23 Jun 2015 05:08:39 +1000 (AEST) Received: from Peters-MacBook-Pro.local (unknown [64.245.0.210]) by iredmail.onthenet.com.au (Postfix) with ESMTPSA id 8C8FD281FDE; Tue, 23 Jun 2015 05:08:36 +1000 (AEST) Message-ID: <55885D32.7040003@freebsd.org> Date: Mon, 22 Jun 2015 12:08:34 -0700 From: Peter Grehan User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Andriy Gapon CC: "freebsd-virtualization@freebsd.org" Subject: Re: bhyve -> grub-bhyve without intermediate destroy References: <55884A61.4080106@FreeBSD.org> In-Reply-To: <55884A61.4080106@FreeBSD.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.20 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: Mon, 22 Jun 2015 19:08:41 -0000 Hi Andriy, > This is what happens if I create and run a VM by using grub-bhyve and bhyve, > then exit from the VM via shutdown -r within it, and then try to run it again by > using grub-bhyve and bhyve: > > Assertion failed: (error == 0), function fbsdrun_addcpu, file > /usr/src/usr.sbin/bhyve/bhyverun.c, line 261 > > grub-bhyve apparently succeeds, but bhyve can't start up. > Both invocation of bhyve are with "-c 1". This was fixed in grub2-bhyve upstream with https://github.com/grehan-freebsd/grub2-bhyve/commit/370fa455d41212282bf63cea7b048e87a821a31a I'm gathering a few more fixes before doing a point release of grub2-bhyve, at which point the FreeBSD port will be updated. You'll need to do a 'bhyvectl --destroy' until then, or build grub2-bhyve from upstream. later, Peter.