This guide provides step-by-step instructions to start Minikube using the Podman driver on Rocky Linux. It also includes troubleshooting steps for common issues encountered during the setup.
sudo dnf install epel-release curl wget -y
sudo dnf install podman -y
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-latest.x86_64.rpm
sudo rpm -Uvh minikube-latest.x86_64.rpm
Delete Existing Minikube Profile:
Start by deleting the existing Minikube profile to clear any previous configurations:
minikube delete --all
1.1. Configure sysctl for port 80 and up for rootless users:
Run this command:
modprobe br_netfilter
Add these lines into /etc/sysctl.conf
net.bridge.bridge-nf-call-iptables=1
net.ipv4.ip_forward=1
net.ipv4.ip_unprivileged_port_start=80
net.ipv4.ping_group_range = 0 655350
net.core.rmem_max = 2129920
net.core.wmem_max = 2129920
net.ipv6.conf.all.forwarding = 1
net.ipv6.conf.default.forwarding = 1
Save the file and run this command: sysctl -p or sudo sysctl -p
1.2. Delete CPU for podman rootless user:
Make sure the user have sudo access to systemctl command
sudo systemctl edit --force --full [email protected]
Under service section add:
[Service]
Delegate=yes
Exit the file:
Run sudo systemctl daemon-reload
Run sudo systemctl restart user@$(id -u)
Example from user: sudo systemctl status user@1000
Ensure Podman is Installed and Configured:
Make sure that Podman is installed and properly configured on your system. You can install Podman using:
sudo dnf install -y podman
Verify that Podman is working correctly:
podman info
Check Cgroup Manager:
Ensure that the cgroup manager is set to `cgroupfs` for Podman. You can configure this in the Podman configuration file, typically located at `/etc/containers/containers.conf`.
Open the configuration file:
sudo vi /etc/containers/containers.conf
Ensure the following lines are present:
[containers]
cgroup_manager = "cgroupfs"
Reinitialize Minikube with Podman Driver:
Initialize Minikube with the Podman driver again:
minikube config set rootless true
minikube config set driver podman
Recomended runtime for rootless podman with minikube:
minikube start --driver=podman --container-runtime=containerd
#minikube start --driver=podman
This error indicates that Minikube is trying to start an existing Podman container named `minikube`, but it cannot find it. Follow these steps to resolve the issue:
Delete Existing Minikube Profile:
minikube delete --all
Clean Up Podman Containers and Images:
Ensure there are no leftover Podman containers or images that could be causing conflicts:
podman ps -a
podman rm -f \$(podman ps -aq)
podman rmi -f \$(podman images -q)
Check Minikube and Podman Logs:
If the issue persists, check the logs for more detailed error messages:
minikube logs --file=logs.txt
podman logs minikube
Update Minikube and Podman:
Ensure you have the latest versions of Minikube and Podman installed, as newer versions may contain fixes for the issues you are encountering.
For more detailed instructions and additional configuration options, please refer to the Minikube official documentation.
By following these steps, you should be able to resolve the issue and successfully start Minikube with the Podman driver on Rocky Linux. If you continue to encounter problems, refer to the detailed logs for further insights and consider updating both Minikube and Podman to the latest versions.
EOF