-
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 driver vs. docker-machine #9453
Comments
thank you for creaitng an issue @darkn3rd I am not clear what you are trying to do, if you are trying to install kvm2 so you can use minikube's kvm2 driver here, does the installation docs here help ? https://minikube.sigs.k8s.io/docs/drivers/kvm2/#installing-prerequisites you dont need to do docker-machine create ! btw currently docker driver is our newest and most supported driver, I recommend docker driver instead of KVM2 on linux. |
/triage needs-information |
I just wanted to use docker essentially, but not on the host, in a virtual machine.
I had installed the following and I am able to create/destroy virtual machines. sudo apt-get install -y \
bridge-utils \
cpu-checker \
libguestfs-tools \
libvirt-dev \
qemu-kvm \
virt-manager I ran
If I don't need to docker-machine create, how do I run docker commands that use docker from the VM(s) created with minikube? For example, the |
We had some of the discussion of this in dhiltgen/docker-machine-kvm#77 already, but I will take it here too. Basically minikube has forked the "kvm" driver, so the kvm2 is now only used for minikube and doesn't work with docker-machine. The docker-machine project itself, including the boot2docker iso and particularly the kvm (libvirt) driver, is now deprecated (dead). https://github.com/machine-drivers/machine https://github.com/machine-drivers/docker-machine-kvm As suggested, it would be possible to issue a fixed/backported version of the old "docker-machine-driver-kvm" driver binary there.
Currently I would recommend Vagrant as the environment going forward, it has a libvirt provisioner if you dislike the virtualbox. https://boot2podman.github.io/2020/07/22/machine-replacement.html https://github.com/vagrant-libvirt/vagrant-libvirt Going forward, we will integrate the old libmachine and drivers codebase further into minikube itself and drop the dependency. |
Going forward, we will just use SSH to connect to the VM... Like It's a little more complicated than that, since you would also have to add the ssh host keys and the ssh user keys. But only once. See #9229 |
This actually sounds more of a question for docker-machine and docker-compose, than for minikube ? The primary goal is to provide a kubernetes environment, not an environment to run other legacy tools. |
@darkn3rd staring version v1.15.2 minikube supports docker driver with docker running in docker-machine. Would you mind to check if this version helps with your issue? |
@darkn3rd I close this issue, please feel free to reopen if the answers @afbjorklund didnt sovle the issue |
As detailed above, the "kvm2" driver is only for use with minikube. It will not work with the regular docker-machine... If you need the other one, for |
The machine driver
kvm2
with the default options todocker-machine
no longer work. There's no documentation around how minikube interacts with docker-machine to get the correction options. Currently, there is no working driver at this moment that will support KVM with docker-machine, so I hope there can be consideration to support this, as there is no solution path.Steps to reproduce the issue:
Full output of failed command:
Full output of
minikube start
command used, if not already included:Optional: Full output of
minikube logs
command:The text was updated successfully, but these errors were encountered: