Skip to content
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 fail to start with KVM2 on Ubuntu on mainfream s390x due to "PR_KVM_USER_PERMISSION: libvirt group membership check failed" #11551

Closed
kuangyu0801 opened this issue Jun 1, 2021 · 2 comments · Fixed by #11842
Labels
co/kvm2-driver KVM2 driver related issues kind/support Categorizes issue or PR as a support question. long-term-support Long-term support issues that can't be fixed in code

Comments

@kuangyu0801
Copy link

Steps to reproduce the issue:

  1. minikube start --driver=kvm2

I executed as root and already have set group to both "kvm" and "libvirt" according to tutorial: https://help.ubuntu.com/community/KVM/Installation
This issue should have been fixed with #10712
Please help checking. Thanks!

Full output of minikube logs command:

😄 minikube v1.20.0 on Ubuntu 20.04 (kvm/s390x) ✨ Using the kvm2 driver based on user configuration

🚫 Exiting due to PR_KVM_USER_PERMISSION: libvirt group membership check failed:
error getting current user's GIDs: user: GroupIds requires cgo
💡 Suggestion: Ensure that you are a member of the appropriate libvirt group (remember to relogin for group changes to take effect!)
📘 Documentation: https://minikube.sigs.k8s.io/docs/reference/drivers/kvm2/
🍿 Related issues:
#5617
#10070

Full output of failed command:

root@cecdevt1:~# minikube logs

==> Audit <==
|---------|-----------------|----------|------|---------|--------------------------------|--------------------------------|
| Command | Args | Profile | User | Version | Start Time | End Time |
|---------|-----------------|----------|------|---------|--------------------------------|--------------------------------|
| kubectl | | minikube | root | v1.20.0 | Mon, 31 May 2021 17:50:47 CEST | Mon, 31 May 2021 17:50:49 CEST |
| config | set driver kvm2 | minikube | root | v1.20.0 | Mon, 31 May 2021 17:52:17 CEST | Mon, 31 May 2021 17:52:17 CEST |
|---------|-----------------|----------|------|---------|--------------------------------|--------------------------------|

==> Last Start <==
Log file created at: 2021/06/01 12:14:05
Running on machine: cecdevt1
Binary: Built with gc go1.16.1 for linux/s390x
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
I0601 12:14:05.836393 118371 out.go:291] Setting OutFile to fd 1 ...
I0601 12:14:05.836494 118371 out.go:343] isatty.IsTerminal(1) = true
I0601 12:14:05.836496 118371 out.go:304] Setting ErrFile to fd 2...
I0601 12:14:05.836499 118371 out.go:343] isatty.IsTerminal(2) = true
I0601 12:14:05.836579 118371 root.go:316] Updating PATH: /root/.minikube/bin
I0601 12:14:05.836720 118371 out.go:298] Setting JSON to false
I0601 12:14:05.837404 118371 start.go:108] hostinfo: {"hostname":"cecdevt1","uptime":67435,"bootTime":1622475011,"procs":262,"os":"linux","platform":"ubuntu","platformFamily":"debian","platformVersion":"20.04","kernelVersion":"4.19.4-cecsim+","kernelArch":"s390x","virtualizationSystem":"kvm","virtualizationRole":"host","hostId":"939640cc-58aa-4eeb-9863-7ef6b5acf7ee"}
I0601 12:14:05.837440 118371 start.go:118] virtualization: kvm host
I0601 12:14:05.838469 118371 out.go:170] 😄 minikube v1.20.0 on Ubuntu 20.04 (kvm/s390x)
I0601 12:14:05.838555 118371 driver.go:322] Setting default libvirt URI to qemu:///system
I0601 12:14:05.838597 118371 notify.go:169] Checking for updates...
I0601 12:14:05.839135 118371 out.go:170] ✨ Using the kvm2 driver based on user configuration
I0601 12:14:05.839146 118371 start.go:276] selected driver: kvm2
I0601 12:14:05.839149 118371 start.go:718] validating driver "kvm2" against
I0601 12:14:05.839154 118371 start.go:729] status for kvm2: {Installed:true Healthy:false Running:true NeedsImprovement:false Error:libvirt group membership check failed:
error getting current user's GIDs: user: GroupIds requires cgo Reason:PR_KVM_USER_PERMISSION Fix:Check that libvirtd is properly installed and that you are a member of the appropriate libvirt group (remember to relogin for group changes to take effect!) Doc:https://minikube.sigs.k8s.io/docs/reference/drivers/kvm2/}
I0601 12:14:05.839688 118371 out.go:170]
W0601 12:14:05.839730 118371 out.go:235] 🚫 Exiting due to PR_KVM_USER_PERMISSION: libvirt group membership check failed:
error getting current user's GIDs: user: GroupIds requires cgo
W0601 12:14:05.839781 118371 out.go:424] no arguments passed for "💡 Suggestion: Ensure that you are a member of the appropriate libvirt group (remember to relogin for group changes to take effect!)\n" - returning raw string
W0601 12:14:05.839785 118371 out.go:235] 💡 Suggestion: Ensure that you are a member of the appropriate libvirt group (remember to relogin for group changes to take effect!)
W0601 12:14:05.839816 118371 out.go:235] 📘 Documentation: https://minikube.sigs.k8s.io/docs/reference/drivers/kvm2/
W0601 12:14:05.839824 118371 out.go:424] no arguments passed for "🍿 Related issues:\n" - returning raw string
W0601 12:14:05.839827 118371 out.go:235] 🍿 Related issues:
W0601 12:14:05.839856 118371 out.go:235] ▪ #5617
W0601 12:14:05.839884 118371 out.go:235] ▪ #10070

@RA489
Copy link

RA489 commented Jun 7, 2021

/kind support

@k8s-ci-robot k8s-ci-robot added the kind/support Categorizes issue or PR as a support question. label Jun 7, 2021
@RA489 RA489 added the co/kvm2-driver KVM2 driver related issues label Jun 7, 2021
@vmorris
Copy link

vmorris commented Jun 15, 2021

Same problem here on Fedora 33:

[fedora@minikube1 ~]$ minikube start
😄  minikube v1.21.0 on Fedora 33 (s390x)
✨  Using the kvm2 driver based on user configuration

🚫  Exiting due to PR_KVM_USER_PERMISSION: libvirt group membership check failed:
error getting current user's GIDs: user: GroupIds requires cgo
💡  Suggestion: Ensure that you are a member of the appropriate libvirt group (remember to relogin for group changes to take effect!)
📘  Documentation: https://minikube.sigs.k8s.io/docs/reference/drivers/kvm2/
🍿  Related issues:
    ▪ https://github.com/kubernetes/minikube/issues/5617
    ▪ https://github.com/kubernetes/minikube/issues/10070

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/kvm2-driver KVM2 driver related issues kind/support Categorizes issue or PR as a support question. long-term-support Long-term support issues that can't be fixed in code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants