Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Aug 2014 12:25:19 -0400
From:      Allan Jude <allanjude@freebsd.org>
To:        freebsd-virtualization@freebsd.org
Subject:   Re: libvirt and rebooting of a bhyve VM
Message-ID:  <53F37A6F.90405@freebsd.org>
In-Reply-To: <EBFA02E4-AF67-4988-BF3F-5DB9F7D4BC76@jnielsen.net>
References:  <CAG=rPVcGFSnMcMdrNtWjUtHUc0RLXps-t9WwzokNtyHQwWDfFQ@mail.gmail.com> <20140819154035.GA62903@kloomba> <EBFA02E4-AF67-4988-BF3F-5DB9F7D4BC76@jnielsen.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <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

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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53F37A6F.90405>