OpenBSD on DigitalOcean_

November 07, 2019 @08:46

Last night I had a need to put together a new OpenBSD machine. Since I already use DigitalOcean for one of my public DNS servers I wanted to use them for this need but sadly like all too many of the cloud providers they don't support OpenBSD. Now they do support FreeBSD and I found a couple writeups that show how to use FreeBSD as a shim to install OpenBSD.

They are both sort of old at this point and with OpenBSD 6.6 out I ran into a bit of a snag. The default these days is to use a GPT partition table to enable EFI booting. This is generally pretty sane but it looks to me like the FreeBSD droplet doesn't support this. After the installer rebooted the VM failed to boot, being unable to find the bootloader.

Thankfully DigitalOcean has a recovery ISO that you can boot by simply switching to it and powering off and then on your Droplet.

Recovery boot options

This boots what appears to be an Ubuntu image with a menu of options that can help you fix your Linux based VM. In fact instead of using the FreeBSD install to shim your OpenBSD install you could do the following.

The key piece though is to make sure you partition the disk MBR. I went with the (W)hole disk MBR and then the default automatic disklabel layout, others choose to label their disks differently but as long as the base partition table is MBR your Droplet should boot ok.

OpenBSD on DigitalOcean booting

Subscribe via RSS. Send me a comment.