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

Fusion VM driver doesn't work #3004

Closed
mshindo opened this issue Jul 23, 2018 · 3 comments · Fixed by #3029
Closed

Fusion VM driver doesn't work #3004

mshindo opened this issue Jul 23, 2018 · 3 comments · Fixed by #3029

Comments

@mshindo
Copy link

mshindo commented Jul 23, 2018

BUG REPORT

Please provide the following details:

Environment:

Minikube version (use minikube version):minikube version: v0.28.1

  • OS (e.g. from /etc/os-release): MacOS 10.13.4 (High Sierra)
  • VM Driver (e.g. cat ~/.minikube/machines/minikube/config.json | grep DriverName): vmwarefusion
  • ISO version (e.g. cat ~/.minikube/machines/minikube/config.json | grep -i ISO or minikube ssh cat /etc/VERSION):
    v0.28.1
  • Install tools:
  • Others:

What happened:
"minikube start --vm-driver=vmwarefusion" always fails.

What you expected to happen:
minikube successfully gets started

How to reproduce it (as minimally and precisely as possible):
"minikube start --vm-driver=vmwarefusion" always reproduces the issue.

Output of minikube logs (if applicable):

minikube start --v 10 --vm-driver=vmwarefusion --logtostderr --alsologtostderr
.
.
.
Trying to find IP address in leases file: /var/db/vmware/vmnet-dhcpd-vmnet8.leases
IP found in DHCP lease table: 192.168.43.172
Got an ip: 192.168.43.172
Creating Tar key bundle...
executing: /Applications/VMware Fusion.app/Contents/Public/vmrun -gu docker -gp tcuser directoryExistsInGuest /Users/shindom/.minikube/machines/minikube/minikube.vmx /var/lib/boot2docker
executing: /Applications/VMware Fusion.app/Contents/Public/vmrun -gu docker -gp tcuser CopyFileFromHostToGuest /Users/shindom/.minikube/machines/minikube/minikube.vmx /Users/shindom/.minikube/machines/minikube/userdata.tar /home/docker/userdata.tar
executing: /Applications/VMware Fusion.app/Contents/Public/vmrun -gu docker -gp tcuser runScriptInGuest /Users/shindom/.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"
executing: /Applications/VMware Fusion.app/Contents/Public/vmrun -gu docker -gp tcuser runScriptInGuest /Users/shindom/.minikube/machines/minikube/minikube.vmx /bin/sh sudo /bin/mv /home/docker/userdata.tar /var/lib/boot2docker/userdata.tar
executing: /Applications/VMware Fusion.app/Contents/Public/vmrun -gu docker -gp tcuser enableSharedFolders /Users/shindom/.minikube/machines/minikube/minikube.vmx
executing: /Applications/VMware Fusion.app/Contents/Public/vmrun -gu docker -gp tcuser addSharedFolder /Users/shindom/.minikube/machines/minikube/minikube.vmx Users /Users
executing: /Applications/VMware Fusion.app/Contents/Public/vmrun -gu docker -gp tcuser runScriptInGuest /Users/shindom/.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
E0723 13:32:57.420865 9409 start.go:174] Error starting host: Error creating host: Error executing step: Creating VM.
: exit status 1.

Retrying.
E0723 13:32:57.420959 9409 start.go:180] Error starting host: Error creating host: Error executing step: Creating VM.
: exit status 1

Anything else do we need to know:

