From owner-freebsd-virtualization@freebsd.org Mon Mar 11 18:09:17 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 6CF4E1528704 for ; Mon, 11 Mar 2019 18:09:17 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 08C937398F for ; Mon, 11 Mar 2019 18:09:15 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (localhost [127.0.0.1]) by gndrsh.dnsmgr.net (8.13.3/8.13.3) with ESMTP id x2BI97hN010769; Mon, 11 Mar 2019 11:09:07 -0700 (PDT) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: (from freebsd-rwg@localhost) by gndrsh.dnsmgr.net (8.13.3/8.13.3/Submit) id x2BI974C010768; Mon, 11 Mar 2019 11:09:07 -0700 (PDT) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201903111809.x2BI974C010768@ gndrsh.dnsmgr.net> Subject: Re: bhyve: Detecting that a guest kernel has booted In-Reply-To: <20190311180359.knal2sjbmxlgzduh@mutt-hbsd> To: Shawn Webb Date: Mon, 11 Mar 2019 11:09:07 -0700 (PDT) CC: "Rodney W. Grimes" , Mark Raynsford , freebsd-virtualization@freebsd.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: 08C937398F X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [3.90 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.21)[0.210,0]; TAGGED_RCPT(0.00)[org.freebsd.virtualization]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[dnsmgr.net]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.94)[0.935,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: gndrsh.dnsmgr.net]; NEURAL_SPAM_LONG(0.16)[0.158,0]; INVALID_MSGID(1.70)[]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:13868, ipnet:69.59.192.0/19, country:US]; RCVD_TLS_LAST(0.00)[]; IP_SCORE(0.00)[ip: (0.05), ipnet: 69.59.192.0/19(0.03), asn: 13868(0.01), country: US(-0.07)] 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 18:09:17 -0000 > 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 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. > > > > > > > > > > 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). > > > > 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. 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! > Thanks, > Shawn Webb -- Rod Grimes rgrimes@freebsd.org