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 start (kvm) "Error starting host: Error creating new host: dial tcp: missing address." #927

Closed
broady opened this issue Dec 16, 2016 · 40 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@broady
Copy link
Contributor

broady commented Dec 16, 2016

Is this a BUG REPORT or FEATURE REQUEST? (choose one):
bug report

Minikube version (use minikube version):

minikube version: v0.14.0

Environment:

  • OS (e.g. from /etc/os-release): ubuntu trusty
  • VM Driver (e.g. cat ~/.minikube/machines/minikube/config.json | grep DriverName): kvm, but machines directory is empty
  • Docker version (e.g. docker -v): 1.12.1
  • Install tools:
  • Others:

What happened:

$ minikube config set vm-driver kvm
$ minikube start                                                                                                                                                                                
Starting local Kubernetes cluster...
E1215 20:30:51.804680    3691 start.go:94] Error starting host: Error creating new host: dial tcp: missing address.

 Retrying.
E1215 20:30:51.805291    3691 start.go:100] Error starting host:  Error creating new host: dial tcp: missing address
Exit code 1

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else do we need to know:

@r2d4
Copy link
Contributor

r2d4 commented Dec 16, 2016

Hey we've actually seen this problem before and sent a PR upstream to the KVM driver that was merged, however I don't think theres been a recent release of it. (dhiltgen/docker-machine-kvm#18)

The fix is that you need to also install the libvirt-bin package on ubuntu

Ref #278

@r2d4 r2d4 added kind/bug Categorizes issue or PR as related to a bug. driver/kvm labels Dec 16, 2016
@broady
Copy link
Contributor Author

broady commented Dec 16, 2016

$ sudo apt-get install libvirt-bin
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libvirt-bin is already the newest version (1.2.2-0ubuntu13.1.17).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

Did you mean I also need a new version of the kvm driver?

@r2d4
Copy link
Contributor

r2d4 commented Dec 16, 2016

No, that PR only made the error message clearer.

Have you added yourself to the libvirtd group?
You can verify that everything is running properly if you can run $ virsh -c qemu:///system list

@broady
Copy link
Contributor Author

broady commented Dec 16, 2016

I did run sudo usermod -a -G libvirtd $(whoami)

$ cat /etc/group | grep libvir
libvirtd:x:134:cbro
$  virsh -c qemu:///system list
error: failed to connect to the hypervisor
error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Permission denied
Exit code 1

Oh, but looks like it works in a brand new tty (well, at least it looks like it's now doing something). D'oh. (but sweet!)

$ kubectl get nodes
NAME       STATUS    AGE
minikube   Ready     14s

@r2d4
Copy link
Contributor

r2d4 commented Dec 23, 2016

Closing this, looks like you got it working. Feel free to reopen if you're still having problems

@r2d4 r2d4 closed this as completed Dec 23, 2016
@westlakem
Copy link

Any idea how we can fix this moving forward? i'm running on docker and I'm getting the same error "missing address"

@dlorenc
Copy link
Contributor

dlorenc commented Jan 29, 2017

Can you explain a little more what you're trying to do? This bug is about a permission issue when using the KVM driver.

@Anticom
Copy link

Anticom commented Nov 15, 2017

I'm on Ubuntu 16.04 and installed kubectl and minikube via Ubuntu's snap and I get the same errors:

$ minikube start --vm-driver="kvm"
There is a newer version of minikube available (v0.23.0).  Download it here:
https://github.com/kubernetes/minikube/releases/tag/v0.23.0
To disable this notification, add WantUpdateNotification: False to the json config file at /home/anticom/snap/minikube/4/.minikube/config
(you may have to create the file config.json in this folder if you have no previous configuration)
Starting local Kubernetes cluster...
E1115 02:25:58.211464    9757 start.go:83] Error starting host: Error creating new host: dial tcp: missing address. Retrying.
E1115 02:25:58.222801    9757 start.go:83] Error starting host: Error creating new host: dial tcp: missing address. Retrying.
E1115 02:25:58.232688    9757 start.go:83] Error starting host: Error creating new host: dial tcp: missing address. Retrying.
E1115 02:25:58.232710    9757 start.go:89] Error starting host:  Error creating new host: dial tcp: missing address
Error creating new host: dial tcp: missing address
Error creating new host: dial tcp: missing address

@gabrielmancini
Copy link

+1

2 similar comments
@hudsantos
Copy link

+1

@vrajanap
Copy link

+1

@wskinner
Copy link

I also have this problem on Ubuntu 14.04.

@wskinner
Copy link

@r2d4 can you reopen this? Seems like a lot of people are having this issue now.

@zomglings
Copy link

+1

  • minikube version: minikube version: v0.26.0
  • OS: Ubuntu 16.04
  • VM Driver: "DriverName": "kvm2",
  • Docker version: Docker version 18.03.0-ce, build 0520e24

@oesgul
Copy link

oesgul commented Apr 18, 2018

+1

@razeone
Copy link

razeone commented Apr 20, 2018

