Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Mar 2019 13:27:23 -0400
From:      Shawn Webb <shawn.webb@hardenedbsd.org>
To:        Mark Raynsford <list+org.freebsd.virtualization@io7m.com>
Cc:        freebsd-virtualization@freebsd.org
Subject:   Re: bhyve: Detecting that a guest kernel has booted
Message-ID:  <20190311172723.idvwvphb4acarxvi@mutt-hbsd>
In-Reply-To: <20190311172158.1c06b5d9@almond.int.arc7.info>
References:  <20190311170420.61bd34c6@almond.int.arc7.info> <20190311170853.cwjclznvsyd2wksu@mutt-hbsd> <20190311172158.1c06b5d9@almond.int.arc7.info>

next in thread | previous in thread | raw e-mail | index | archive | help

--rhjfcmgrep4mtrv5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Mar 11, 2019 at 05:21:58PM +0000, Mark Raynsford wrote:
> On 2019-03-11T13:08:53 -0400
> Shawn Webb <shawn.webb@hardenedbsd.org> wrote:
> >
> > 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.
> >=20
>=20
> They're a mix of FreeBSD, OpenBSD, and Debian guests. So I'm guessing
> one out of three of those supports it...
>=20
> I suppose my other option would be to add (another) NFS mount in each
> guest, and have them touch a file early in the init script (and
> possibly touch a different file early in the shutdown script).

Both FreeBSD and Linux supports virtio_console(4). I have no idea
about OpenBSD, but I'm sure they'd be open to an implementation if
asked.

The NFS solution would work, but it would be somewhat fragile. What
happens when a VM crashes? What happens when the host crashes?

Thanks,

--=20
Shawn Webb
Cofounder and Security Engineer
HardenedBSD

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

--rhjfcmgrep4mtrv5
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEKrq2ve9q9Ia+iT2eaoRlj1JFbu4FAlyGmnQACgkQaoRlj1JF
bu6f/Q/6A4f807voEYU4VNzsq+ubJxGREEVRgswN+AjB4T5afwHFVkVmpbcjIjRc
JbVTNhV2oxOLjPBoG1A9rm6uf/YIcybStAAHNluEJ08XQDwcpjTuYqgtCXKkGjqj
vuAuubHdMiS2LN7pcv23rinhlNylkn2a7Oogf5SFaeZ4B12R/YfhYoUCt58Tjrzn
ZVBlkwlKVLdSyyxCSpyYg+Bqb9WSB9Dgl6W1uMk9YzfbhIhFHwNUvQ+lT3xFViFh
iSFjjW2Dk+TpvwQH3ErNNEyeK5cuA7gYFUltMcAzRh6EZVnLiaOnD4REtUcT8hQs
HwViU3LiF4AxNRabZ/z895j3+vkQ2rMdK+w2eq7hNlvo0f7i/BMXbgmsw9iRRWcM
uWRCxdb54e1/mwsle0kBN0yu8qn7Sl2HEHi0CFCQCE5tqSI9QcxSb2qwJoD4kv5v
v/wPtPOn1QpoJ4uwdFwUF2WUY+zRe06M/DeYwA2sMN6GXewQtnqvB2hHr1vYiLoO
aJ6fJ5emZyGteL71aFUmKq4dE8nbhk2vzvbFKAHp+VhxEIJ+NVuK9lY2LoNpURtt
GS6nXcEmnocMWoJAK714im1pxV/RoTyQ0sq7N+Oke3iErwQtLcxjAQnGUzjNI5yi
JfrflzfTKM4uY8e5mPh8UDISMVWivh4CUzgbpuVfFmw3Lc8HDsA=
=qVyS
-----END PGP SIGNATURE-----

--rhjfcmgrep4mtrv5--



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