-
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
kvm2: Add support for LIBVIRT_DEFAULT_URI #4069
Comments
A workaround could be to do like this: sudo socat -d -d -d -lf socat.log UNIX-LISTEN:/var/run/libvirt/libvirt-sock,fork,user=someuser,group=someuser TCP4:127.0.0.1:16509 This acts as a proxy, creating the unix domain socket where it should be and proxying the traffic to the tcp socket |
The kvm2 driver should be sudo-less, so I'm not a big fan of the socat approach. That said, I would be happy to review any PR which fixes this that does not require root. Help wanted! |
@afbjorklund I'm working on this issue here. Basically allowing the user to pass a flag Do we still want to support remote QEMU? Or based on the problems you described, we want to force the use for WDYT? |
As long as the default still works, I have no problem with allowing advanced users to override with e.g. I also don't want to support remote KVM, there are a lot of other options if you want to run Kubernetes in a cloud ? We just need something that can spin up a VM locally, similar to the "good ole" VirtualBox. And preferrably without using SLIRP networking... |
LIBVIRT_DEFAULT_URI=qemu+tcp://127.0.0.1:16509/system minikube start --vm-driver kvm2
Archlinux, Linux clx 4.19.34-1-lts #1 SMP Sat Apr 6 19:41:19 CEST 2019 x86_64 GNU/Linux
A fix might have to be done here, taking in an environment variable or some new flag:
The text was updated successfully, but these errors were encountered: