ctx->guides->openbsd-dedibox

Installing OpenBSD on Dedibox SC 2016

This is a quick install guide for those of you who want to run OpenBSD on the new server boxes from online.net. I did this on a Dedibox SC SSD 2016. First of all you need to install one of the provided OSes in order to access the rescue mode and serial console KVM on the server status page. Next, boot into (Ubuntu) rescue mode, login, and write the OpenBSD install media on disk:

$ curl -O 'http://ftp.fr.openbsd.org/pub/OpenBSD/5.8/amd64/miniroot58.fs'
$ sudo dd if=miniroot58.fs of=/dev/sda

Now reboot back into normal mode and access the serial console from your browser. If you were not fast enough to see the bootloader prompt, just force a reboot from the interface. Note that at the time of writing there is a glitch on the serial console interface and I see the key n being pressed every few seconds. Once you get ahold of the bootloader:

boot> set tty com1
boot> boot

When you reach the installer prompt, escape to shell. We need to erase the MBR because the miniroot image contains a wrong disklabel for our disk. Then exit the shell and go for the install option.

(I)nstall, (U)pgrade, (A)utoinstall or (S)hell? s
# dd if=/dev/zero of=/dev/rsd0c bs=1m count=1
1+0 records in
1+0 records out
1048576 bytes transferred in ...
# ^D
(I)nstall, (U)pgrade, (A)utoinstall or (S)hell? i

Now use the installer as usual. I got the correct address through DHCP. The installer will ask you if you want to use com1 as the default console. Say yes, with the default baud rate, so that you continue to see output in the KVM-over-IP console. If you miss that...

/etc/boot.conf:

set tty com1

Cheers!

lostd@