+1

  • minikube version: v0.26.1
  • OS: Fedora 27
  • VM Driver: kvm/kvm2
  • Docker version 18.04.0-ce, build 3d479c0

@jorgerod
Copy link

+1

minikube version: minikube version: v0.26.0
OS: Ubuntu 16.04
VM Driver: "DriverName": "kvm2",
Docker version: Docker version 18.03.0-ce, build 0520e24

@tjma2001
Copy link

tjma2001 commented May 1, 2018

I am having this issue with snap's version of minikube as well. I uninstalled the snap version and performed the installation with

curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/

And the install seems to be proceeding without a hitch

@ostretsov
Copy link

Had the same issue. The problem was with my group. Make sure you are in libvirt (libvirtd group in 16.04) group:

$ id
uid=1000(artem) gid=133(libvirtd) groups=133(libvirtd),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),113(lpadmin),128(sambashare),999(docker),1000(artem)

@skis
Copy link

skis commented Dec 13, 2018

I have the same issue.
Virtual Machine - Ubuntu 18.10.
Tried KVM2 driver and yet. Anyone else experiencing this issue?

@vds
Copy link

vds commented Dec 19, 2018

+1

1 similar comment
@Ddper
Copy link

Ddper commented Dec 21, 2018

+1

@Grigore147
Copy link

Same issue:
Ubuntu 16.04 with KVM2.
minikube version: v0.32.0

@alanwds
Copy link

alanwds commented Dec 26, 2018

Same here:

Ubuntu 14.04 with KVM2
minikube version: v0.32.0

@ugurcan377
Copy link

I had the same problem and the solution in this issue worked.
#3437

@TimZaman
Copy link

TimZaman commented Jan 19, 2019

Still a problem! Reopen? Ubuntu 16.04 with KVM2.

Solution is to downgrade minikube to v0.30.0 if you are on 16.04

@alexellis
Copy link

I'm still getting this issue with Ubuntu 16.04 KVM2 and v0.33.1

@krilor
Copy link

krilor commented Jan 20, 2019

I've just tried on Linux Mint 18 (based on Ubuntu 16.04) + KVM2 and got a similar error.

Downgraded to v0.30.0 helped.

@jvleminc
Copy link

jvleminc commented Jan 23, 2019

Also happening on Ubuntu 18.04 after a fresh install of minikube.

The above workaround worked fine:

Uninstall snap version and install "real version" with

curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/

@brennen
Copy link

brennen commented Feb 13, 2019

Also happening on Ubuntu 18.04 after a fresh install of minikube.

Same; oddly I installed Minikube once on an existing Ubuntu system, then had to nuke and pave the machine for unrelated reasons and now find that I'm unable to get Minikube working again from the same instructions.

Edit: On double-checking myself, I find that the error message I'm seeing is instead:

Error starting host:  Error creating new host: Error attempting to get plugin server address for RPC: Failed to dial the plugin server in 10s

Apologies for noise in the likely event this is unrelated.

@kasvith
Copy link

kasvith commented May 7, 2019

Same issue, but using a new terminal or tty fixed issue for me

@chaitanyanettem
Copy link

For now on ubuntu 16.04, you can also get around this by installing virtualbox (sudo apt-get install virtualbox).

You can then start minikube with minikube start and it just works.

@sblcook
Copy link

sblcook commented May 31, 2019

This is still happening to me on minikube v1.1.0. Opening another terminal doesn't seem to help, but I am included in the libvirtd group.

OS: Ubuntu 16.04
VM Driver: kvm
Docker version: 18.06.0-ce,

@ngmariusz
Copy link

same here ( #4416 )

@kpooja20
Copy link

same problem after installing libvirt.

@afbjorklund
Copy link
Collaborator

For anyone else having the same issue, please check that you are in the group and that libraries are ok.

id should include "libvirtd", and for instance ldd should not show "version `LIBVIRT_3.0.0' not found"

Issue itself will soon be fixed in minikube 1.3.0 (#4555)

It was supposed to be fixed in minikube 1.0.0 (#3689)

@bezna-hack
Copy link

os: linux mint 19
minikube v1.6.2
vm driver: kvm
docker v19.03

I experienced the same issue after installing minikube with snap. For me the solution was to remove the snap install and delete the /snap/minikube folder and then install minikube wirh:

curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
&& sudo install minikube-linux-amd64 /usr/local/bin/minikube

This is pretty odd since snap is suggested in the official documentation.
I also had to install docker-machine.

@MykytaLiubshin
Copy link

I am having this issue with snap's version of minikube as well. I uninstalled the snap version and performed the installation with

curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/

And the install seems to be proceeding without a hitch

THANK YOU
FIXED IT FOR ME

@urbandroid
Copy link

uninstalling snap and installing "real" version is not a "real" fix. That makes you run a deceiving app unconfined, deceiving because even though they know their snap is broken they are acting like it is not and using as a honey pot.

@tjma2001
Copy link

tjma2001 commented May 6, 2020

I linked the official minikube binary. If that is a honey pot that I give up. It is running unconfined but I am not sure the snap version of minikube can run unconfined either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests