Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 08 Jun 2024 04:43:30 +0000
From:      bugzilla-noreply@freebsd.org
To:        virtualization@FreeBSD.org
Subject:   [Bug 279584] UEFI-booted VM does not support read-only storage with virtio-blk
Message-ID:  <bug-279584-27103@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 279584
           Summary: UEFI-booted VM does not support read-only storage with
                    virtio-blk
           Product: Base System
           Version: 14.0-STABLE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bhyve
          Assignee: virtualization@FreeBSD.org
          Reporter: editor@callfortesting.org

A UEFI-GOP/bhyve-firmware booted VM will not support a boot drive.

Scenario one:

-s 2,virtio-blk,/freebsd.raw,ro

Scenario two:

freebsd.raw is on a ZFS dataset and the dataset is set to 'readonly=3Don'.

Output in both cases:

BdsDxe: failed to load Boot0001 "UEFI Misc Device" from
PciRoot(0x0)/Pci(0x2,0x0): Not Found

Works:

-s 2,virtio-blk,FreeBSD-14.0-RELEASE-amd64-disc1.iso

Fails:

-s 2,virtio-blk,FreeBSD-14.0-RELEASE-amd64-disc1.iso,ro

Work on writable underlying storage:

-s 2,ahci-cd,FreeBSD-14.0-RELEASE-amd64-disc1.iso
-s 2,ahci-cd,FreeBSD-14.0-RELEASE-amd64-disc1.iso,ro
-s 2,ahci-hd,FreeBSD-14.0-RELEASE-amd64-disc1.iso
-s 2,ahci-hd,FreeBSD-14.0-RELEASE-amd64-disc1.iso,ro
-s 2,nvme,FreeBSD-14.0-RELEASE-amd64-disc1.iso

Fails on writable underlying storage (for what it's worth):

-s 2,nvme,FreeBSD-14.0-RELEASE-amd64-disc1.iso,ro

Work on read-only underlying storage:

-s 2,ahci-cd,FreeBSD-14.0-RELEASE-amd64-disc1.iso
-s 2,ahci-cd,FreeBSD-14.0-RELEASE-amd64-disc1.iso,ro
-s 2,ahci-hd,FreeBSD-14.0-RELEASE-amd64-disc1.iso
-s 2,ahci-hd,FreeBSD-14.0-RELEASE-amd64-disc1.iso,ro

Fail on read-only underlying storage (for what it's worth):

-s 2,nvme,FreeBSD-14.0-RELEASE-amd64-disc1.iso
-s 2,nvme,FreeBSD-14.0-RELEASE-amd64-disc1.iso,ro

This behavior appears to be limited to the virtio-blk back-end.
Reported by: Chris M from the bhyve Production User Call

--=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-279584-27103>