dhiltgen / docker-machine-kvm

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

Unable to remove failed machine #20

Closed greut closed 7 years ago

greut commented 7 years ago
$ docker-machine rm test
About to remove test
Are you sure? (y/n): y
(test) Failed to fetch machine
Error removing host "test": unexpected EOF

This machine was built but virtlogd wasn't running... crickey!

$ docker-machine create -d kvm test
Running pre-create checks...
Creating machine...
(test) Copying /home/yoan/.docker/machine/cache/boot2docker.iso to /home/yoan/.docker/machine/machines/test/boot2docker.iso...
(test) Failed to start: [Code-38] [Domain-7] Failed to connect socket to '/var/run/libvirt/virtlogd-sock': Aucun fichier ou dossier de ce type
Error creating machine: Error in driver during machine creation: [Code-38] [Domain-7] Failed to connect socket to '/var/run/libvirt/virtlogd-sock': Aucun fichier ou dossier de ce type

Do you have any clue how I whould properly delete it? I've already deleted them from virt-manager.

Cheers and thanks for this amazing plugin!

dhiltgen commented 7 years ago

If things get out of whack, you can do something like:

virsh undefine test
rm -rf ~/.docker/machine/machines/test

And that should clear it up.

greut commented 7 years ago

I've ended up deleting them via virt-manager and the manual rm -rf. Thanks.