From nobody Thu Feb 10 06:04:15 2022 X-Original-To: freebsd-virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 931F419C196C for ; Thu, 10 Feb 2022 06:04:25 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4JvR603X75z4fT5 for ; Thu, 10 Feb 2022 06:04:24 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id DE4035C00D2 for ; Thu, 10 Feb 2022 01:04:17 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 10 Feb 2022 01:04:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zyxst.net; h=cc :content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to; s=fm1; bh=y Z3zEMYGiqhOQDDtdaoFML3RqxomaMkQJ+9oqsOr010=; b=tEawNSPkse6qHCBM9 X9Lwrb4qX9H3BOSQ4xz2J2KavEWBrdG/2EmhQvT5ga4wI6JU4mZ2DgKgbX+3ZSOv wrnHZCeghFRoQ2R4HJntuOBVnpjsPpKshpw5A5d46JD7gOwZTNL1OgsDMPNWeICU cKOvr8r0yFwZAVwdHFVmlYIw0+aOIjO55q4xmKlSeAEHeZiH6AoFXWWNJFaeCNtp HMCOGpZPHjHCXoDJzg7KYs9PRZrZlLze37+SQzu+eDBVrOwhWbAXqjiW4UIpBH6I WjQjwD9gFqzCLO+X5+xOa6v0fDLRIgWlOzDMH+GK000onTpCLuOfBhPeWuEfIKBR b8zsA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=yZ3zEMYGiqhOQDDtdaoFML3RqxomaMkQJ+9oqsOr0 10=; b=K5QnIL8UL4tyjQx7lZ8R17X1YX5hLWIiMFVF0T1zXWKWSeRkRjw6EJRTd sExdxAHHMTlSWx7s0ZDz8CPshy+/wb3n3JZdx/rxEy2m8973003bRTssgUjMhCVz dGhpz8XZmfiIUJS9ijJ+hAXKecDbg9xKYRYCUR18Ed4nrO7M5ijBVmlilnFXibkp 2gN3bgpk4qU2LxX2u6LsdLQoUHmSOY1QONKXmyZrJnWanrKNwymc2umSg7kJvnJF CRekmKCAVC04WaOh+y87DMqQrJ9LcRo8cVnbp5hDymVK9vJay4RjinyXYNrTOS4b J/ZxRfyfrM2DpENeMEvLchSvwgNoA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddriedtgdeltdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfggtggusehgtderredttd dvnecuhfhrohhmpehtvggthhdqlhhishhtshcuoehtvggthhdqlhhishhtshesiiihgihs thdrnhgvtheqnecuggftrfgrthhtvghrnhepvefghffftdefkeelleehtdejledvhfdvge eijeevfffguddvhfetgeejueejueeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomhepthgvtghhqdhlihhsthhsseiihiigshhtrdhnvght X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 10 Feb 2022 01:04:17 -0500 (EST) Date: Thu, 10 Feb 2022 06:04:15 +0000 From: tech-lists To: freebsd-virtualization@freebsd.org Subject: problems with debian 11 guest on bhyve always staying at the grub screen Message-ID: Mail-Followup-To: freebsd-virtualization@freebsd.org List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="QejFuKkMQsgt/kro" Content-Disposition: inline X-Rspamd-Queue-Id: 4JvR603X75z4fT5 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=zyxst.net header.s=fm1 header.b=tEawNSPk; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=K5QnIL8U; dmarc=none; spf=pass (mx1.freebsd.org: domain of tech-lists@zyxst.net designates 66.111.4.27 as permitted sender) smtp.mailfrom=tech-lists@zyxst.net X-Spamd-Result: default: False [-4.70 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[zyxst.net:s=fm1,messagingengine.com:s=fm2]; NEURAL_HAM_LONG(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.27]; 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]; DWL_DNSWL_LOW(-1.00)[messagingengine.com:dkim]; RCVD_COUNT_THREE(0.00)[4]; MID_RHS_MATCH_FROMTLD(0.00)[]; NEURAL_SPAM_SHORT(1.00)[1.000]; DKIM_TRACE(0.00)[zyxst.net:+,messagingengine.com:+]; DMARC_NA(0.00)[zyxst.net]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-virtualization]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:19151, ipnet:66.111.4.0/24, country:US]; RCVD_IN_DNSWL_LOW(-0.10)[66.111.4.27:from] X-ThisMailContainsUnwantedMimeParts: N --QejFuKkMQsgt/kro Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I'm using grub2-bhyve. Not sure if it's still needed in recent linux, but it's the only way I know of on console of booting the image. Debian has=20 been installed into the image. The problem is it always boots into the=20 grub menu and stays there instead of automatically loading. There's a device.map containing this line: (hd0) ./debian.img I invoke grub-bhyve like so: sudo grub-bhyve -m ./device.map -r hd0,msdos1 -M 16384M debian the grub menu appears and stays up if I don't intervene. This has to be entered: grub> linux (hd0,msdos1)/vmlinuz-5.10.0-11-amd64 root=3D/dev/mapper/v011--v= g-root grub> initrd (hd0,msdos1)/initrd.img-5.10.0-11-amd64 then grub loads and the following commands launch the vm: sudo bhyve -A -H -P -s 0:0,hostbridge \ -s 1:0,lpc \ -s 2:0,virtio-net,tap0 \ -s 3:0,virtio-blk,./debian.img \ -l com1,stdio \ -c 4 -m 16384M \ debian Because the grub menu stays up and waits for a response, I can't just scrip= t it like=20 i do for ubuntu like so: [ in a different directory ] sudo bhyvectl --vm=3Dubuntu2004 --destroy sudo grub-bhyve -m ./device.map -r hd0,gpt2 -M 16384M ubuntu2004 sudo bhyve -A -H -P -s 0:0,hostbridge \ -s 1:0,lpc \ -s 2:0,virtio-net,tap3 \ -s 3:0,virtio-blk,/dev/zvol/data/ubuntu2004-1 \ -l com1,stdio \ -c 8 -m 16384M \ ubuntu2004=20 Why is this? thanks, --=20 J. --QejFuKkMQsgt/kro Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE8n3tWhxW11Ccvv9/s8o7QhFzNAUFAmIEqtUACgkQs8o7QhFz NAXc5g//Y05zCyO79Fot7tj7ShIWunjz0/eOmF0L03R0pGfC2ItNsBZb84BbyInj 0vk2E/DtL9pd02mPAKQDiG56Cj6VJWO6pK6OCjlde76BIS39t0jB/qWMSi82dpF2 V4CYoJzsJn8ceIS3hYwphhFYZ8EmDCBRD59nQgDuRDvR6spWj6HHAHJzi4Mf61GZ 4XnNIulrUgi+mfbEYYrclzpUq1PZpJKUiS/L0b5X5rFs2YV5Xp5jy+wYoWpWA/L+ zoYL9EkxWQRz97DkzTaS0CPHqYrbLEf79XSIz/2emYnBhWr0E9szNwovjgbZyRea kozTttpvdjJIFVPOlFm3hWFXDm7tPRYnOjinkbKaIKWAPSOp2jS2353aFlPgZXDF RNV8vJw8v+rzn+ds2LOATDI/5c90Fjlq00ExuNy6syHY1f7f5+T6DqBzWhmM0MW9 wvgrUgv+9uBEh79PWp+9xMLOv8Rn2Qa2wBcMywxIYswES73Ab046Twi1wbTz46wW 4CJWMspiVFpVIXTd/tNfZgIT4tRPLnHQhYjeUtQ9IjgIQu9ToYidjI2Xx7Zh7+Vc uMyk4SB/UX3FVH05M3IlT1dfbBuVxT6X7RvuGmIthw9i0MQvG6IPO/WFfznj9mK7 TzK1pH3WGLWuDFGDFmkXI/iYBn54JQMSGCg3MEpvgNdTtibP0iI= =3abc -----END PGP SIGNATURE----- --QejFuKkMQsgt/kro--