From owner-freebsd-virtualization@freebsd.org Mon Mar 11 19:09:45 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 18A20152A597 for ; Mon, 11 Mar 2019 19:09:45 +0000 (UTC) (envelope-from hausen@punkt.de) Received: from kagate.punkt.de (kagate.punkt.de [217.29.33.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7C16B76660 for ; Mon, 11 Mar 2019 19:09:44 +0000 (UTC) (envelope-from hausen@punkt.de) Received: from hugo10.ka.punkt.de (hugo10.ka.punkt.de [217.29.44.10]) by gate2.intern.punkt.de with ESMTP id x2BJ9e7V076321; Mon, 11 Mar 2019 20:09:40 +0100 (CET) Received: from [217.29.46.2] (unassigned [217.29.46.2] (may be forged)) by hugo10.ka.punkt.de (8.14.2/8.14.2) with ESMTP id x2BJ9dQf081584; Mon, 11 Mar 2019 20:09:40 +0100 (CET) (envelope-from hausen@punkt.de) From: "Patrick M. Hausen" Message-Id: <67EAE893-5451-4D37-A129-37AB858C4F26@punkt.de> Content-Type: multipart/signed; boundary="Apple-Mail=_976E1CCC-E48D-448E-8388-45E304997A64"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: bhyve: Detecting that a guest kernel has booted Date: Mon, 11 Mar 2019 20:09:33 +0100 In-Reply-To: <20190311170420.61bd34c6@almond.int.arc7.info> Cc: freebsd-virtualization@freebsd.org To: Mark Raynsford References: <20190311170420.61bd34c6@almond.int.arc7.info> X-Mailer: Apple Mail (2.3445.9.1) X-Rspamd-Queue-Id: 7C16B76660 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.98 / 15.00]; REPLY(-4.00)[]; NEURAL_HAM_SHORT(-0.98)[-0.982,0]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[org.freebsd.virtualization] 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 19:09:45 -0000 --Apple-Mail=_976E1CCC-E48D-448E-8388-45E304997A64 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi all, > Am 11.03.2019 um 18:04 schrieb Mark Raynsford via = freebsd-virtualization : > 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=E2=80=9C. The abandoned FreeNAS Corral release did have guest additions that served as a simple health monitor for FreeBSD and Linux guests. They used virtio_console(4) and the last state of the project can be found here: https://github.com/freenas/freenas-vm-tools They compile cleanly on FreeBSD 12 and I even made a port that I submitted to iX Systems, but we all know what happened to Corral, unfortunately. Possibly they can serve as a starting point for a new project. And then there seems to be a newer version, again from FreeNAS, written in Go: https://github.com/freenas/bhyve-vm-goagent HTH, Patrick -- punkt.de GmbH Internet - Dienstleistungen - Beratung Kaiserallee 13a Tel.: 0721 9109-0 Fax: -100 76133 Karlsruhe info@punkt.de http://punkt.de AG Mannheim 108285 Gf: Juergen Egeling --Apple-Mail=_976E1CCC-E48D-448E-8388-45E304997A64 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEzBAEBCgAdFiEEgzqrjO/mj9CSsTg2kG8u4u3aiVwFAlyGsm4ACgkQkG8u4u3a iVwQ5Af/VYevJImrzsbMch+UffUva+MUSILnZhXpH88TxiXaAz5FcIt14nVzRmey hLsoYRVGLEjfAWFRqNh5+2SiEas6xW2MqZtnRQP9TZ/CDtSVU1QozfblGRghA/5G T/u+XhENVctcg1RdRW62gwAGSAwjZyZ3TFW3PD7cVn9p+4K5rf1cLbVvZ23c7Szj wv+wOc9FQSPUedA+5okZwujOSgz0YDBJe54BEnqshjlxkd0XSJGGkD8g7UP+xlc8 +SRQ+mdEOm9rnh1g9758xn4BSa+iNFEiNrdsNjNpUaAJjDCVViEkGpByfqwwX4RL E9jJwqqyQYmcWKmQgqLhqu51tJz+xw== =E+Qg -----END PGP SIGNATURE----- --Apple-Mail=_976E1CCC-E48D-448E-8388-45E304997A64--