From owner-freebsd-virtualization@FreeBSD.ORG Tue Aug 19 16:13:09 2014 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 E9A9674F; Tue, 19 Aug 2014 16:13:08 +0000 (UTC) Received: from mail-la0-x22d.google.com (mail-la0-x22d.google.com [IPv6:2a00:1450:4010:c03::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3EC3430DC; Tue, 19 Aug 2014 16:13:08 +0000 (UTC) Received: by mail-la0-f45.google.com with SMTP id ty20so6116134lab.32 for ; Tue, 19 Aug 2014 09:13:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=KPKtZtARCb9WvgrDP8vMfY13xNYtymSukoIDdBsxTLs=; b=NUDHFCtQM5wCEtYUoqJoA6nxcuiiEN2lAijHQe5E7/3XtyG6j+X1Nf94/7dAHeFBOQ kdJExSfrY6Y+YYn2ew7p0fU1Ox5kyzivF8kXOtYKV8ZToaSiwaJstYyjhiGZgLNP0DnN HdCCmgrEyi0abWFEfaAXPgbr74Yrj7J7jN6E2aPwrdPyXQ8D55KUxHeISOjwWVATe03Z I3oytxjHalK1U8oR8FI5K+Uss2dv2UJIMKD05s8Qc2FTr6B0yuDou+cPE3y78NXOBLoo /9kcel9zLekx75kWEweOfrX2vHizgCD8Dr5ul+1D8Qeag6QDgGC7CNixVZhfMo/Mv+oF h7iw== X-Received: by 10.112.34.78 with SMTP id x14mr35612340lbi.38.1408464785475; Tue, 19 Aug 2014 09:13:05 -0700 (PDT) Received: from kloomba ([77.94.197.103]) by mx.google.com with ESMTPSA id go8sm32746265lbc.8.2014.08.19.09.13.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Aug 2014 09:13:04 -0700 (PDT) Sender: Roman Bogorodskiy Date: Tue, 19 Aug 2014 20:11:58 +0400 From: Roman Bogorodskiy To: John Nielsen Subject: Re: libvirt and rebooting of a bhyve VM Message-ID: <20140819161156.GC62903@kloomba> References: <20140819154035.GA62903@kloomba> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DIOMP1UsTsWJauNi" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 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, 19 Aug 2014 16:13:09 -0000 --DIOMP1UsTsWJauNi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable John Nielsen wrote: > On Aug 19, 2014, at 9:40 AM, Roman Bogorodskiy wrote: >=20 > > Craig Rodrigues wrote: > >=20 > >> Roman, > >>=20 > >> I am using libvirt and bhyve according to this XML: > >> http://libvirt.org/drvbhyve.html > >> and it works great. > >> I gave a presentation at BAFUG on this: > >> http://www.slideshare.net/CraigRodrigues1/libvirt-bhyve > >>=20 > >> I have one question. If I reboot the bhyve VM started with libvirt > >> with "shutdown -r now", > >> the VM shuts down, but it does not restart. > >>=20 > >> How can I get the machine to reboot with "shutdown -r now" when > >> started with libvirt? > >=20 > > Hi Craig, > >=20 > > Unfortunately, I'm not sure how to get the reboot working. Moreover, I > > get the same behaviour when starting bhyve manually -- when I do a > > reboot, bhyve(8) exits as soon as the system is ready to restart. > >=20 > > So looks like that's a default bhyve behaviour or I'm missing something? >=20 > Wasn't changing this the intention of r267216 (MFCed as r270071)? >=20 > Roman, was your 10-STABLE built after that revision? Thanks for pointing at this commit. My -STABLE is older than that so I'll need to update. Anyway, if it works without restarting bhyve(8) then it should work in libvirt 'for free'. :) Roman Bogorodskiy --DIOMP1UsTsWJauNi Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (FreeBSD) iQEcBAEBAgAGBQJT83dMAAoJEMltX/4IwiJqZbsH/3Cu4zucJJOtYFctCxGVPDTj WYbbcrdSLIOBhBD60UlgXP6HXTz46JEP6/7OQLKqFUJrO0eih8dJelD9WESzQc6w AJMYphk+lYhGQasUUL9YlKweU+onBcNltdDWQCLzkNdHTDAzQxmjZ2NFMVx/DbAs k/hQXyBKnPGJSBJUNmCoqXzQUpCIURMcSDQm3zovGSWBkusGFFDzuivxRTxBDHg0 h/ZVRh+lQfsYo+jfTI3j0Uq9dprk+w0UBIOgbMR9K+73SJUeBhPI/clHgrAeNVuH PjLurrLHxcJaD71CO1GjH4NE9GoqrtuFqmN0ixjFmG5yASluX34gZUKQYfSpOCU= =92tk -----END PGP SIGNATURE----- --DIOMP1UsTsWJauNi--