Open gheibia opened 7 years ago
What version of the kvm driver are you using?
~$ kvm --version
QEMU emulator version 2.5.0 (Debian 1:2.5+dfsg-5ubuntu10.10)
@gheibia I think he was wondering what version of docker-machine-kvm did you download? This should have been fixed in v0.8.2 of this driver
@r2d4 I don't think I've downloaded this directly. My guess is that this would be part of the docker-machine. If so, here is what I got:
$ docker-machine --version
docker-machine version 0.10.0, build 76ed2a6
After a bit of digging, it seems that I'm using 0.7.0. I couldn't determine the version through the command line (Plugin binaries are not intended to be invoked directly
), but I generated the MD5 checksum for the plugin's binary (519d29300df740a73c90d048e5df43fb) which matches 0.7.0. I'll update the plugin and try again.
I can confirm that this has indeed been resolved in 0.8.2. I manually replaced my older plugin with the new one and dropped and recreated the cluster. I can now stop and start the VM right after. I still see the error message about not finding the old lease files, but at least the cluster starts up.
Thanks so much for the help.
Having this fixed though I now observe that the VM's IP changes between restarts. I wonder if there is a workaround for this. Do I need to open another ticket for it?
After updating minikube to v0.18.0 the problem returned. I figured if I update the docker-machine-kvm to its latest version (https://github.com/dhiltgen/docker-machine-kvm/releases/tag/v0.10.0), the problem might disappear, but it didn't. Basically, the VM won't start till the lease expires.
There is a workaround for this:
libvirtd
service (sudo service libvirtd stop
)dnsmasq
processes (sudo pkill -f dnsmasq
)/var/lib/libvirt/dnsmasq/virbrxxx.status
)not reproducible with current versions of the driver plugin
I experience the same issue since a few days.
I'm using Minikube with KVM through libvirt. Every time I stop the VM (which is the Minikube cluster's VM), I can't start it till the lease is expired.
Here is some detail:
Minikube version: v0.17.1 Environment:
What happened: Whether or not the Minikube cluster's VM is properly stopped, I can't start it until the DHCP lease is expired.
It seems that this driver can't find the right lease file. That's the only error I see.
What you expected to happen:
Find the correct lease file and start without an error.
How to reproduce it:
Additional info:
https://bugzilla.redhat.com/show_bug.cgi?id=1228631
It seems that libvirt is changed to read lease records from custom made files (named after interface). But I think you already knew that.