Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Dec 2024 00:33:04 +0000
From:      bugzilla-noreply@freebsd.org
To:        virtualization@FreeBSD.org
Subject:   [Bug 283341] In version FreeBSD12.2 to FreeBSD 14.2 (include) bhyve host don't boot guest FreeBSD any version on BSD partition
Message-ID:  <bug-283341-27103-d4zDeuHido@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-283341-27103@https.bugs.freebsd.org/bugzilla/>
References:  <bug-283341-27103@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283341

--- Comment #1 from Mark Peek <mp@FreeBSD.org> ---
I was able to reproduce this issue on a FreeBSD 14.2 host with a 14.2 guest
using bhyveload. The earlier issue commented about it regressing in 12.2 so
looking at the commits before that time had this one:

https://github.com/freebsd/freebsd-src/commit/14243f8de746e756ad3466aa6920a=
80e39157d9c
https://reviews.freebsd.org/D19262

which was MFC'd into 12.2:

https://github.com/freebsd/freebsd-src/commit/7c7ef3e8f9f2309430d171f93e3cb=
85f463e87e6

bhyveload will load the host loader into the VM which is why it would regre=
ss
when upgrading to 12.2 (and beyond).


I applied this patch to revert a functional change and was able to boot

diff --git a/stand/userboot/userboot/main.c b/stand/userboot/userboot/main.c
index cf1d9b12d69f..8b8cc30ea91a 100644
--- a/stand/userboot/userboot/main.c
+++ b/stand/userboot/userboot/main.c
@@ -248,7 +248,7 @@ extract_currdev(void)
                dev.dd.d_dev =3D &userboot_disk;
                dev.dd.d_unit =3D 0;
                dev.d_slice =3D D_SLICEWILD;
-               dev.d_partition =3D D_PARTWILD;
+               dev.d_partition =3D 0;
                /*
                 * If we cannot auto-detect the partition type then
                 * access the disk as a raw device.

This is not the correct long term patch but does indicate where the regress=
ion
occurred. I've cc'd a couple of other people that might know more about what
should be done here.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-283341-27103-d4zDeuHido>