Date: Mon, 11 Mar 2019 14:03:59 -0400 From: Shawn Webb <shawn.webb@hardenedbsd.org> To: "Rodney W. Grimes" <freebsd-rwg@gndrsh.dnsmgr.net> Cc: Mark Raynsford <list+org.freebsd.virtualization@io7m.com>, freebsd-virtualization@freebsd.org Subject: Re: bhyve: Detecting that a guest kernel has booted Message-ID: <20190311180359.knal2sjbmxlgzduh@mutt-hbsd> In-Reply-To: <5c86a1e4.1c69fb81.4c2f8.a040SMTPIN_ADDED_BROKEN@mx.google.com> References: <20190311172158.1c06b5d9@almond.int.arc7.info> <5c86a1e4.1c69fb81.4c2f8.a040SMTPIN_ADDED_BROKEN@mx.google.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--dszkua3ez6tmcq3x Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 11, 2019 at 10:58:55AM -0700, Rodney W. Grimes wrote: > -- Start of PGP signed section. > > 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 th= at > > > 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). >=20 > Well ICMP is in the kernel, and should be working as soon as the > interface is up, long before you could do anything with NFS, > so rather than the complexity above a simple ping would suffice. Just a note: Windows systems disable inbound ICMP by default, but inbound ICMP support can be enabled post-installation. > There is also the phase of vmm(8) startup that when you are > running bhyveload vs bhyve and iirc grubload vs bhyve, that > can be detected. vmbhyve does so and says you are in state > looader when you do a vm list. I would suggest using bhyve with UEFI. I wish a death upon bhyveload and grub2-bhyve. 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 --dszkua3ez6tmcq3x Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEKrq2ve9q9Ia+iT2eaoRlj1JFbu4FAlyGowkACgkQaoRlj1JF bu6j3g/9FBifnhcnN1ti121uKjuswOO52dX2q1SVcX0wjynAPZJL23x9KA1pKHbX MMNNmPmGRoeh0/vQSM4MGwV6WJrDo4wPYWdMCjis/G/d1Wb6VLJO9I3enk0/w73X V18QK5IPy+i7hw8Q2UgfvkTmF2viE2rc8B/AvPJ63sN7N/JXgAa/TPE6Kt585wOD S6He54wib2vslJmchY2gKVyrXUB0QwkTEngy9a2+GAcff1tmWQO+vt2kg6mjpzbl LN0g8ibW2v0hUxIr4G2dODErF60ABaLQNw3zDma/Cco043E2w+aNAhWtPGdbqTKM 0htEKx7arBS7PQo6jd11wBc9fA35/9uq2nu7A0NelRVbOLZoYaXlhpsdmQqQucYb kEqzUNzLPPIjpzXgNMcTP9FOy1ZIF1s8CvNfYAzFHQl6EwXa4nWyl3+ZRPnrv/bH QHPbMIbnqqkkWQbLzoV7FLtLqGflLR5+QW/oTGuaMhg1A4604hn3rmPGa/iaM2dc JUn7/LDpz9Ksaj7O2ELWeT6YfU/9QszTtM8bsO7BWoY5j2UeSwOoqF6dgnCZLPNf zXX5XM7NAIkevaJkkiWSsgSyayre/3cTs9UAJaRt8WN76eXYP8vKuwjIyZ3kLoEm KyH/RuyyMVAZHjFbWbmqZ0JJMwOKCDsnoacI208ed499j3z4awk= =s8Az -----END PGP SIGNATURE----- --dszkua3ez6tmcq3x--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190311180359.knal2sjbmxlgzduh>