This problem is caused by a bug in fusion VM driver imported from docker/machine. The fix has already been up-streamed (by me) and merged (PR: docker/machine#4491). Please import the latest driver code from docker/machine, which would solve this problem in minikube, too.

@peak-load
Copy link
Contributor

I have same issue, for me it's not clear what command (step) is failing from the log.

My log and system details are below:

ProductName:	Mac OS X
ProductVersion:	10.13.6
BuildVersion:	17G65

$ minikube version
minikube version: v0.28.2

$ minikube start --v=7 --vm-driver vmwarefusion
Starting local Kubernetes v1.10.0 cluster...
Starting VM...
Downloading Minikube ISO
 160.27 MB / 160.27 MB [============================================] 100.00% 0s
Creating CA: /Users/myusername/.minikube/certs/ca.pem
Creating client certificate: /Users/myusername/.minikube/certs/cert.pem
Downloading /Users/myusername/.minikube/cache/boot2docker.iso from file:///Users/myusername/.minikube/cache/iso/minikube-v0.28.1.iso...
Creating SSH key...
Creating VM...
Starting minikube...
executing: /Applications/VMware Fusion.app/Contents/Public/vmrun start /Users/myusername/.minikube/machines/minikube/minikube.vmx nogui
Waiting for VM to come online...
executing: /Applications/VMware Fusion.app/Contents/Public/vmrun list
MAC address in VMX: 00:0c:29:64:0b:65
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.133.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:172.16.178.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-vmnet8.leases
IP found in DHCP lease table: 172.16.178.142
Got an ip: 172.16.178.142
SSH Daemon not responding yet: dial tcp 172.16.178.142:22: i/o timeout
executing: /Applications/VMware Fusion.app/Contents/Public/vmrun list
MAC address in VMX: 00:0c:29:64:0b:65
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.133.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:172.16.178.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-vmnet8.leases
IP found in DHCP lease table: 172.16.178.142
Got an ip: 172.16.178.142
SSH Daemon not responding yet: dial tcp 172.16.178.142:22: i/o timeout
executing: /Applications/VMware Fusion.app/Contents/Public/vmrun list
MAC address in VMX: 00:0c:29:64:0b:65
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.133.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:172.16.178.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-vmnet8.leases
IP found in DHCP lease table: 172.16.178.142
Got an ip: 172.16.178.142
SSH Daemon not responding yet: dial tcp 172.16.178.142:22: i/o timeout
executing: /Applications/VMware Fusion.app/Contents/Public/vmrun list
MAC address in VMX: 00:0c:29:64:0b:65
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.133.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:172.16.178.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-vmnet8.leases
IP found in DHCP lease table: 172.16.178.142
Got an ip: 172.16.178.142
SSH Daemon not responding yet: dial tcp 172.16.178.142:22: connect: host is down
executing: /Applications/VMware Fusion.app/Contents/Public/vmrun list
MAC address in VMX: 00:0c:29:64:0b:65
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.133.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:172.16.178.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-vmnet8.leases
IP found in DHCP lease table: 172.16.178.142
Got an ip: 172.16.178.142
SSH Daemon not responding yet: dial tcp 172.16.178.142:22: connect: host is down
executing: /Applications/VMware Fusion.app/Contents/Public/vmrun list
MAC address in VMX: 00:0c:29:64:0b:65
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.133.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:172.16.178.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-vmnet8.leases
IP found in DHCP lease table: 172.16.178.142
Got an ip: 172.16.178.142
SSH Daemon not responding yet: dial tcp 172.16.178.142:22: connect: host is down
executing: /Applications/VMware Fusion.app/Contents/Public/vmrun list
MAC address in VMX: 00:0c:29:64:0b:65
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.133.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:172.16.178.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-vmnet8.leases
IP found in DHCP lease table: 172.16.178.142
Got an ip: 172.16.178.142
SSH Daemon not responding yet: dial tcp 172.16.178.142:22: connect: host is down
executing: /Applications/VMware Fusion.app/Contents/Public/vmrun list
MAC address in VMX: 00:0c:29:64:0b:65
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.133.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:172.16.178.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-vmnet8.leases
IP found in DHCP lease table: 172.16.178.142
Got an ip: 172.16.178.142
SSH Daemon not responding yet: dial tcp 172.16.178.142:22: connect: host is down
executing: /Applications/VMware Fusion.app/Contents/Public/vmrun list
MAC address in VMX: 00:0c:29:64:0b:65
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.133.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:172.16.178.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-vmnet8.leases
IP found in DHCP lease table: 172.16.178.142
Got an ip: 172.16.178.142
SSH Daemon not responding yet: dial tcp 172.16.178.142:22: connect: host is down
executing: /Applications/VMware Fusion.app/Contents/Public/vmrun list
MAC address in VMX: 00:0c:29:64:0b:65
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.133.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:172.16.178.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-vmnet8.leases
IP found in DHCP lease table: 172.16.178.142
Got an ip: 172.16.178.142
SSH Daemon not responding yet: dial tcp 172.16.178.142:22: connect: host is down
executing: /Applications/VMware Fusion.app/Contents/Public/vmrun list
MAC address in VMX: 00:0c:29:64:0b:65
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.133.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:172.16.178.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-vmnet8.leases
IP found in DHCP lease table: 172.16.178.142
Got an ip: 172.16.178.142
SSH Daemon not responding yet: dial tcp 172.16.178.142:22: connect: host is down
executing: /Applications/VMware Fusion.app/Contents/Public/vmrun list
MAC address in VMX: 00:0c:29:64:0b:65
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.133.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:172.16.178.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-vmnet8.leases
IP found in DHCP lease table: 172.16.178.142
Got an ip: 172.16.178.142
Creating Tar key bundle...
executing: /Applications/VMware Fusion.app/Contents/Public/vmrun -gu docker -gp tcuser directoryExistsInGuest /Users/myusername/.minikube/machines/minikube/minikube.vmx /var/lib/boot2docker
executing: /Applications/VMware Fusion.app/Contents/Public/vmrun -gu docker -gp tcuser CopyFileFromHostToGuest /Users/myusername/.minikube/machines/minikube/minikube.vmx /Users/myusername/.minikube/machines/minikube/userdata.tar /home/docker/userdata.tar
executing: /Applications/VMware Fusion.app/Contents/Public/vmrun -gu docker -gp tcuser runScriptInGuest /Users/myusername/.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"
executing: /Applications/VMware Fusion.app/Contents/Public/vmrun -gu docker -gp tcuser runScriptInGuest /Users/myusername/.minikube/machines/minikube/minikube.vmx /bin/sh sudo /bin/mv /home/docker/userdata.tar /var/lib/boot2docker/userdata.tar
executing: /Applications/VMware Fusion.app/Contents/Public/vmrun -gu docker -gp tcuser enableSharedFolders /Users/myusername/.minikube/machines/minikube/minikube.vmx
executing: /Applications/VMware Fusion.app/Contents/Public/vmrun -gu docker -gp tcuser addSharedFolder /Users/myusername/.minikube/machines/minikube/minikube.vmx Users /Users
executing: /Applications/VMware Fusion.app/Contents/Public/vmrun -gu docker -gp tcuser runScriptInGuest /Users/myusername/.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
E0725 15:00:48.110290   18610 start.go:174] Error starting host: Error creating host: Error executing step: Creating VM.
: exit status 1.

 Retrying.
E0725 15:00:48.111356   18610 start.go:180] Error starting host:  Error creating host: Error executing step: Creating VM.
: exit status 1
================================================================================
An error has occurred. Would you like to opt in to sending anonymized crash
information to minikube to help prevent future errors?
To opt out of these messages, run the command:
	minikube config set WantReportErrorPrompt false
================================================================================
Please enter your response [Y/n]: 
y

peak-load added a commit to peak-load/minikube that referenced this issue Jul 25, 2018
As reported in issue kubernetes#3004 VMwarefusion always fails, that's because sh command running inside boot2docker fails (because there is no VMware tool `/usr/local/bin/vmhgfs-fuse` inside boot2docker image. I simply removed part of script which doing that checks. I tested on my local machine and it works perfect now.
@peak-load
Copy link
Contributor

There is PR to fix that nasty error #3018

@jcxplorer
Copy link
Contributor

It appears this has been fixed upstream: docker/machine@e515a4b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants