From nobody Tue Sep 3 23:29:11 2024 X-Original-To: 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 4Wz1zr32hFz5Mfq6 for ; Tue, 03 Sep 2024 23:29:28 +0000 (UTC) (envelope-from polarian@polarian.dev) Received: from mail.polarian.dev (mail.polarian.dev [IPv6:2001:8b0:57a:2385::8]) (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 4Wz1zq2QWHz4NR1 for ; Tue, 3 Sep 2024 23:29:27 +0000 (UTC) (envelope-from polarian@polarian.dev) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=polarian.dev header.s=polarian header.b=3uFTLBCp; dmarc=pass (policy=quarantine) header.from=polarian.dev; spf=pass (mx1.freebsd.org: domain of polarian@polarian.dev designates 2001:8b0:57a:2385::8 as permitted sender) smtp.mailfrom=polarian@polarian.dev Received: from PolarianBSD (_gateway [192.168.2.1]) by mail.polarian.dev (Postfix) with ESMTPSA id 57CA510A079F for ; Tue, 03 Sep 2024 23:29:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/relaxed; d=polarian.dev; s=polarian; t=1725406152; bh=hz06sN+XDbEGO+6na02IeF3nC7uS1fDep0cTDM7pxNs=; h=Date:From:To:Subject:In-Reply-To:References; b=3uFTLBCp365BauaLaLJXiV+g+9ta8TQzZZ0LKOskSj/OppfpYP3Udcw2HDq5eQRWU rk7ZJNsY2v8vETINW13WgUt+4iVReIEHDOG+wp+dk6rToCGWvvGKr4vq4Cb320cPGe URCYyjMP2n52MwyZDLVD+2S0URbAj5rIUZagP5BY= Date: Wed, 4 Sep 2024 00:29:11 +0100 From: Polarian To: virtualization@freebsd.org Subject: (SOLVED) Re: nmdm issues with bhyve Message-ID: <20240904002911.2f1c725d@PolarianBSD> In-Reply-To: <20240717234201.2ccbb91c@PolarianBSD> References: <20240716153851.60c1ea61@PolarianBSD> <16dfe6b3-2ef1-4859-a5b0-a36efe452804@FreeBSD.org> <20240717234201.2ccbb91c@PolarianBSD> X-Mailer: Claws Mail 3.20.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-virtualization@freebsd.org Sender: owner-freebsd-virtualization@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MID_RHS_NOT_FQDN(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[polarian.dev,quarantine]; R_DKIM_ALLOW(-0.20)[polarian.dev:s=polarian]; R_SPF_ALLOW(-0.20)[+ip6:2001:8b0:57a:2385::8]; MIME_GOOD(-0.10)[text/plain]; RCVD_COUNT_ONE(0.00)[1]; RCPT_COUNT_ONE(0.00)[1]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:20712, ipnet:2001:8b0::/32, country:GB]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MLMMJ_DEST(0.00)[virtualization@freebsd.org]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[virtualization@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[polarian.dev:+] X-Rspamd-Queue-Id: 4Wz1zq2QWHz4NR1 Hello, Time to publicly embarrass myself by announcing the solution to the problem. Peter Grehan offlisted me and tested my configuration and it worked fine for them. So, what could it have been then? Its been almost 2 months since I started this thread, and unfortunately I got a little frustrated and procrastinated a lot, so I only worked on it for a few days in the last 2 months, usually getting fed up and putting it off. Thank you for everyone who helped on #freebsd and #bhyve over on libera.chat which eventually led to me spotting the problem. So to break it down: 1. I confirmed that OpenBSD is infact booting within bhyve by booting to the installation media using stdio instead of nmdm. 2. I installed OpenBSD to the zvol, however when rebooting into the fresh install it didn't boot. 3. After a suggestion by vortexx on IRC, I used the installation media shell to inspect the install using fdisk, and then it hit me, there was no EFI partition. The problem was I missed the G (to change to GPT, and not use the MBR default), bhyve uses UEFI which of course there is no UEFI entry as GPT was not selected. So, years down the line if anyone is reading through the mailing list and comes across this email, ensure you entered G for GPT, save yourself the months of agony. Oh and the final step: 4. Switch stdio to nmdm and the device pair will show up as soon as you boot the virtual machine. Thanks for everyone who helped on the mailing list as well. Take care, -- Polarian GPG signature: 0770E5312238C760 Jabber/XMPP: polarian@icebound.dev