From owner-freebsd-bugs@freebsd.org Thu Oct 15 22:14:05 2020 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3507D448179 for ; Thu, 15 Oct 2020 22:14:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4CC3Tn0g4Gz45RK for ; Thu, 15 Oct 2020 22:14:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 16AB1448762; Thu, 15 Oct 2020 22:14:05 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 167014483EC for ; Thu, 15 Oct 2020 22:14:05 +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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CC3Tm6qN6z457V for ; Thu, 15 Oct 2020 22:14:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 CDC6F2667E for ; Thu, 15 Oct 2020 22:14: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 09FME4f9064968 for ; Thu, 15 Oct 2020 22:14:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 09FME4Lk064967 for bugs@FreeBSD.org; Thu, 15 Oct 2020 22:14: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: bugs@FreeBSD.org Subject: [Bug 250377] loader fails to detect zpool & reports ZFS: i/o error - all block copies unavailable since 12.0-12.2 Date: Thu, 15 Oct 2020 22:14:04 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dch@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Oct 2020 22:14:05 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D250377 Bug ID: 250377 Summary: loader fails to detect zpool & reports ZFS: i/o error - all block copies unavailable since 12.0-12.2 Product: Base System Version: 12.1-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: dch@freebsd.org FreeBSD 12.x amd64 (efi) loaders seems to behave differently than 11.x under xhyve OSX based hypervisor, where 11.x used to work. Using xhyve[1], 12.x amd64 all fails *after successful install* on reboot a= t: /boot/kernel/kernel text=3D0x16bdcc4 data=3D0x140 data=3D0x75fe80 ZFS: i/o = error - all block copies unavailable elf64_loadimage: read failed can't load file '/boot/kernel/kernel': input/output error Checking the resulting disk image by mounting on FreeBSD via mdconfig & zpo= ol scrub etc seems to be fine. Remounting it from the install CD is also fine. I have used xhyve on OSX to distribute FreeBSD VMs to developers for a few years now, and it's worked just fine on 10.x and 11.x for a simple reliable boot, including 11.4R. I re-tested these with 12.0,12.1 and now 12.2 RC2 and they all fail with the same error, but only after install completed successfully, which I don't yet understand. Finally, updating kernel from a working 11.4R -> 12.1R breaks with the same error on first reboot. Suggesting the newer loader itself is the issue. This seems a bit of an odd situation. What might be different between the install phase, and resulting loader detection after install? The error appears to be unaffected by block size, and is present since 12.0= at least. Rolling back xhyve patches to the original ~2017-2018 version also shows no variation, so this appears to be something different in FreeBSD 12.x and not the hypervisor itself. [1]: https://github.com/machyve/xhyve "bhyve for OSX" [2]: https://github.com/machyve/xhyve/issues/111=20 The same image, whether produced from release ISOs on FreeBSD or on xhyve, fails when launched from xhyve. how to reproduce (requires a mac with homebrew at least for the final step) - create a 5G sparse disk image - start FreeBSD and do install iso dance - move the dis image after install to OSX - test via following invocation of xhyve #!/bin/sh UUID=3D"-U deaddead-dead-dead-dead-deaddeaddead" CD=3D"/downloads/images/FreeBSD-12.1-RELEASE-amd64-disc1.iso" IMG=3D"xhyve-12.1R.img" USERBOOT=3D"$(brew --prefix xhyve)/share/xhyve/test/userboot.so" BOOTVOLUME=3D$CD KERNELENV=3D"" MEM=3D"-m 8G" SMP=3D"-c 2" PCI_DEV=3D"-s 0:0,hostbridge -s 31,lpc" NET=3D"-s 2:0,virtio-net" IMG_CD=3D"-s 3:0,ahci-cd,$CD" IMG_HDD=3D"-s 4:0,virtio-blk,$IMG" LPC_DEV=3D"-l com1,stdio" ACPI=3D"-A" sudo xhyve $ACPI $MEM $SMP \ $PCI_DEV $LPC_DEV \ $NET \ $IMG_CD $IMG_HDD \ $UUID -f fbsd,$USERBOOT,$BOOTVOLUME,"$KERNELENV" --=20 You are receiving this mail because: You are the assignee for the bug.=