dhiltgen / docker-machine-kvm

KVM driver for docker-machine
Apache License 2.0
377 stars 117 forks source link

Unable to start VM through docker-machine in KVM in CentOS 7 #29

Closed coolbrg closed 7 years ago

coolbrg commented 7 years ago

Hi,

I am getting some error while creating VM through docker-machine in KVM in CentOS 7.

[budhram@localhost ~]$ docker-machine -D create -d kvm default
Docker Machine Version:  0.8.2, build e18a919
Found binary path at /usr/local/bin/docker-machine-driver-kvm
Launching plugin server for driver kvm
Error attempting to get plugin server address for RPC: Failed to dial the plugin server in 10s

Other details

[budhram@localhost ~]$ uname -a
Linux localhost.localdomain 3.10.0-327.28.3.el7.x86_64 #1 SMP Thu Aug 18 19:05:49 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

[budhram@localhost ~]$ sudo systemctl status libvirtd
● libvirtd.service - Virtualization daemon
   Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2016-12-13 20:49:06 IST; 56min ago
     Docs: man:libvirtd(8)
           http://libvirt.org
 Main PID: 9495 (libvirtd)
   Memory: 0B
   CGroup: /system.slice/libvirtd.service
           ├─2286 /sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper
           ├─2287 /sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper
           └─9495 /usr/sbin/libvirtd

Dec 13 20:49:06 localhost.localdomain systemd[1]: Starting Virtualization daemon...
Dec 13 20:49:06 localhost.localdomain systemd[1]: Started Virtualization daemon.
Dec 13 20:49:06 localhost.localdomain dnsmasq[2286]: read /etc/hosts - 2 addresses
Dec 13 20:49:06 localhost.localdomain dnsmasq[2286]: read /var/lib/libvirt/dnsmasq/default.addnhosts - 0 addresses
Dec 13 20:49:06 localhost.localdomain dnsmasq-dhcp[2286]: read /var/lib/libvirt/dnsmasq/default.hostsfile
Dec 13 20:57:47 localhost.localdomain systemd[1]: Started Virtualization daemon.
Dec 13 20:58:21 localhost.localdomain libvirtd[9495]: libvirt version: 2.0.0, package: 10.el7_3.2 (CentOS BuildSystem <http://bugs.centos.or...os.org)
Dec 13 20:58:21 localhost.localdomain libvirtd[9495]: hostname: localhost.localdomain
Dec 13 20:58:21 localhost.localdomain libvirtd[9495]: End of file while reading data: Input/output error
Hint: Some lines were ellipsized, use -l to show in full.
praveenkumar commented 7 years ago

Tested it and looks like libvirt service had some issue. @budhrg can you please close it?

coolbrg commented 7 years ago

I really don't know what happened but it start working today like charm.

Yesterday, it was not working. It was my new setup and followed this link to setup KVM hypervisor.

Its working fine now. Closing the issue now.