alexkarle.com

Source for alexkarle.com
git clone git://git.alexkarle.com/alexkarle.com.git
Log | Files | Refs | README | LICENSE

openbsd-on-linode.txt (1492B) [raw]


      1 OpenBSD on Linode
      2 =================
      3 Tues Sept 21, 2021
      4 
      5 tags: openbsd
      6 
      7 I'm a huge fan of OpenBSD. The simplicity of the system, the cohesive
      8 feel it has, the proactive stance on security... The only problem?
      9 My preferred cloud provider (Linode) doesn't support it!
     10 
     11 Fortunately there's a comprehensive post on the Linode forum of how to
     12 do it [1].
     13 
     14 I wanted to document it here in case said post ever goes away.
     15 
     16 1. Create a New Linode (any OS will do)
     17 2. Once booted, shut it down
     18 3. Under the "Storage" tab delete the ext4 partitions
     19 4. Create two new disks, both "Raw" format:
     20    - One labeled "install", 1GB (could do less)
     21    - One labeled "os", the rest of the space
     22 5. Boot in "Rescue" mode
     23 6. In the serial console, wget the minirootXX.img
     24    - Check the sha256 against the SHA256 file
     25    - Check the signature using signify (on a different machine that
     26      has signify)
     27 7. Find the install disk with `lsblk`
     28 8. Flash the img using: `dd if=minirootXX.img of=/dev/sdX bs=1M`
     29 9. In the Configurations tab, create a new one:
     30    - Full Virtualization
     31    - Select a Kernel > Direct Disk
     32    - /dev/sda - os
     33    - /dev/sdb - install
     34    - boot from sdb
     35 10. Reboot into configuration, install OpenBSD from serial console
     36 11. Halt/shutdown, and change configuration to boot from sda
     37 12. Rejoice!
     38 
     39 NOTE: if you skip the "Direct Disk" kernel step, it boots a Linux
     40 kernel and tries to load the img... it panics every time!
     41 
     42 [1]: https://www.linode.com/community/questions/10329/openbsd-on-linode