From owner-freebsd-virtualization@FreeBSD.ORG Wed Aug 20 10:13:27 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 4591A220; Wed, 20 Aug 2014 10:13:27 +0000 (UTC) Received: from mail-la0-x22f.google.com (mail-la0-x22f.google.com [IPv6:2a00:1450:4010:c03::22f]) (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 9285639B6; Wed, 20 Aug 2014 10:13:26 +0000 (UTC) Received: by mail-la0-f47.google.com with SMTP id mc6so7112062lab.34 for ; Wed, 20 Aug 2014 03:13:24 -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=gmVKAdc+qztkfczdCxi7ktYo/5m9D6rzWR/zOiUDCH8=; b=n/4CPBHpTfkhpFNvIBdHTh2hX1kimtak+IbZyK0DL5QqhweRrl+i9YDdfKI+NbaRBJ NABzX/RHUUCJn2fegfaXseWidQD8/oqtl5c9aBpTupMh1HjrqjojUg/3hT/oS15jw2oS QlcgXwcgIVvv6q2Uah92kTrnRvDtqwm1l8dT4v5CF7oyCiYPgDalB06JlHtasV5P4uhZ nZoTt2gCSVmwgZNsUo6J5S8Puc5C4c854F7NjIH+fTUlTRe44LeZURUyiY1F0J9q8kxy Q7FMj7/bGmWYDc2rpFvonl05LnUOTZ7udKFdJ53hBi4tkkXmW8FJJfsd+sr5+ZTiW1ZO NB9Q== X-Received: by 10.112.156.10 with SMTP id wa10mr30653709lbb.68.1408529604366; Wed, 20 Aug 2014 03:13:24 -0700 (PDT) Received: from kloomba ([77.94.197.103]) by mx.google.com with ESMTPSA id w9sm1633326lae.19.2014.08.20.03.13.23 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Aug 2014 03:13:23 -0700 (PDT) Sender: Roman Bogorodskiy Date: Wed, 20 Aug 2014 14:10:43 +0400 From: Roman Bogorodskiy To: Allan Jude Subject: Re: libvirt and rebooting of a bhyve VM Message-ID: <20140820101041.GA1368@kloomba> References: <20140819154035.GA62903@kloomba> <53F37A6F.90405@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fUYQa+Pmc3FrFX/N" Content-Disposition: inline In-Reply-To: <53F37A6F.90405@freebsd.org> 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: Wed, 20 Aug 2014 10:13:27 -0000 --fUYQa+Pmc3FrFX/N Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Allan Jude wrote: > On 2014-08-19 11:50, John Nielsen wrote: > > On Aug 19, 2014, at 9:40 AM, Roman Bogorodskiy wrot= e: > >=20 > >> Craig Rodrigues wrote: > >> > >>> Roman, > >>> > >>> 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 > >>> > >>> 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. > >>> > >>> How can I get the machine to reboot with "shutdown -r now" when > >>> started with libvirt? > >> > >> Hi Craig, > >> > >> 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. > >> > >> So looks like that's a default bhyve behaviour or I'm missing somethin= g? > >=20 > > Wasn't changing this the intention of r267216 (MFCed as r270071)? > >=20 > > Roman, was your 10-STABLE built after that revision? > >=20 > > JN > >=20 > > _______________________________________________ > > freebsd-virtualization@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@fr= eebsd.org" > >=20 >=20 > Yes, this revision adds the ability to 'reboot'. This does not exit > bhyve at all, so there is no exit level >=20 > You can 'reboot' a bhyve externally using: > bhyvectl --force-reset --vm=3Dxxx >=20 > or force a poweroff with: bhyvectl --force-reset --vm=3Dxxx >=20 > SIGTERM simulates an ACPI shutdown >=20 >=20 > the bhyvectl --destroy is to clean up, the instance remains even after a > clean shutdown. In the past, it had to be destroyed and recreated to > start the VM again, although now with reboot support, that may not be > required. I have updated to 10-STABLE that includes commit r270071. I can see bhyveload has --force-reset flag. However, when I boot a VM and do 'reboot' there, bhyve(8) exits with exit code 0.=20 The same happens when I do bhyvectl --force-reset.=20 Any ideas how to debug why bhyve(8) exits in this case? Roman Bogorodskiy --fUYQa+Pmc3FrFX/N Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (FreeBSD) iQEcBAEBAgAGBQJT9HQhAAoJEMltX/4IwiJqV0YIAJsneoR7KHdsptPkdMd65jLi ns2L5YA8gZ0VQrogA2oACCfut4QnqHF4wA/eUqz00AKH/3DIRXrexyQSvK1N3xNU ciJLixbm6E9OpaLP6JP4WG4Etuu59Zxcz/ehSmGYf2Qv9NbIZqoyC/uJ3f7ZcRb0 GAbpdQ49bMF6otfNKC2PMMbvVGyL9kj2VfbQzWkwj9XCllFtmyPyJUgnexRYWPy0 X6ho/ifF9GBOal60Kr1rEgeb3AktatarZ0ZGkafA83VN+h/BJykfmTcVQWh8amzc 6qUe+vDlhVV5clhYPJLlDwkxsvW/3AhtQ4GVpfiC+cJL1qng/gogXAjYMVFtL1U= =9/nr -----END PGP SIGNATURE----- --fUYQa+Pmc3FrFX/N--