From nobody Fri May 15 17:59:46 2026 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 4gHFMk2RtBz6dllk for ; Fri, 15 May 2026 17:59:46 +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 "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gHFMk1SRBz3ptn for ; Fri, 15 May 2026 17:59:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1778867986; 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; bh=JZCZLaU01u3gV4iiDnt0SjIgTHAmuJvzALPGUkmCrs8=; b=GjQ3qY4WgdvAaQfmxUAMbhs7lGjeTqn4LgaO4n20Uf2fnoKy96YVtXK1ZF54hgnc6gtM+u CdygBdGsMRcespRkLCqm4XSFXg/Gd1HNGcIvAThwrLLBdxevY2R+8bJKk7gYVf7ufOBwKp rz145N/dgtovvqQnx/RsDSJubIXZmRk/TBM8dmuViKSQpaNt2zHpTSHLMFd+Zf1sDHgIJB N1hrJ49CMhkNw5OuWjNLq+UXmz8VPYhA78Tho9xvF2xJHtRWZNSsIcCuKe7c9wAyzVlv2A bRatn6w5B5RG92vijyHaQybOAS6nqD2p3kIqchII8eEo+VIZdO+DdUdXwbtAUA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1778867986; a=rsa-sha256; cv=none; b=tfdRPKdZDQQ+K+9MdToStUH9dknbhOuIamABYUvBSMN4Vezc7rxRM+09P2GIx7AAsiLAmV +Ie0njd1foNeSt5qVb7aWaxocZSExyNLPJ0binwpndB4EVndTxi4ooTgVp1eOQOjNDWRXD ubgdXkqLTApvBpZPThl3RGL1X2GKAI6WFvgRNN3YBA7w4f68GZ7EEl48tx1NabAjhYA3Af iZki9cl0bSD1rGR08kIlQCIwwX/G6EexqknNx4HMsKPKdIfNAc/VLqin1IIkj58CxoB1ux JgzYCiiM7ydq5fRmhoaKZ4dHGuT99n2B/0g5/OcvXSmXLA7MR0sIhakvrhtWOA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1778867986; 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; bh=JZCZLaU01u3gV4iiDnt0SjIgTHAmuJvzALPGUkmCrs8=; b=fiFTcljb/SuBHXIamMtDZwU/9KqN+vSd8chQdAmnVX36lKGCwXMPzwooV9Xnk6UrQ/I1JN LyFzjnjnzMXuWJlTW4LO5Gos1xaPk9dXbdZimYvRqFm1vkuE93urBUEr97J7hI7uYm7YOn VtZq89+KMzGkHYMPiKoKCV3wQB94EOAIpISCmVcI5YgeY62ou0MCz+5DoTF6A7N0Tc/vDa KPbGcICg9xkKQDYsHL7bXoD2BLYKf93jFzMIV14Wc8XTqMtK2XSP+EGStIHuljRdGwn4hn 6cUb8XkCP4C2a8BrJj76j+hfm1qk9m+LKlwEzsOAAimSV3XLc8QvytLAjHYkzg== 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 4gHFMk0VH7z2kJ for ; Fri, 15 May 2026 17:59:46 +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 64FHxjgm074476 for ; Fri, 15 May 2026 17:59:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 64FHxjq5074475 for virtualization@FreeBSD.org; Fri, 15 May 2026 17:59:45 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 295311] bhyve: Disk errors on a Debian VM when using ahci-hd, failure to boot with nvme Date: Fri, 15 May 2026 17:59:46 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: 15.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: 9vlc@proton.me X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@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 attachments.mimetype attachments.created Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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 List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D295311 Bug ID: 295311 Summary: bhyve: Disk errors on a Debian VM when using ahci-hd, failure to boot with nvme Product: Base System Version: 15.1-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bhyve Assignee: virtualization@FreeBSD.org Reporter: 9vlc@proton.me Attachment #270762 text/plain mime type: Created attachment 270762 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D270762&action= =3Dedit VM boot log file After updating my host from 15.0-RELEASE-p4 to 15.1-BETA2 my Debian 13 VM w= ith storage as a separate NVMe drive has stopped booting: BdsDxe: failed to load Boot0001 "UEFI bhyve-NVMe NVME-1-0" from PciRoot(0x0)/Pci(0x1,0x0)/NVMe(0x1,01-00-77-15-20-FC-9C-58): Not Found BdsDxe: No bootable option or device was found. BdsDxe: Press any key to enter the Boot Manager Menu. Switching the disk device in bhyve from "nvme" to "ahci-hd" results in it getting to GRUB and attempting to boot, but throwing a ton of disk errors like: [ 2.240679] res 41/04:00:00:00:00/00:00:00:00:00/a0 Emask 0x1 (device error) [ 2.241182] ata1.00: status: { DRDY ERR } [ 2.241317] ata1.00: error: { ABRT } [ 2.252197] ata1.00: configured for UDMA/133 [ 2.262639] ata1.00: device reported invalid CHS sector 0 [ 2.262828] ata1: EH complete [ 2.291791] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0 [ 2.292094] ata1.00: irq_stat 0x40000001 [ 2.292272] ata1.00: failed command: FLUSH CACHE EXT [ 2.292487] ata1.00: cmd ea/00:00:00:00:00/00:00:00:00:00/a0 tag 10 [ 2.292487] res 41/04:00:00:00:00/00:00:00:00:00/a0 Emask 0x1 (device error) [ 2.293073] ata1.00: status: { DRDY ERR } [ 2.293220] ata1.00: error: { ABRT } The VM does boot, but takes quite some time to do so and I absolutely do not trust it with my data in the current state. Here is the bhyve commandline I used: bhyve -DSHAw \ -c 2 -m 4g \ -l bootrom,/usr/local/share/edk2-bhyve/BHYVE_UEFI.fd \ -s 0,hostbridge -s 31,lpc \ -l com1,/dev/nmdm0A \ \ -s 1:0,nvme,/dev/nda0 \ \ -s 2:0,virtio-net,tap0,mac=3DREDACTED \ \ -s 5:0,fbuf,tcp=3D0.0.0.0:5900,wait \ -s 5:1,xhci,tablet \ \ $vm_name After some more testing, it seems like this only happens when I use the physical NVMe as the VM's storage. Doing passthrough on the NVMe does result in improvement: The VM boots alth= ough with some complaining from bhyve: (~/Desktop/linb) % sudo sh bhyve.sh=20 fbuf frame buffer base: 0x3188f4600000 [sz 33554432] pci_passthru: unmap_pptdev_mmio failed: No such file or directory pci_passthru: unmap_pptdev_mmio failed: No such file or directory pci_passthru: unmap_pptdev_mmio failed: No such file or directory pci_passthru: unmap_pptdev_mmio failed: No such file or directory pci_passthru: unmap_pptdev_mmio failed: No such file or directory pci_passthru: unmap_pptdev_mmio failed: No such file or directory pci_passthru: unmap_pptdev_mmio failed: No such file or directory pci_passthru: unmap_pptdev_mmio failed: No such file or directory pci_passthru: unmap_pptdev_mmio failed: No such file or directory pci_passthru: unmap_pptdev_mmio failed: No such file or directory pci_passthru: unmap_pptdev_mmio failed: No such file or directory pci_passthru: unmap_pptdev_mmio failed: No such file or directory pci_passthru: unmap_pptdev_mmio failed: No such file or directory pci_passthru: unmap_pptdev_mmio failed: No such file or directory Providing its copy as a file to the VM works fine. The OS installed on the = NVMe boots on bare metal. The NVMe is a 512GB Apacer from the 2280 line, I would like to know if a similar issue appears when=20 nvme0@pci0:1:0:0: class=3D0x010802 rev=3D0x01 hdr=3D0x00 vendor=3D0x1= 987 device=3D0x5013 subvendor=3D0x1987 subdevice=3D0x5013 vendor =3D 'Phison Electronics Corporation' device =3D 'PS5013-E13 PCIe3 NVMe Controller (DRAM-less)' class =3D mass storage subclass =3D NVM I have attached a full boot log of the VM loading to the rescue mode with t= he emulated storage as "ahci-hd". I really don't know if this is reproducible outside of my setup. --=20 You are receiving this mail because: You are the assignee for the bug.=