-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minikube fails on KVM2 on fresh minikube installation on Fedora 33 (with solution) #10794
Comments
Hmm, wonder why you need to change to cgroups v1 when running the "libvirt" driver ? (or at all, for that matter) i.e. Adding your user to the libvirt group should be detailed in the Fedora documentation, but also mentioned here: https://minikube.sigs.k8s.io/docs/drivers/kvm2/ It was supposed to be fixed here: #5617 We don't want it to ask for password every time. EDIT: Apparently Fedora prefers running it as https://docs.fedoraproject.org/en-US/quick-docs/getting-started-with-virtualization/ In the Ubuntu documentation, they describe the group: https://ubuntu.com/server/docs/virtualization-libvirt If you run this command, does it recognize the authentation failure at all ?
Or does it only recognize the hardware and kernel settings, perhaps. Maybe:
|
Since the libvirt daemon will be doing the qemu-kvm calls, I'm not sure if your user needs to be in the "kvm" group ?
|
Regarding virt-host-validate - i had several errors there before i added "systemd.unified_cgroup_hierarchy=0". But only after I've added my users to kvm and libvirt groups minikube started working for me. I added it to both groups, so I'm not sure if it would be enough to just add to libvirt group. I opened this ticket to save couple hours of time i lost, trying to set up something that I was told will be "two minutes to set up" :) |
As far as I know, it should be enough with the "libvirt" group - but it would be great to get a confirmation. The cgroups v1 used to be needed in order to run Docker and Kubernetes locally on the host (not in a VM), https://fedoraproject.org/wiki/Changes/CGroupsV2
Thanks for opening the ticket, it is supposed to work out-of-the-box with both drivers ("kvm2" and "docker") Currently there is no automatic testing of minikube on Fedora, so it would need to be provided by users. https://github.com/kubernetes/minikube/pull/10712/files |
that used to be the case with VirtualBox, it should not be worse with the new |
The main problem with KubeVirt is otherwise the nested virtualization... Since it will use Kubernetes to start new VMs (!) rather than Pods, https://kubevirt.io/user-guide/operations/installation/ But otherwise you would have to use a separate (physical) computer, https://docs.fedoraproject.org/en-US/quick-docs/using-nested-virtualization-in-kvm/ |
I can confirm that when I removed user from the kvm group, minikube works. What would you recommend to do to address this issue and help people with similar problem? |
We need to make it easier for people to verify that the underlying solution is sound, Ideally, their documentation would be awesome and we would just be able to link to it. In this case, it seems to be that Fedora prefers to run everything through https://docs.fedoraproject.org/en-US/quick-docs/getting-started-guide/#_root So they prefer to have the user add "sudoers", and to run docker through "sudo". https://docs.fedoraproject.org/en-US/quick-docs/performing-administration-tasks-using-sudo/ Or "libvirt", but anyway. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Hello - on Fedora 33 s390x, and I'm getting a similar failure trying to start.. any help?
Grasping around, I've tried adding my user |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
@kmajcher-rh glad to see that helped.
@vmorris does this help ? #10794 (comment) |
Steps to reproduce the issue:
$ minikube config set vm-driver kvm2
$ minikube start --memory 4096
Full output of failed command:
Exiting due to PROVIDER_KVM2_ERROR: /usr/bin/virsh domcapabilities --virttype kvm failed
Full output of
minikube start
command used, if not already included:Optional: Full output of
minikube logs
command:The resolution for the problem was doing two things:
sudo usermod -aG kvm $USER
sudo usermod -aG libvirt $USER
Perhaps it's worth adding somewhere to documentation, but i don't know where - there is no page with "common installation problems".
The text was updated successfully, but these errors were encountered: