June 10, 2019
OpenBSD on AMD Athlon at Hetzner
OpenBSD is one of the most secure operating systems on the market. Impressive consistency and documentation through man-pages makes this OS one of the easiest to maintain too. OpenBSD/amd64 runs on AMD’s Athlon-64 family of processors in 64-bit mode. It also runs on processors made by other manufacturers which have cloned the AMD64 extensions.
Thankfully to Hetzner’s idea to reuse hardware of terminated products it is still possible to find an economic yet powerful system. It is also reasonable in terms of ecological aspects.
Inspired by The Tor BSD Diversity Project I have decided to run a Tor relay on AMD Athlon 64 6000+ X2 processor.
Server is delivered in rescue system. Connecting over SSH with tunneling of VNC port makes whole installation easy.
# ssh -L 5900:localhost:5900 firstname.lastname@example.org;
Make sure there is no partition on hardisks nor any software RAID enabled.
Note down the DNS resolvers, the default gateway, IP and IPv6 addresses, and ethernet driver.
# cat /etc/resolv.conf; # ip route show; # ifconfig eth0; # lspci | grep Ethernet;
Install QEMU. It is a generic and open source machine emulator and virtualizer.
# apt-get install qemu;
Download OpenBSD ISO image to install a new system from.
# wget https://ftp.eu.openbsd.org/pub/OpenBSD/6.5/amd64/install65.iso;
Boot dual proccessor virtual machine with 2GB of memory and first disk attached to it. The ISO image is mounted as a CD-ROM and there is a VNC enabled.
# qemu-system-x86_64 -smp cpus=2 -m 2048 -hda /dev/sda -net nic -boot d -vnc localhost:0 -cdrom /root/install65.iso;
Connect your VNC client to localhost:5900 and continue installation normally. Refer to the official INSTALLATION NOTES for OpenBSD/amd64.
The OpenBSD installer will configure virtual network device what needs to be copied to the Realtek later.
# cp hostname.em0 hostname.re0;
Check your default gateway and hostname.
# cat /etc/mygate; # cat /etc/myname;
Make sure you have the final SSH daemon configuration in place as well.
# vi /etc/ssh/sshd_config;
Halt your QEMU virtual machine and reboot the rescue system.
Next SSH connection will offer new SSH keys and will connect you to the newly installed OpenBSD.
# uname -a'
Gridcoin wallet - SKfzgU78kcL3gZoiH8nBVkxaEEi3WhL65r