Enable Hypervisor in BIOS, first.
Install Docker for just in case, in other post.
Install QEMU and Libvirt:
sudo dnf install libvirt qemu-kvm qemu-system-x86-core
Enable additional CGroups
ability. Too bad my AMD processor doestn’t have SVE. So, secure guest is not supported.
sudo grubby --args="intel_iommu=on systemd.unified_cgroup_hierarchy=0" --update-kernel=ALL
sudo dracut -f
Add users:
sudo usermod -aG docker $USER
sudo usermod -aG libvirt $USER
sudo usermod -aG kvm $USER
Restart. Or use newgrp
.
Install Minikube
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
chmod +x minikube-linux-amd64 && sudo install -m0755 minikube-linux-amd64 /usr/local/bin/minikube
minikube start --driver kvm2 --cpus=4 --memory=12000
minikube addons enable ingress
Add kubectl
alias k="minikube kubectl -- "
alias kubectl=k