(SOLVED) Re: nmdm issues with bhyve

From: Polarian <polarian_at_polarian.dev>
Date: Tue, 03 Sep 2024 23:29:11 UTC
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