Bug 260178 - bhyve: passthru makes ahci-hd boot fail
Summary: bhyve: passthru makes ahci-hd boot fail
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bhyve (show other bugs)
Version: CURRENT
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-virtualization (Nobody)
Keywords: bhyve
Depends on:
Reported: 2021-12-02 19:24 UTC by Bjoern A. Zeeb
Modified: 2021-12-03 09:41 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Bjoern A. Zeeb freebsd_committer 2021-12-02 19:24:14 UTC
Next funny problem with passthru;  I am booting from a raw disk which works fine.

        -S \
        -s 0,hostbridge \
        -s 3,ahci-hd,/dev/da0,sectorsize=512 \
        -s 10,virtio-net,tap1 \
        -s 31,lpc \

Now I added a passthru device to the same bhyve config (-S was there already) and the boot starts to fail:

        -s 11,passthru,2/0/0 \

BdsDxe: failed to load Boot0001 "UEFI BHYVE SATA DISK BHYVE-9E55-9829-EEEE" from PciRoot(0x0)/Pci(0x3,0x0)/Sata(0x0,0xFFFF,0x0): Not Found

Removing the passthru device from this config and the virtual machine boots just fine again.

Anyone suggestions where to start before I dive in?
Comment 1 Corvin Köhne 2021-12-03 07:04:57 UTC
Would be helpful if you give some more information about your /dev/da0 device and your pci device 2/0/0.

Are these devices somehow related to each other?
Comment 2 Bjoern A. Zeeb freebsd_committer 2021-12-03 09:41:39 UTC
In that case one was an external USB disk, the other an internal M.2 PCIe card.