goneri / bsd-cloud-image.org

4 stars 1 forks source link

OpenBSD 6.8 boot loader not working on Digital Ocean Droplets #2

Closed justinnoor closed 5 months ago

justinnoor commented 3 years ago

Droplets are failing to boot on Digital Ocean with OpenBSD 6.8 images in region SFO3. The output in the recovery console indicates that the boot loader itself is not working. How do I troubleshoot this?

goneri commented 3 years ago

Hi @justinnoor,

Do you have a copy of the output? I imagine the name of the disk get changed, and because of that the bootload lose access to the root partition. Do you know if they use virtio?

justinnoor commented 3 years ago

Struggling to get the output - coupled with a wasteful exchange with DO. What should the name of the disk be when the bootloader attempts to access the root partition?

goneri commented 3 years ago

You should have something like this during the boot:

sd0 at scsibus2 targ 0 lun 0: <VirtIO, Block Device, >
sd0: 15360MB, 512 bytes/sector, 31457280 sectors
justinnoor commented 3 years ago

The console is literally just a blank screen. It's only accessible through the GUI in my DO portal. There's no way to scroll through it. openbsd_cloud_image_not_booting_0

goneri commented 3 years ago

Excerpts from Justin Noor's message of March 28, 2021 5:20 pm:

The console is literally just a blank screen. There's no way to scroll through it.

The console is on the first serial port, not on the VGA display. -- Gonéri Le Bouder

justinnoor commented 3 years ago

This is the only method that I know of for accessing the console on a Digital Ocean droplet. The console can only be accessed through the user portal of a Digital Ocean account. Thank you.

goneri commented 3 years ago

In this case, the best is to generate a new image with the serial console of, this would also give you the opportunity to adjust the boot device.

This is the repo and script I use to build the image: https://github.com/goneri/pcib/blob/master/build.sh

To disable the serial console, just remove this file: https://github.com/goneri/pcib/blob/master/plugins/os/openbsd/tasks/50-serial-console.sh

goneri commented 5 months ago

You can also give a try to the new tool that we use to build the image: https://github.com/hcartiaux/openbsd-cloud-image