Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Mar 2019 14:12:52 -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:  <20190311181252.4xrwzfidzfhsad46@mutt-hbsd>
In-Reply-To: <5c86a44e.1c69fb81.cd645.9e28SMTPIN_ADDED_BROKEN@mx.google.com>
References:  <20190311180359.knal2sjbmxlgzduh@mutt-hbsd> <5c86a44e.1c69fb81.cd645.9e28SMTPIN_ADDED_BROKEN@mx.google.com>

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

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

On Mon, Mar 11, 2019 at 11:09:07AM -0700, Rodney W. Grimes wrote:
> > 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 script=
s 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 "HELL=
O" is
> > > > > received.
> > > > >=20
> > > >=20
> > > > They're a mix of FreeBSD, OpenBSD, and Debian guests. So I'm guessi=
ng
> > > > one out of three of those supports it...
> > > >=20
> > > > I suppose my other option would be to add (another) NFS mount in ea=
ch
> > > > 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.
> >=20
> > Just a note: Windows systems disable inbound ICMP by default, but
> > inbound ICMP support can be enabled post-installation.
> >=20
> > > 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.
> >=20
> > I would suggest using bhyve with UEFI. I wish a death upon bhyveload
> > and grub2-bhyve.
>=20
> I have no love for them either, but until we get our UEFI updated
> it is a rather sad state of affairs.  If we could a) get on a modern
> version of ed2k, and b) bet the CSM fixed so that we could actually
> boot bios mode stuff with it and c) maybe make a port of seabios
> that could be used then we would be kicking some seriuos stuff!

If I'm able to run an internship this year like I did last year, I
might have my interns update our UEFI firmware to the latest release
and/or make a BSDL seabios port.

My employer was recently acquired, so I'm likely not going to run an
internship this year.

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

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

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

iQIzBAEBCAAdFiEEKrq2ve9q9Ia+iT2eaoRlj1JFbu4FAlyGpSQACgkQaoRlj1JF
bu6A/Q/+M0VcP/eKL9RYHZZwkMDqOookRMXoiDnyBulxDZoAPa61KPdeMOcMZ+Yk
MtL+l48+xj0JDZparXQZCYsQXPwrIJWbKvu/MZqk303ZeuKMD82SJDLs3709NKx7
bg461K155d6ElT2JZaRZxQ03JoIe+P6d5+hp23QHnjw18j9NK7zJhfX6b2HnxTEP
P96n88jhGwAf3cuWykN7JqksrKF8cqm9ntJSPlAiEyma5wFQdeu9IrR05KXVjoc2
yXSJPd5lGdR/Qmdzkioaw4kObN9SFO4QlNKw5A6FsQnU2iBqu39SBx9ULw4fcqqQ
ba6loxnU0b+ySVRX1kJyxhLZRiohA3TK5LAncj6M5TNiKObuxU0nGyKaWrZWxwHG
aQxTkU3cD/FZnNIcvNta6uskgAVVJTBBcnkQLwJFd6DkvxYU549Esmtvnvx9tk2s
UkossC3jzhda9LjMXGkmPwnC9RuzzVOrsw66Q1N+L2Y+Z7xPXz280FHZxjogBcEq
8BCaaQNoHbF4raqoEUw5v619lcNlx0KnoVY6GRf+d5WsVA6zDavpyHLJ7oc5BKmH
/e5zxyvJdsNwjTljdPdLtSFC9b1agoFtsahK/HGO7tShoYIsuFHw4uO4fYSpyv1y
VlZz3YONIhDgZPooFBBgaNq+Ix34CLL3DfojQvEZYy9+c38yXcA=
=TpxC
-----END PGP SIGNATURE-----

--ulmgg6hb4u5r6frw--



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