From owner-freebsd-virtualization@freebsd.org Mon Mar 11 17:22:12 2019 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7B9AE1527086 for ; Mon, 11 Mar 2019 17:22:12 +0000 (UTC) (envelope-from list+org.freebsd.virtualization@io7m.com) Received: from mail.io7m.com (mail.io7m.com [IPv6:2001:19f0:5:752:f000::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.io7m.com", Issuer "arc7 CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id E63EC710AC for ; Mon, 11 Mar 2019 17:22:11 +0000 (UTC) (envelope-from list+org.freebsd.virtualization@io7m.com) Received: from almond.int.arc7.info (cust187-dsl61.idnet.net [212.69.61.187]) by mail.io7m.com (Postfix) with ESMTPSA id BA96A2F2B6; Mon, 11 Mar 2019 17:22:09 +0000 (UTC) Date: Mon, 11 Mar 2019 17:21:58 +0000 From: Mark Raynsford To: Shawn Webb Cc: freebsd-virtualization@freebsd.org Subject: Re: bhyve: Detecting that a guest kernel has booted Message-ID: <20190311172158.1c06b5d9@almond.int.arc7.info> In-Reply-To: <20190311170853.cwjclznvsyd2wksu@mutt-hbsd> References: <20190311170420.61bd34c6@almond.int.arc7.info> <20190311170853.cwjclznvsyd2wksu@mutt-hbsd> Organization: io7m.com OpenPGP: id=E379595716131DB4E7AB87DD67B18CC1F9ACE345; url=http://io7m.com/pgp/E379_5957_1613_1DB4_E7AB_87DD_67B1_8CC1_F9AC_E345.key MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/5ZHrWT4UeBmD_GbwcW82hXA"; protocol="application/pgp-signature" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Mar 2019 17:22:12 -0000 --Sig_/5ZHrWT4UeBmD_GbwcW82hXA Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On 2019-03-11T13:08:53 -0400 Shawn Webb 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 They're a mix of FreeBSD, OpenBSD, and Debian guests. So I'm guessing one out of three of those supports it... 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 Mark Raynsford | http://www.io7m.com --Sig_/5ZHrWT4UeBmD_GbwcW82hXA Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQTjeVlXFhMdtOerh91nsYzB+azjRQUCXIaZNgAKCRBnsYzB+azj RS/0AQDn11JBFpowED1iZMoxWXFIQT41TwTUzKgun1vWUk+21QEA1IJg6O8MV0XL dSf0pzhZBftI5n9uAcJBUm8pf8eNzQY= =HbHx -----END PGP SIGNATURE----- --Sig_/5ZHrWT4UeBmD_GbwcW82hXA--