Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

start on vmware fusion hangs: ssh: unable to authenticate, no supported methods remain #2581

Closed
weaselchops opened this issue Feb 27, 2018 · 11 comments
Labels
co/sshd ssh related issues co/vmwarefusion-driver Issues with legacy VMware Fusion Driver failed/local-networking startup failures due to networking issues kind/bug Categorizes issue or PR as related to a bug. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. os/macos

Comments

@weaselchops
Copy link

BUG REPORT or FEATURE REQUEST? (choose one):
BUG REPORT

Please provide the following details:

Environment:

Minikube version : version: v0.25.0

  • OS : Sierra 10.12.6
  • VM Driver : vmwarefusion
  • ISO version : v0.25.1
  • Install tools: brew
  • Others:

What happened:
New install from brew hangs/takes a very long time "executing:"

$ minikube -v10 start --vm-driver=vmwarefusion

#### Snipped ####

Trying to find IP address in leases file: /var/db/vmware/vmnet-dhcpd-vmnet2.leases
Trying to find IP address in leases file: /var/db/vmware/vmnet-dhcpd-vmnet8.leases
IP found in DHCP lease table: 192.168.164.228
Got an ip: 192.168.164.228
Creating Tar key bundle...
executing: /Applications/VMware Fusion.app/Contents/Public/vmrun -gu docker -gp tcuser directoryExistsInGuest /Users/$USER/.minikube/machines/minikube/minikube.vmx /var/lib/boot2docker
executing: /Applications/VMware Fusion.app/Contents/Public/vmrun -gu docker -gp tcuser CopyFileFromHostToGuest /Users/$USER/.minikube/machines/minikube/minikube.vmx /Users/$USER/.minikube/machines/minikube/userdata.tar /home/docker/userdata.tar
executing: /Applications/VMware Fusion.app/Contents/Public/vmrun -gu docker -gp tcuser runScriptInGuest /Users/$USER/.minikube/machines/minikube/minikube.vmx /bin/sh sudo sh -c "tar xvf /home/docker/userdata.tar -C /home/docker > /var/log/userdata.log 2>&1 && chown -R docker:staff /home/docker"

The "executing:" task seem to be moving...but is taking nearly 30 mins so far!

What you expected to happen:
CPU and memory are fine. Can't see any load
How to reproduce it (as minimally and precisely as possible):
Tried Vmware fusion version 7 and 10
minikube -v10 start --vm-driver=vmwarefusion
Output of minikube logs (if applicable):

Anything else do we need to know:
I have done a "rm -rf .minikube/" and tried again... same result

@weaselchops
Copy link
Author

fulllog.txt
Full v10 log attached

@weaselchops
Copy link
Author

weaselchops commented Feb 27, 2018

After nearly 40 minutes!!! ...

executing: /Applications/VMware Fusion.app/Contents/Public/vmrun -gu docker -gp tcuser runScriptInGuest /Users/nigelc/.minikube/machines/minikube/minikube.vmx /bin/sh [ ! -d /Users ]&& sudo mkdir /Users; sudo mount --bind /mnt/hgfs//Users /Users || [ -f /usr/local/bin/vmhgfs-fuse ]&& sudo /usr/local/bin/vmhgfs-fuse -o allow_other .host:/Users /Users || sudo mount -t vmhgfs -o uid=$(id -u),gid=$(id -g) .host:/Users /Users
executing: /Applications/VMware Fusion.app/Contents/Public/vmrun list
setting hostname "minikube"
executing: /Applications/VMware Fusion.app/Contents/Public/vmrun list
MAC address in VMX: 00:0c:29:25:27:8c
Trying to find IP address in configuration file: /Library/Preferences/VMware Fusion/vmnet1/dhcpd.conf
Following IPs found map[00:50:56:c0:00:01:192.168.52.1]
Trying to find IP address in configuration file: /Library/Preferences/VMware Fusion/vmnet2/dhcpd.conf
Following IPs found map[00:50:56:c0:00:02:192.168.135.1]
Trying to find IP address in configuration file: /Library/Preferences/VMware Fusion/vmnet8/dhcpd.conf
Following IPs found map[00:50:56:c0:00:08:192.168.164.1]
Trying to find IP address in leases file: /var/db/vmware/vmnet-dhcpd-vmnet1.leases
Trying to find IP address in leases file: /var/db/vmware/vmnet-dhcpd-vmnet2.leases
Trying to find IP address in leases file: /var/db/vmware/vmnet-dhcpd-vmnet8.leases
IP found in DHCP lease table: 192.168.164.228
Using SSH client type: native
&{{{<nil> 0 [] [] []} docker [0x1437850] 0x1437800  [] 0s} 192.168.164.228 22 <nil> <nil>}
About to run SSH command:
sudo hostname minikube && echo "minikube" | sudo tee /etc/hostname
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
Error dialing TCP: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

@weaselchops
Copy link
Author

Looks a bit like #2126 But was meant to be fixed.

@mikeroySoft
Copy link

Does the VM have connectivity / an IP if you open up the console from the Fusion UI?
Also, try bouncing the network services:

cd /Applications/VMware\ Fusion.app/Contents/Library/
./vmnet-cli --stop
./vmnet-cli --configure
./vmnet-cli --start

@weaselchops
Copy link
Author

From the console I could see I had an IP, which I could ping from the host.
Did a stop/reconfigure/start.. some problem.
The vmrun is still taking forever....and fails with ssh key issue

@r2d4 r2d4 added kind/bug Categorizes issue or PR as related to a bug. co/vmwarefusion-driver Issues with legacy VMware Fusion Driver labels Mar 5, 2018
@weaselchops
Copy link
Author

weaselchops commented Mar 7, 2018

Digging a bit deeper....
$ /Applications/VMware\ Fusion.app/Contents/Public/vmrun -T fusion -gu docker -gp tcuser runScriptInGuest /Users/$USER/.minikube/machines/minikube/minikube.vmx /bin/sh "touch /tmp/test1" Error: The VMware Tools are not running in the virtual machine: /Users/nigelc/.minikube/machines/minikube/minikube.vmx

I saw this myself with Vagrant recently: hashicorp/vagrant#9004
The bento/centos-7 image had a fix. More info here: chef/bento#747 (but not sure if relevant)

Also if I log onto the Kube image and try starting vmtoolsd manually, causes a core dump!
same with a systemctl restart

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jun 5, 2018
@siedentop
Copy link

/remove-lifecycle stale

I still have this issue on my machine. Happy to help out with details if needed.

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jun 7, 2018
@mshahat
Copy link
Contributor

mshahat commented Jun 9, 2018

a similar observation here!

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Sep 7, 2018
@tstromberg
Copy link
Contributor

This looks to be a dupe of #2126

@tstromberg tstromberg changed the title minikube start on vmware fusion hangs start on vmware fusion hangs: ssh: unable to authenticate, no supported methods remain Sep 20, 2018
@tstromberg tstromberg added os/macos co/sshd ssh related issues failed/local-networking startup failures due to networking issues labels Sep 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/sshd ssh related issues co/vmwarefusion-driver Issues with legacy VMware Fusion Driver failed/local-networking startup failures due to networking issues kind/bug Categorizes issue or PR as related to a bug. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. os/macos
Projects
None yet
Development

No branches or pull requests

8 participants