On Mon, Mar 11, 2019 at 05:04:20PM +0000, Mark Raynsford via 
freebsd-virtualization wrote:
> Hello!
> 
> Leaving aside userland monitoring tools such as Prometheus[0], is there
> any way to detect on the host that a guest kernel running in bhyve has
> booted? I'm assuming "booted" in this sense to mean "PID 1 has probably
> started". I'm guessing that there probably isn't, but I thought I'd
> better ask anyway. "Not booted" would mean something like "Is sitting
> at the Grub prompt doing nothing".

If your guest OS supports it, you could probably write two scripts that
uses virtio_console(4), one for the guest to tell the host "HELLO" and
one for the host to say "NICE TO SEE YOU!" once the guest's "HELLO" is
received.

Of course, replace the "HELLO" and "NICE TO SEE YOU!" with the right
logic you're looking for. ;)

The "HELLO" bit could be written as an init script.

Thanks,

-- 
Shawn Webb
Cofounder and Security Engineer
HardenedBSD

Tor-ified Signal:    +1 443-546-8752
Tor+XMPP+OTR:        latt...@is.a.hacker.sx
GPG Key ID:          0x6A84658F52456EEE
GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89  3D9E 6A84 658F 5245 6EEE

Attachment: signature.asc
Description: PGP signature

Reply via email to