From owner-freebsd-virtualization@freebsd.org Tue Aug 20 20:32:41 2019 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 15E38DF497 for ; Tue, 20 Aug 2019 20:32:41 +0000 (UTC) (envelope-from list+org.freebsd.virtualization@io7m.com) Received: from mail.io7m.com (mail.io7m.com [45.77.76.92]) (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 46CjCX06xHz3yQ3 for ; Tue, 20 Aug 2019 20:32:39 +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 4F68C30AAA for ; Tue, 20 Aug 2019 20:26:46 +0000 (UTC) Date: Tue, 20 Aug 2019 21:26:36 +0100 From: Mark Raynsford To: freebsd-virtualization@freebsd.org Subject: Severely broken bhyve console Message-ID: <20190820212636.63f08db2@almond.int.arc7.info> Organization: io7m.com OpenPGP: id=E379595716131DB4E7AB87DD67B18CC1F9ACE345; url=https://io7m.com/pgp/E379_5957_1613_1DB4_E7AB_87DD_67B1_8CC1_F9AC_E345.key MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/fiwrxqWyrn.YNb8ZeB57c8j"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Rspamd-Queue-Id: 46CjCX06xHz3yQ3 X-Spamd-Bar: ----- X-Spamd-Result: default: False [-5.91 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[io7m.com:s=mail]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; HAS_ORG_HEADER(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.983,0]; DKIM_TRACE(0.00)[io7m.com:+]; DMARC_POLICY_ALLOW(-0.50)[io7m.com,quarantine]; NEURAL_HAM_SHORT(-0.74)[-0.735,0]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; IP_SCORE(-0.09)[asn: 20473(-0.40), country: US(-0.05)]; ASN(0.00)[asn:20473, ipnet:45.77.76.0/22, country:US]; TAGGED_FROM(0.00)[org.freebsd.virtualization]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] 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: Tue, 20 Aug 2019 20:32:41 -0000 --Sig_/fiwrxqWyrn.YNb8ZeB57c8j Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hello! For reasons I'm unable to explain, my ability to access the nmdm consoles of bhyve guests has suddenly broken. It may have been caused by a recent 11.2 update - I keep this machine on 11.2-RELEASE plus freebsd-update patches but, as it's not a publically accessible machine, I rarely reboot for updates unless absolutely necessary. I can use "sudo cu -l /dev/nmdm*B" to connect to a particular bhyve guest's console, but as this video shows, the console is effectively unusable: https://ataxia.io7m.com/2019/08/20/broken_terminal.ogv In that video, I connect to /dev/nmdm57B when the guest is shut down. I start the guest in a separate terminal (not pictured) and wait for it to boot into the Debian installer. I don't touch the keys until the title bar becomes visible. At that point, touching the arrow keys or the return key results in chaos. It doesn't seem to be terminal-specific; I'm ssh'd into the host machine, and have tried various different terminals and $TERM settings to no effect. It doesn't seem to be guest-specific; I'm running FreeBSD, Debian, and OpenBSD guests and they now all show this behaviour. The guests themselves don't appear to be in any distress, I can ssh into the guests and everything is working correctly. The host: # uname -a FreeBSD cranberry.int.arc7.info 11.2-RELEASE-p13 FreeBSD 11.2-RELEASE-p13 #0: Tue Aug 6 06:41:33 UTC 2019 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 I'd appreciate any help on this. --=20 Mark Raynsford | http://www.io7m.com --Sig_/fiwrxqWyrn.YNb8ZeB57c8j Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQTjeVlXFhMdtOerh91nsYzB+azjRQUCXVxXfAAKCRBnsYzB+azj RXAcAP4xFUjB8KGxYZ6sPRUv9dxhQrPZkCTwNzALKoAinumBHwD/c9tlChYDmX6j kImMLJ9NxWB3ofQnWelozTRHAjvz7AE= =ZubK -----END PGP SIGNATURE----- --Sig_/fiwrxqWyrn.YNb8ZeB57c8j--