Walkthrough of K8s The Hard Way - https://github.com/kelseyhightower/kubernetes-the-hard-way/tree/master
PART 01 - PREREQUISITES
https://github.com/kelseyhightower/kubernetes-the-hard-way/blob/master/docs/01-prerequisites.md
We had a cpu lying with lots of space at SDSLabs. Although I use Mac M1, it doesn’t have enough space as mentioned. Maybe it could have run but i decided to setup 3 vm’s (server’s and node) on the the ubuntu installed system. (let’s call it poseidon)
For creating the vm’s, I chose qemu. Part of the reason being comfortable with it and subtle dislike for virtualbox. And it’s a learning project, so I honestly don’t care about any performance overhead.
Configuring Qemu
Enable Virtualization
egrep -c '(vmx|svm)' /proc/cpuinfo
If output is zero, look up on net how to enable it for your device, should be straigtforward.
Install Qemu and download Debian Image
sudo apt update
sudo apt install qemu-system qemu-utils qemu-efi-aarch64
wget <replace with link of the iso from : https://cdimage.debian.org/debian-cd/current/arm64/iso-cd/>
Also, make sure your user is the root user, if not, you’ll have to make sure it is added to the respective groups if required. I have root privileges, so skipping this part.
# Create a virtual hard drive of 20gb
qemu-img create -f qcow2 debian12-arm64.qcow2 20G
# Configure the vm
qemu-system-aarch64 \\
-m 2048 \\ #2gb ram
-smp 1 \\ # 1cpu
-machine virt \\
-drive file=debian12-arm64.qcow2,format=qcow2 \\ #disk you just created
-cdrom debian-12.7.0-arm64-netinst.iso \\ #debian download
-net nic \\
-net user \\
-nographic