-
-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenBSD 7.4 unable to boot installer image #530
Comments
I was also able to start the vm with the following config using the uefi mode and the install74.img installer:
But I am getting the following error:
|
fwiw, there is a known issue starting with OpenBSD 7.4 where (supposedly) grub
It sounds like UEFI boot should work - but I am not sure which options will make vm-bhyve happy. From my discussions with another user (who I believe is using just
I have not had any luck myself trying to get it to boot using UEFI. |
Update: So far I have realized that for some reason openbsd does not support com0 output and when you set com0 as the default output the boot is unsuccessful (error above). Ended up using vnc, and that worked. Am going to try some more options.
|
I think it is worth leaving this issue open so others can easily find it until upstream fixes it. I do not think a graphical boot is a viable work around in all cases. |
You are right! |
I've been playing with this some more and it looks like booting with a .iso does not work when the vm-bhyve tl;dr - it appears OpenBSD does not support booting UEFI from an .iso. However, serial console output works just fine if you execute
I tried out your patch (#531) and removed all the graphics stuff and loaded the Here is my vm-bhyve configuration file for reference:
If I comment out ... so it never even boots the OpenBSD installer. |
The .iso installer does not work with UEFI because it does not contain the UEFI boot files (they are included in the .img installer though). OpenBSD has removed support for the legacy console standard: openbsd/src@745c2f6. I am pretty sure that grub2-bhyve can support it relatively easily, but for some reason does not want to work for me yet. That might be worth exploring. Side note: |
(I use curl or wget to fetch images into However, I'm running into something else which prevents running OpenBSD any further
|
I believe that when you run |
Either using `vm install` or adding disk1 as virtio-blk functions the same
for me.
…On Thu, Nov 9, 2023 at 4:21 PM 0x1F680 ***@***.***> wrote:
I believe that when you run vm install router2 install74.img the install
image gets mounted as an ahci-cd device and not as an virtio-blk device.
That is the issue when using vm install.
—
Reply to this email directly, view it on GitHub
<#530 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAG4ENNJKMDP5L4AJYSOPELYDWFSNAVCNFSM6AAAAAA6Z55Y2KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBUHE3TIOJRGY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
For anyone interested, I just added support to mkobsd for the .img installer type. I also added support for customizing the installer tree (this makes it easy to automate adding |
For reference, as the author of the recipe above, this no longer works - you must install OpenBSD in UEFI mode using a "graphics" installer and VNC but set the console to serial. You can then remove the graphics and just boot using something like this:
This will give you a classic "server" set up with a serial console which will work with |
That wasn't the problem either. My problem was the package edk2.
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274389
…On Thu, Dec 28, 2023 at 8:41 AM Arrigo ***@***.***> wrote:
- install OpenBSD using grub *but* select EFI (GPT) partitioning (you
can tell you did it because an “i” partition appears)
- at the reboot (end of install) *halt*
- shut down the VM
- edit /bhyve/machinename/machinename.conf changing it from grub to
uefi (yes, just that line, ignore the rest)
- boot and it will work, console too
- ***@***.***/111262678468763422
I have not had any luck myself trying to get it to boot using UEFI.
For reference, as the author of the recipe above, this no longer works -
you *must* install OpenBSD in UEFI mode using a "graphics" installer and
VNC but set the console to serial. You can then remove the graphics and
just boot using something like this:
loader="uefi"
cpu="2"
memory="8G"
This will give you a classic "server" set up with a serial console which
will work with vm console and allow you to upgrade with sysupgrade
without needing to turn on graphics & VNC again.
—
Reply to this email directly, view it on GitHub
<#530 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAG4ENIFG3BY2FXT6GQGNV3YLW4ONAVCNFSM6AAAAAA6Z55Y2KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZRGQYDSMRSGI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hello, I am trying to create an OpenBSD vm. Here are my steps:
(the template was changed - one line:
grub_install0="kopenbsd -h com0 /7.4/amd64/bsd.rd"
)It boots up fine with
cd0
, then it hangs for about 5-10sec (not sure hot to get verbosity), and then spontaneously reboots. After that the installer iso (cd0
) unmoounts and naturallyhd0,1
does not exist. The boot fails.I tried the method above with the 6.2 version of OpenBSD, that works...
I am not sure how to resolve the problem. Have been picking around, but even manually loading the OpenBSD kernel in grub and trying to boot that way does not work.
The text was updated successfully, but these errors were encountered: