From nobody Mon Dec 16 00:33:04 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 4YBLWh6VSrz5gYX2 for ; Mon, 16 Dec 2024 00:33:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YBLWh4hxkz596r for ; Mon, 16 Dec 2024 00:33:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734309184; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8aXQx3sxk3uxnOZvqYb9ft8D67qnvyYLZ3ICXJU6Vvo=; b=QaUR0FfAzQjJVDsRdAvaAkYwNqI5hxCFTAKrTQRLirrLD76EX9RoFlURzZJQbVcRvimVUC +UUp8ODqsstyv1ir4gk/V4iwaf3FCW03vMbHERB0s17V03PMSR+MXx1lzIxWYx5nIWThb2 Lz3reqfzLZOQqjyXrjVHDCSo7lgcdy1y1sl8LegQewpYdPTvGO40MJvClSZfqqXAj0T/pJ p69iz8XaRuppVhjmp7TvcvFMn2qwYON+59jVjDMuopr+mWYOI6jbYxZgjEddz+ByBuoIx+ nvG0l6XbcmINqfo+65PyUUP8jqOBbkVsyRVxC9s2nrJSzW22ytcA8IA4tXY3Kg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1734309184; a=rsa-sha256; cv=none; b=QioZ1N+sb+St9bFuxyk5n4w7FRwJOEoOxNujaQ7xG5/XfizKS0TtFA3nM4R46oqVT9MFUF Epkr4OvCgAerLw/QA80m0A2rGKgCuScm0YjE6VSZjtwANr3uJtJ6Mn1Zy14Heo+knVbmOr ezQbaMQ87oH9mhx6SEIEIPpMXoHlh0qIV9yHf9qgjNitTiCP5MPV5d5k67Jxe2yyh3yLgF CD4zK02t3RIfn8qBRlZOXEb87xDpn8SEAF9tCVFLrKEAoXGFSuQ9oFZ+HEYp1pdbiUyyzO grW5XZN++OvDWOuogt3aug8s6nVyWi8Fv6SLZBRT3r2D0p6hdXHlzHN6/KbxCA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YBLWh4C5PzXNJ for ; Mon, 16 Dec 2024 00:33:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4BG0X4cI090047 for ; Mon, 16 Dec 2024 00:33:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4BG0X4eR090046 for virtualization@FreeBSD.org; Mon, 16 Dec 2024 00:33:04 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f 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 Date: Mon, 16 Dec 2024 00:33:04 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: bhyve X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: mp@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283341 --- Comment #1 from Mark Peek --- 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.=