Pi Kube
Preparing Ubuntu images

Download the Ubuntu raspberry pi image from the Ubuntu Server for Raspberry Pi page.

Then use the gnome-disks program to copy it onto an SD card.

And then wait.

Once the image has been written, remove the SD card and then reinsert it (if necessary; about half the time it just mounted the new partitions for me.) Then you need to do things:

  1. Create an empty file called “ssh” on the system-boot partition. There are any number of ways to do this, but something like touch /media/$USER/system-boot/ssh should work if you like working from the command line.

  2. There will be a file in the system-boot partition named nobtcmd.txt. This file contains the kernel command line options used when linux is started. To work with k3s, you want to add cgroup_memory=1 cgroup_enable=memory to the end of the line.

  3. If you want to overclock your Pi, you should add your overclock parameters to usrcfg.txt in the system-boot partition. This is slightly different from the way you do it in Raspbian, where you edit config.txt directly; The Ubuntu boot system has things broken out a bit more.

You need to do these things for each SD card you’re setting up. Once this is done, you will have a system image that will boot Ubuntu on your cards, and you’re ready to start deploying things.

11 Mar 2020
Design pdevty