OpenBSD installation on a Dedibox SC gen2

Online.net is a french hosting company, which provide dedicated servers (Dedibox). As of 2014, the cheapest one is named Dedibox SC gen2(VIA Nano U2250, 1 core @1.6 GHz x64, 2GB ram, 500 GB Hybrid + SSD ) at 9,99€/month.

In theory, the only OS you can install is the one provided by online.net. FreeBSD 8.1 is there, but there’s no OpenBSD or NetBSD version to play with.

Here’s a workaround (based on this one and this one):

In https://console.online.net , go in rescue mode (ubuntu 12.04 lts amd64), check dmesg in order to identify the network card (should be Intel e1000, em0 in OpenBSD, wm0 in NetBSD) and check network setup using ifconfig and route (for the gateway)
then:

#install qemu
apt-get update && apt-get -y install qemu
#get OpenBSD iso
wget ftp://ftp.openbsd.org/pub/OpenBSD/5.4/amd64/install54.iso

#proceed to the OpenBSD installation trough qemu (add -k fr for a french keyboard…)
#-no-kvm is necessary as Via VT instrutction doesn’t work with KVM (nor HVM…)
qemu-system-x86_64 -no-kvm -hda /dev/sda -cdrom install54.iso -curses -boot d

#do the OpenBSD installation as usual except that you shouldn’t use DUIDs names in fstab

#before shutting down, create the network configuration
cd /mnt/etc
echo inet xxx.xxx.xxx.xxx 255.255.255.0 xxx.xxx.xxx.255 > hostname.em0
echo xxx.xxx.xxx.1 > mygate
#add a dns server if you don’t specify any during the setup
echo nameserver 8.8.8.8 >> resolv.conf
#shutdown
halt

Then trough https://console.online.net , leave the rescue mode, wait few minutes…,and you should be able to ssh your OpenBSD box !


 

For NetBSD the installation could be performed the same way, with some NetBSD specificity.After the installation, you should not forget to:

enable sshd !
– Launch a shell (trough the utility menu), mount the installed system manually go to etc and create the network configuration (wm0 !!):
echo inet xxx.xxx.xxx.xxx netmask 255.255.255.0 broadcast xxx.xxx.xxx.255 >ifconfig.wm0
echo xxx.xxx.xxx.1 > mygate

– And most importantly you should (temporally) enable root login in sshd config:
echo PermitRootLogin yes >>ssh/sshd_config


PS: I tried FreeBSD 10, but I wasn’t able to get it run this way

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s