minishift / minishift-centos-iso

CentOS based ISO as an alternative for boot2docker ISO
GNU Lesser General Public License v3.0
40 stars 33 forks source link

Minishift won't initialize a new openshift cluster with minishift-centos-iso. Cannot SSH into the system. #184

Closed zcatbear closed 6 years ago

zcatbear commented 6 years ago
$ minishift version
minishift v1.7.0+1549135

I am unable to initialize a new openshift cluster with minishift start if I give the iso-url of minishift-centos-iso. It seems to be related to an inability to SSH into the system and set everything up.

$ minishift start --iso-url https://github.com/minishift/minishift-centos-iso/releases/download/v1.3.0/minishift-centos7.iso
-- Starting local OpenShift cluster using 'vmwarefusion' hypervisor ...
-- Minishift VM will be configured with ...
   Memory:    4 GB
   vCPUs :    4
   Disk size: 20 GB
-- Starting Minishift VM ............................................................................................................................................................................................... FAIL E1201 11:47:47.645041    2237 start.go:355] Error starting the VM: Error creating the VM. Error creating machine: Error detecting OS: Too many retries waiting for SSH to be available.  Last error: Maximum number of retries (60) exceeded. Retrying.
Error starting the VM: Error creating the VM. Error creating machine: Error detecting OS: Too many retries waiting for SSH to be available.  Last error: Maximum number of retries (60) exceeded

The minishift at this point is running and I have confirmed that. I have tried to connect to it via minishift ssh but have never been able to.

$ minishift ssh
Cannot establish SSH connection to the VM: exit status 255

I tried validating that the ssh would even let root in. I found a document on here that the user:pass combination is root:centos which I tried to ssh in with:

$ ssh root@$(minishift ip)

and successfully got in.

From there I copied the id_rsa present in ~/.minishift/machines/minishift/ as for root using ssh-copy-id After this I tried changing the config file at ~/.minishift/machines/minishift/config.json and changed the SSHUser to root. but still get the same message as above.

Any help on this further would be appreciated.

gbraad commented 6 years ago

I am not sure what happens, as this is nothing different from our normal scenario using m start --iso-url centos. If you can login during the start, something else might be happening. Can you provide the libmachine logs from the start, and also letbus knw the state of the VM from the hypervisor console?

gbraad commented 6 years ago

Correction, I see you use VMware fusion. We do not officially support this. Actually, we are in the process of dropping support for this as we are unable to test.

gbraad commented 6 years ago

If issues persist, please consider filing an issue on the Minishift repo as this is not related to the ISO itself. Also, have a look at: https://github.com/minishift/minishift/issues/557 and see if this is similar to what you see...