Date: Wed, 20 Aug 2014 14:10:43 +0400 From: Roman Bogorodskiy <novel@FreeBSD.org> To: Allan Jude <allanjude@freebsd.org> Cc: freebsd-virtualization@freebsd.org Subject: Re: libvirt and rebooting of a bhyve VM Message-ID: <20140820101041.GA1368@kloomba> In-Reply-To: <53F37A6F.90405@freebsd.org> References: <CAG=rPVcGFSnMcMdrNtWjUtHUc0RLXps-t9WwzokNtyHQwWDfFQ@mail.gmail.com> <20140819154035.GA62903@kloomba> <EBFA02E4-AF67-4988-BF3F-5DB9F7D4BC76@jnielsen.net> <53F37A6F.90405@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <novel@FreeBSD.org> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140820101041.GA1368>