Start arch Linux (Manjaro) minikube with KVM2

Installation of required packages

yay -S minikube kubectl docker-machine-driver-kvm2 libvirt qemu-headless ebtables



Enable libvirtd

sudo systemctl enable libvirtd.service
sudo usermod -a -G libvirt $(whoami)



Enable libvirt's default network

sudo virsh net-autostart default



Make minikube use kvm2 by default

minikube config set vm-driver kvm2

 

Allocate 1/4 of the installed memory to minikube

 If you're using Manjaro, make the free command the default free command.

unalias free
MEMORY_FRACTION=4
minikube config set memory "$(($(free --mega | head -n2 | tail -n1 | cut -c15-27)/$MEMORY_FRACTION))"



Start and check

minikube start
kubectl cluster-info

Show Minikube dashboard

minikube dashboard

Recommended Posts

Start arch Linux (Manjaro) minikube with KVM2
Use WDC-433SU2M2 with Manjaro Linux
Start a process with a scheduling policy on Linux
Get the latest Linux kernel version with Arch Linux
Arch Linux Recommendation
jblas on Arch Linux
Start M5Stack with UIFlow
Linux (Lubuntu) with OneMix3S
linux with termux app
Start IPython with virtualenv
manjaro linux configuration memorandum
Arch Linux installation notes
Start today with Django
Learn "x86 architecture learned with your own emulator" with Manjaro (Linux)