Install Ubuntu on Raspberry Pi

Based on official documentation : https://microk8s.io/docs/install-alternatives#heading–arm

Hardware requirements:
  • Raspberry PI 4 B board (4CPU, 4GB) less ressources is not suitable

  • At least 20Gi SD Card

Download assets

To flash Ubuntu in SD you will required :

Flash Ubuntu on SD Card

Select other image

Select other

Select SD Card

Select SD Card

Click on write and wait

Wait

You can cancel verification

Verify

Edit cmdline.txt

Warning

In order to get Microk8s working on this Ubuntu, you need to edit cmdline.txt

This step is the most important, do not skip this one.

Put again SD card on you computer, with fresh flashed Ubuntu.

Open cmdline.txt at SD card root

Verify

Something like that will appear

net.ifnames=0 dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=LABEL=writable rootfstype=ext4 elevator=deadline rootwait fixrtc

Append at the end of line :

cgroup_enable=memory cgroup_memory=1

Once cmdline.txt has been edited, the file will be like that:

net.ifnames=0 dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=LABEL=writable rootfstype=ext4 elevator=deadline rootwait fixrtc cgroup_enable=memory cgroup_memory=1

Save and close cmdline.txt.

Remove SD card safely.

Default ssh credentials

  • User: ubuntu

  • Password: ubuntu