I have libvirt with bhyve driver on FreeBSD 12. I have FreeBSD guests and Linux guests with UEFI. Both are not able to reboot, just stops when a reboot command issued inside the guest.
Asked
Active
Viewed 129 times
1 Answers
0
This happens because the bhyve process just exits if the guest reboots. It takes some external supervisor like runit or s6 to decode the exit status (shutdown, reboot, triple fault, other) and do the right thing.

crest
- 11
- 1
-
libvirtd should be doing this, no? – Michael Hampton Sep 11 '20 at 16:47
-
Yes, I would expect libvirt to be that external supervisor that decode the exist status and do the right thing – Artiom Sep 13 '20 at 10:31
-
I use runit or s6 to supervise my bhyve processes and decode the exit code in ./finish scripts. – crest Feb 20 '21 at 21:59