Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Jun 2020 19:15:54 +0000
From:      bugzilla-noreply@freebsd.org
To:        virtualization@FreeBSD.org
Subject:   [Bug 247599] bhyve exits when booting UEFI OpenBSD 6.7 guest
Message-ID:  <bug-247599-27103@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 247599
           Summary: bhyve exits when booting UEFI OpenBSD 6.7 guest
           Product: Base System
           Version: 12.1-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bhyve
          Assignee: virtualization@FreeBSD.org
          Reporter: kelp@plek.org

On FreeBSD 12.1-RELEASE-p6 when installing an OpenBSD 6.7 guest with UEFI b=
oot,
bhyve exits very early in the boot process.

I'm running bhyve like this:

bhyve -c 1 -m 4G -Hwl bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
        -s 0,hostbridge \
        -s 31,lpc -l com1,stdio \
        -s 3:0,ahci-hd,/zroot/vm/.iso/install67.fs,ro \
        -s 4:0,virtio-blk,/dev/zvol/zroot/vm/openbsd1/disk0.img \
        -s 5:0,virtio-net,tap3,mac=3D58:9c:fc:01:ff:4e \
        openbsd1

And I get:

probing: pc0 com0 com1 mem[640K 3049M 16M 20K 4M 64K 1024M]
disk: hd0 hd1*
>> OpenBSD/amd64 BOOTX64 3.50
boot>
cannot open hd0a:/etc/random.seed: No such file or directory
booting hd0a:/6.7/amd64/bsd.rd: 3826379+1557504+3881976+0+598016
[301104+128+465696+311208]=3D0xa71778
entry point at 0x1001000
rdmsr to register 0xc80 on vcpu 0

When searching around for solutions, I found this github issue:
https://github.com/machyve/xhyve/issues/179

That contains a workaround, which does work for me at the OpenBSD boot: pro=
mpt
run this:

set tty com0

Then I can get a clean boot and install, and everything is fine after that.

I'm not sure if this is more a bhyve issue, or an OpenBSD issue, but figure=
d it
was worth reporting here. I can reproduce this 100%.

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