Date: Tue, 19 Aug 2014 12:59:50 -0400 From: Allan Jude <allanjude@freebsd.org> To: freebsd-virtualization@freebsd.org Subject: Re: libvirt and rebooting of a bhyve VM Message-ID: <53F38286.7050609@freebsd.org> In-Reply-To: <CAG=rPVe6FvEqHnHLx4CT8aJ=Eo5SWwdxC8JH6g4FxkoVqZftvw@mail.gmail.com> References: <CAG=rPVcGFSnMcMdrNtWjUtHUc0RLXps-t9WwzokNtyHQwWDfFQ@mail.gmail.com> <20140819154035.GA62903@kloomba> <EBFA02E4-AF67-4988-BF3F-5DB9F7D4BC76@jnielsen.net> <53F37A6F.90405@freebsd.org> <CAG=rPVe6FvEqHnHLx4CT8aJ=Eo5SWwdxC8JH6g4FxkoVqZftvw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --NBnfAM9UO1243jfHWU4Cl9HgFJu1Rn9XF Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 2014-08-19 12:32, Craig Rodrigues wrote: > On Tue, Aug 19, 2014 at 9:25 AM, Allan Jude <allanjude@freebsd.org> wro= te: >> >> 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 >=20 > Can you suggest patches to vmrun.sh to make these new behaviors more > obvious? People who write scripts over bhyve often look at vmrun.sh > for inspiration. >=20 > These new behaviors are definitely going in the right direction. >=20 > -- > Craig > _______________________________________________ > 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 I am not sure what you'd change in vmrun.sh. In -STABLE, for a reboot, bhyve doesn't exit so vmrun.sh doesn't need to change at all. The loop in vmrun.sh ensures the VM gets restarted if bhyve crashes (making this optional may be useful). I am not sure what else one might change. I'll write to write some better documentation so that there is something else to refer to, rather than just the vmrun script. --=20 Allan Jude --NBnfAM9UO1243jfHWU4Cl9HgFJu1Rn9XF 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) iQIcBAEBAgAGBQJT84KJAAoJEJrBFpNRJZKf+YgP/1t392ZihH3u0j6/L7P1mgml gAqsO0zB1Z4BdI48DPeLV4sWjiET/XNN79ncuLyCpdbJbG24deSdadgTA56i3Zqd lRBVlKg8GIBOm8zK/KudDW2qmtz0atU8bZ1Yzzix91v/dr4wQ+W0e3vAAoylsowx TWkXYTAEzd5fv87vW8Q7ctvwxIzR5oVkIAYLZ78yjKWVSxXFvANUOOdrJEvyRimG 1Nobw80B82zUGMv1XhBFBfSAwe/YI+2gMvrHN1B3zGh41gzPPjXX621vXqgRqRYQ QjyLG/ORkLHJddujdtk3RhZ1wzt2Dz5hcXShPQbm8aN50zEUBmQ+flTsGTXIJB6U pjEjvMh2Bu9HP8ZAVJdZwUwVVPBEsBE+XFUFl0Tt8rfQnUqJiJ1N+IAbT9OsSQJ3 FOEI3Fkam1F+Chxv+PAwnjKOwHSrpMrZ1+V9fvxuwq45N3Tp/OTAIxILYWeAuXNz AYofRAxpwIGcbqJ+SEMGH/n9mEofXj6gG0qtk5mJSaDdSe74XchHQp8jkLagP1wp GCH79OsZ7T7ofzy/ewpezBFCQ9lVJTBJbIo/95RN0Cnwuudxkmkv0/o86FAkluWr MyHvjDzuGV1qLeCnBnxiHnQJbkaIbcUIQ/S97nyczEEVWGMEY8raBD7U5sRAweOj TlOAi5iJrNBIduvbaPFe =laAP -----END PGP SIGNATURE----- --NBnfAM9UO1243jfHWU4Cl9HgFJu1Rn9XF--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53F38286.7050609>