minikube: mount: Error finding IPV4 address for VirtualBox Host-Only Ethernet Adapter

Bug Report

Please provide the following details:

Environment:

Minikube version (use minikube version): v0.24.1

  • OS (e.g. from /etc/os-release): Windows 10 Home x64
  • VM Driver (e.g. cat ~/.minikube/machines/minikube/config.json | grep DriverName): virtualbox (v5.2.6)
  • ISO version (e.g. cat ~/.minikube/machines/minikube/config.json | grep -i ISO or minikube ssh cat /etc/VERSION): v0.23.6
  • Install tools: Installed via choco

What happened: I tried mounting a folder from my host machine into minikube via minikube mount C:\Users\Benedikt\projects\:/projects

This failed with the following error message:

E0121 16:05:59.868890    6556 mount.go:113] Error getting the host IP address to use from within the VM:  Error getting VM/Host IP address: Error finding IPV4 address for VirtualBox Host-Only Ethernet Adapter #4

I then followed the workaround mentioned in #1473 and renamed the Network Interface according to what the error output showed. After this, i could correctly mount the folder and access the files from within minikube.

What you expected to happen: The mount correctly executes and my host files are available in Minikube.

How to reproduce it (as minimally and precisely as possible): Try mounting a volume into minikube with virtualbox provider.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 16 (2 by maintainers)

Most upvoted comments

@cscetbon just realized there is one step missing…

After configuring the Promiscuous mode to Allow VMs, 6. find the IP address of the attached Virtualbox Adapter (e.g. using ipconfig) and then, do

minikube mount --ip <ip-of-attached-interface> c://Users//git//nice-project:/data/nice-project

image