minikube: minikube fails to start with kvm2/kvm drivers with "Domain not found" error
Is this a BUG REPORT or FEATURE REQUEST? (choose one): bug
Please provide the following details:
Environment:
Fedora 24 (not VM, host)
Minikube version (use minikube version):
v0.24.1
- OS (e.g. from /etc/os-release): Fedora 24
- VM Driver (e.g.
cat ~/.minikube/machines/minikube/config.json | grep DriverName): KVM2 / KVM (tried both) - ISO version (e.g.
cat ~/.minikube/machines/minikube/config.json | grep -i ISOorminikube ssh cat /etc/VERSION): - Install tools:
- Others:
What happened:
when starting minikube with
minikube start --vm-driver kvm2
or with
minikube start --vm-driver kvm
it fails with:
Starting local Kubernetes v1.8.0 cluster… Starting VM… E0110 15:27:36.156882 21701 start.go:150] Error starting host: Error getting state for host: getting connection: looking up domain: virError(Code=42, Domain=10, Message=‘Domain not found: no domain with matching name ‘minikube’’).
What you expected to happen: minikube to start successfully
How to reproduce it (as minimally and precisely as possible):
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 36 (3 by maintainers)
I tried to delete and reinstall everything however had the same issue again, i noticed though that the folder .minikube was still there so i deleted this folder and tried again and then everything was ok. Hopefully this might help someone else as well
Have you tried to delete and start again? The issue with none likely comes because it wants to do a a restart, and in that case a change of vmdriver is ignored
–
Gerard Braad | http://gbraad.nl [ Doing Open Source Matters ]
Also seeing this on Arch.
@rstoikos I tried now your suggestion of deleting the .minikube folder. After doing it and running minikube, I got another error (and if I rerun the minikube, I get back to the original error)
For me, it was a full hard disk! minikube/kvm2 tries to create .minikube/machines/minikube/minikube.rawdisk with ~20GB. Seems like there’s no error message if there’s not enough room…
Also try:
sudo apt-get install ebtablessudo systemctl restart libvirtdminikube deleteminikube start --vm-driver=kvm2Have the same error.
Have tried:
So far nothing has worked.
On Centos7 i had to run
sudo systemctl restart libvirtdI also had this issue …
I could start minikube only as root … After I changed the owner on /var/run/libvirt to my user sudo chown -R phico:libvirtd /var/run/libvirt Then a little cleaning (minikube delete rm .minikube)
Now it starts !
That could be that your user is not in libvirt group (or you added user to group without relogin)
It could be like that because of my openstack cloud VM config.
CentOS Linux release 7.4.1708 (Core)KVM2
there is no ‘default’ one so if I run like that:
# minikube start --vm-driver kvm2it’s going to fail
to make it work:
# minikube start --vm-driver kvm2 --kvm-network minikube-netKVM
Similar like above to make it work:
# minikube start --vm-driver kvm --kvm-network docker-machinesOn Ub16.04, when trying to get kvm2 working, I also found that minikube had made a half-baked
~/.minikubedirectory. I moved that out of the way, and also had to change the permissions on/var/run/libvirttomyuser:libvirtd, the new group required for kvm2 install. Then, when I ran minikube for the first time and it had pulled down a new minikube image, it made the right~/.minikubedir.ubuntu 18.041.If the mentioned test does not pass for you try this link: https://askubuntu.com/questions/1050621/kvm-is-required-to-run-this-avd then restart your machine
To make kvm2 the default driver:
then: