Closed crasu closed 1 year ago
Seeing the exact same thing using minikube v1.26.0 on fedora 26. I'm running kubevirt v0.55.0 using the minikube addon. Looking through the virt-handler logs showed some issues with the handler finding /var/run/libvirt/libvirt-* & /dev/mem files along with the same network issues you mention.
Looks like a possible permission issue. It works fine running as root and starting with 'minikube start --force', so that is my current workaround. It is not ideal though. Adding the user to the libvirt and kvm groups doesn't seem to help either.
/cc @phoracek
You're using an unsupported K8s version: v1.20.2
The KubeVirt project only supports the previous 3 kubernetes releases, 1.22 / 1.23 / 1.24.
I recommend you retry with a newer version.
Furthermore, I find suspicious that the error points specifically at configuring IPtables rules - not at creating the tap device / bridges - which are also privileged operations that occur before attempting to write the NAT rules.
At the time it failed with the newest version as well (see original report). Just tried 1.24 -> fails with the same message.
minikube start --kubernetes-version='v1.24.0' --driver=kvm2 --cni=flannel --memory=8gb --cpus=8
What are your thoughts on the IPtables clue, @maiqueb ? What does it imply to you?
What are your thoughts on the IPtables clue, @maiqueb ? What does it imply to you?
We've seen issues in the past with nodes having old kernel versions. What is the kernel version of your host ?
I am thinking along the lines of this opened issue, where iptables (which is deprecated in KubeVirt) was being used instead of nftables - in this issue there's a twist: seems it can't use nftables nor iptables, which throws the Couldn't configure ip nat rules
error.
... having said that, I do not know why iptables / nftables are failing for lack of permissions.
I'll try to reproduce this when I can spare some time.
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale
.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close
.
/lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten
.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close
.
/lifecycle rotten
Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen
.
Mark the issue as fresh with /remove-lifecycle rotten
.
/close
@kubevirt-bot: Closing this issue.
Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
What happened: I tried to setup kubevirt with minikube by following this tutorial on Ubuntu (https://kubevirt.io/quickstart_minikube/). This results in the VM going into CrashLoopBackOff:
The handler stops the vm immediately and the following error messages show up in the handler log:
What you expected to happen: The vm starts
Anything else we need to know?: