Docker Community Forums

Share and learn in the Docker community.

Can not create docker-machine


(Kostyanius) #1

Hello,
I am trying create docker-machine on Centos 7 using different methods (with kvm, virtualbox and generic driver) but each time face with the same issue:

[vagrant@localhost ~]$ docker-machine create --virtualbox-hostonly-nictype virtio --driver=virtualbox vbox-test
Running pre-create checks…
Creating machine…
(vbox-test) Copying /home/vagrant/.docker/machine/cache/boot2docker.iso to /home/vagrant/.docker/machine/machines/vbox-test/boot2docker.iso…
(vbox-test) Creating VirtualBox VM…
(vbox-test) Creating SSH key…
(vbox-test) Starting the VM…
(vbox-test) Check network to re-create if needed…
(vbox-test) Waiting for an IP…
Error creating machine: Error in driver during machine creation: Too many retries waiting for SSH to be available. Last error: Maximum number of retries (60) exceeded

and

[vagrant@localhost ~]$ docker-machine create -d kvm myengine0
Running pre-create checks…
Creating machine…
(myengine0) Copying /home/vagrant/.docker/machine/cache/boot2docker.iso to /home/vagrant/.docker/machine/machines/myengine0/boot2docker.iso…
(myengine0) Unable to determine VM’s IP address, did it fail to boot?
Waiting for machine to be running, this may take a few minutes…
Detecting operating system of created instance…
Waiting for SSH to be available…
Error creating machine: Error detecting OS: Too many retries waiting for SSH to be available. Last error: Maximum number of retries (60) exceeded

Any ideas where could be the root cause?