Skip to content
This repository was archived by the owner on Oct 11, 2023. It is now read-only.
This repository was archived by the owner on Oct 11, 2023. It is now read-only.

RancherOS on ESXi 6.5: Waiting for SSH #2283

@ivanfilippov

Description

@ivanfilippov

RancherOS Version: (ros os version)
v1.2.0

Where are you running RancherOS? (docker-machine, AWS, GCE, baremetal, etc.)
VMWare ESXi 6.5

I'm trying to launch RancherOS on ESXi 6.5 via the Rancher Web UI but I'm getting stuck on "Waiting for SSH". I've tried to launch an instance via docker-machine manually and get the same problem.

I believe the issue is that docker-machine is unable to inject its SSH keys into RancherOS, but I'm not sure where to go from there.

Does anyone have any ideas?

docker-machine command:

docker-machine -D create \
	--engine-registry-mirror "http://???" \
	--driver vmwarevsphere \
	--vmwarevsphere-username ???\
	--vmwarevsphere-password ???\
	--vmwarevsphere-vcenter ??? \
	--vmwarevsphere-network ??? \
	--vmwarevsphere-datastore ??? \
	--vmwarevsphere-disk-size 10000 \
	--vmwarevsphere-cpu-count 2 \
	--vmwarevsphere-memory-size 2048 \
	--vmwarevsphere-boot2docker-url "http://releases.rancher.com/os/latest/rancheros.iso" \
	--vmwarevsphere-cloudinit "https://???" \
	rancheros-test

docker-machine debug log:

Docker Machine Version:  0.14.0, build 89b8332
Found binary path at /usr/local/bin/docker-machine
Launching plugin server for driver vmwarevsphere
Plugin server listening at address 127.0.0.1:37875
() 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:39809
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(rancheros-test) Calling .GetMachineName
(rancheros-test) Calling .DriverName
(rancheros-test) Calling .GetCreateFlags
(rancheros-test) Calling .SetConfigFromFlags
Reading certificate data from /root/.docker/machine/certs/ca.pem
Decoding PEM data...
Parsing certificate...
Reading certificate data from /root/.docker/machine/certs/cert.pem
Decoding PEM data...
Parsing certificate...
Running pre-create checks...
(rancheros-test) Calling .PreCreateCheck
(rancheros-test) DBG | Connecting to vSphere for pre-create checks...
(rancheros-test) Calling .GetConfigRaw
Creating machine...
(rancheros-test) Calling .Create
(rancheros-test) Downloading /root/.docker/machine/cache/boot2docker.iso from http://releases.rancher.com/os/latest/rancheros.iso...
(rancheros-test) 0%....10%....20%....30%....40%....50%....60%....70%....80%....90%....100%
(rancheros-test) Generating SSH Keypair...
(rancheros-test) Creating VM...
(rancheros-test) Uploading Boot2docker ISO ...
(rancheros-test) adding network: vlan45-docker
(rancheros-test) Reconfiguring VM
(rancheros-test) setting guestinfo.cloud-init.data.url to https://???
(rancheros-test) 
(rancheros-test) Waiting for VMware Tools to come online...
(rancheros-test) Provisioning certs and ssh keys...
(rancheros-test) DBG | Creating Tar key bundle...
(rancheros-test) Calling .GetConfigRaw
(rancheros-test) Calling .DriverName
(rancheros-test) Calling .DriverName
Waiting for machine to be running, this may take a few minutes...
(rancheros-test) Calling .GetState
Detecting operating system of created instance...
Waiting for SSH to be available...
Getting to WaitForSSH function...
(rancheros-test) Calling .GetSSHHostname
(rancheros-test) Calling .GetSSHPort
(rancheros-test) Calling .GetSSHKeyPath
(rancheros-test) Calling .GetSSHKeyPath
(rancheros-test) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: /root/.docker/machine/machines/rancheros-test/id_rsa (-rw-------)
&{[-F /dev/null -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 [email protected].???.??? -o IdentitiesOnly=yes -i /root/.docker/machine/machines/rancheros-test/id_rsa -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
exit 0
SSH cmd err, output: exit status 255: 
Error getting ssh command 'exit 0' : ssh command error:
command : exit 0
err     : exit status 255
output  : 
...
this repeats for a few minutes
...
Error creating machine: Error detecting OS: Too many retries waiting for SSH to be available.  Last error: Maximum number of retries (60) exceeded
notifying bugsnag: [Error creating machine: Error detecting OS: Too many retries waiting for SSH to be available.  Last error: Maximum number of retries (60) exceeded]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions