From owner-freebsd-virtualization@FreeBSD.ORG Tue Aug 19 16:25:00 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E60B0AE4 for ; Tue, 19 Aug 2014 16:24:59 +0000 (UTC) Received: from mx1.scaleengine.net (beauharnois2.bhs1.scaleengine.net [142.4.218.15]) by mx1.freebsd.org (Postfix) with ESMTP id A4B733260 for ; Tue, 19 Aug 2014 16:24:59 +0000 (UTC) Received: from [192.168.1.2] (senat1-01.HML3.ScaleEngine.net [209.51.186.5]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id 058E83A96B for ; Tue, 19 Aug 2014 16:24:58 +0000 (UTC) Message-ID: <53F37A6F.90405@freebsd.org> Date: Tue, 19 Aug 2014 12:25:19 -0400 From: Allan Jude User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: freebsd-virtualization@freebsd.org Subject: Re: libvirt and rebooting of a bhyve VM References: <20140819154035.GA62903@kloomba> In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oBjVRgfdHvuDgla2dE7bwRScJdmMOddga" 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:25:00 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --oBjVRgfdHvuDgla2dE7bwRScJdmMOddga Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 Yes, this revision adds the ability to 'reboot'. This does not exit bhyve at all, so there is no exit level You can 'reboot' a bhyve externally using: bhyvectl --force-reset --vm=3Dxxx or force a poweroff with: bhyvectl --force-reset --vm=3Dxxx SIGTERM simulates an ACPI shutdown 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. --=20 Allan Jude --oBjVRgfdHvuDgla2dE7bwRScJdmMOddga Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQIcBAEBAgAGBQJT83pzAAoJEJrBFpNRJZKfLosP/R8GMgAqvxaSayXVFnkvhEvd 7b5+yVVzxQORBjScr1F3M3nsajFsQnyx0MPb18QPPWnRr1T5DaZ74m+kx0wizVuG HQ6fsJknrbXEykI4iF3ANzY8qHck8GSN/HBOGrrhwSdZkjo+cUvWEOqqd8e8070W CgxA5yke+u4HZA+ew49aNb+3TH0Ipc+8CRZu2yWge3cAav2WAMXICJJL+5Fy4Fk6 r708scg4EaZrdkiKBlTM1b/b4hd86ncgsOTYUd17qu2OW/MDNECpRT+NoizJUlSz URRnMLyphIhIga0vWvP3YXUa3R5uJuH8aGphcSzjm8xXHkBWDAuyR8fr//mVWZlW FgzSRH9J6C8AlgdMSlwBQ6VqId3i6bkPfGLLClQLZ8njzPotMjWDWlztD6rHrkD0 DxJvGv1OMoMk8XD7bz84en8fMIAu3H4onSpfQ2pmSAviB1HCLxX8LQnaLWpY9a3+ 2q/vMjBGQS0uk18mt5h5WnXv7C1Y3abLxYk+He1KjS890V0mDQHqLpACl7lvV3R5 kGBIlOao3+Wy7eQNEyF5KV2KDwujnqV7c4xhZsjmqExWzzR0KDKlQcJ2c8cPwOX9 9htnWTNu1ImR1U4046C/C+xKLrrxeQy72i/7//2cq1UYHbS638B3zaKlX9pyDIZG Il3j0k8TjLdcB7UQWkJa =FzmC -----END PGP SIGNATURE----- --oBjVRgfdHvuDgla2dE7bwRScJdmMOddga--