Docker Community Forums

Share and learn in the Docker community.

VMWare vSphere driver hangs on Waiting for SSH to be available


(Dkirrane) #1
docker-machine  --debug create -d vmwarevsphere \
--vmwarevsphere-vcenter <ESXi-IP> \
--vmwarevsphere-username=user --vmwarevsphere-password=pass \
--vmwarevsphere-disk-size 8000 --vmwarevsphere-cpu-count 1 \
--vmwarevsphere-datastore "Datastore 1" \
--vmwarevsphere-datacenter "ha-datacenter" \
--vmwarevsphere-network "Range 47.x" \
vm2

Docker Machine Version:  0.6.0, build e27fb87
Found binary path at /usr/local/bin/docker-machine
Launching plugin server for driver vmwarevsphere
Plugin server listening at address 127.0.0.1:42308
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(flag-lookup) Calling .GetMachineName
(flag-lookup) Calling .DriverName
(flag-lookup) Calling .GetCreateFlags
Found binary path at /usr/local/bin/docker-machine
Launching plugin server for driver vmwarevsphere
Plugin server listening at address 127.0.0.1:57633
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(vm2) Calling .GetMachineName
(vm2) Calling .DriverName
(vm2) Calling .GetCreateFlags
(vm2) Calling .SetConfigFromFlags
Running pre-create checks...
(vm2) Calling .PreCreateCheck
(vm2) DBG | Connecting to vSphere for pre-create checks...
(vm2) Calling .GetConfigRaw
Creating machine...
(vm2) Calling .Create
(vm2) DBG | local Boot2Docker ISO version:  v1.11.1
(vm2) Copying /root/.docker/machine/cache/boot2docker.iso to /root/.docker/machine/machines/vm2/boot2docker.iso...
(vm2) Generating SSH Keypair...
(vm2) Creating VM...
(vm2) Uploading Boot2docker ISO ...
(vm2) Reconfiguring VM...
(vm2) Waiting for VMware Tools to come online...
(vm2) Provisioning certs and ssh keys...
(vm2) DBG | Creating Tar key bundle...
(vm2) Calling .GetConfigRaw
(vm2) Calling .DriverName
(vm2) Calling .DriverName
Waiting for machine to be running, this may take a few minutes...
(vm2) Calling .GetState
Detecting operating system of created instance...
Waiting for SSH to be available...
Getting to WaitForSSH function...
(vm2) Calling .GetSSHHostname
(vm2) Calling .GetSSHPort
(vm2) Calling .GetSSHKeyPath
(vm2) Calling .GetSSHKeyPath
(vm2) Calling .GetSSHUsername
Using SSH client type: external
{[-o BatchMode=yes -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none docker@172.17.0.1 -o IdentitiesOnly=yes -i /root/.docker/machine/machines/vm2/id_rsa -p 22] /usr/bin/ssh}
About to run SSH command:
exit 0
SSH cmd err, output: exit status 255:
Error getting ssh command 'exit 0' : Something went wrong running an SSH command!
command : exit 0
err     : exit status 255
output  :

Getting to WaitForSSH function...
(vm2) Calling .GetSSHHostname
(vm2) Calling .GetSSHPort
(vm2) Calling .GetSSHKeyPath
(vm2) Calling .GetSSHKeyPath
(vm2) Calling .GetSSHUsername
Using SSH client type: external
{[-o BatchMode=yes -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none docker@172.17.0.1 -o IdentitiesOnly=yes -i /root/.docker/machine/machines/vm2/id_rsa -p 22] /usr/bin/ssh}
About to run SSH command:
exit 0
SSH cmd err, output: exit status 255:
Error getting ssh command 'exit 0' : Something went wrong running an SSH command!
command : exit 0
err     : exit status 255
output  :

docker-machine version 0.6.0, build e27fb87


(Vknemannavar) #2

Did you get the solution for this issue?
I too facing the same issue using VMWare driver. Please let me know if you found any solution.