* The cover image is originally by KevinYi and edited with great appreciation.
The process is simple and small:
- DigitalOcean Panel
- Create FreeBSD drolpet with SSH login enabled.
- Download OS image.
- Write it into the storage.
- DigitalOcean Droplet Console
- Reboot and run the installer.
The detailed steps are below.
First of all, (sign up as needed and) sign in DigitalOcean.
Then, create FreeBSD droplet in the menu of DigitalOcean: "Create Droplets".
* Note: Both ufs and zfs are acceptable.
Remember to set up "Add your SSH keys".
Besides, we can generate the key via command line like this:
$ ssh-keygen -t rsa -C "%YOUR-EMAIL-ADDRESS%"
Connect to the droplet as root or superusers with SSH client:
$ ssh -i ~/.ssh/%id_rsa% root@%YOUR-HOST%
Download the installer image as
# fetch https://cdn.openbsd.org/pub/OpenBSD/6.4/amd64/miniroot64.fs miniroot64.fs 100% of 4800 kB 10 MBps 00m00s
Then, stop swap:
# # case ufs: # swapoff /dev/gpt/swap # # case zfs: # swapoff /dev/gpt/swap0
Also, stop geom debugging in order to enable writing data into storage:
# sysctl kern.geom.debugflags=0x10 kern.geom.debugflags: 0 -> 16
Write the installer image into the storage:
# dd if=miniroot64.fs of=/dev/vtbd0 bs=512k 9+1 records in 9+1 records out 4915200 bytes transferred in 0.135897 secs (36168532 bytes/sec)
Are you ready to "Access console"?
OK. Let's reboot the virtual machine:
Wait for the boot completion with DigitalOcean console open.
The OpenBSD installer will ask you which option to choose clearly as usual!
* Tip: Choosing
shell instead of
autoinstall enables us to apply full disk encryption.
In order to do so, run the command like this (Excerpt) on the shell:
bioctl -c C -l /dev/sd0a softraid0
When configuring networking with the installer, you need to use the value of "PUBLIC IP ADDRESS"/"GATEWAY"/"NETMASK" at the bottom of the console instead of DHCP and so on:
- IPv4 address for vio0? = "PUBLIC IP ADDRESS"
- Netmask for vio0? = "NETMASK"
- Default IPv4 Route = "GATEWAY"
- DNS nameservers: 22.214.171.124 126.96.36.199 (For example)
You will get location of sets via http.
After all of the installation are finished and the virtual machine is rebooted, you would say "Hello, OpenBSD":
I wish you enjoy happy computing with OpenBSD on DigitalOcean, the cool system and the cool service : )