minikube: The host-only adapter we just created is not visible. This is a well known VirtualBox bug. You might want to uninstall it and reinstall at least version 5.0.12 that is is supposed to fix this issue
Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT
Please provide the following details:
Environment:
Minikube version (use minikube version):
- OS (e.g. from /etc/os-release):
- VM Driver (e.g.
cat ~/.minikube/machines/minikube/config.json | grep DriverName): - ISO version (e.g.
cat ~/.minikube/machines/minikube/config.json | grep -i ISOorminikube ssh cat /etc/VERSION): - Install tools:
- Others: The above can be generated in one go with the following commands (can be copied and pasted directly into your terminal):
echo "";
echo "OS:";
cat /etc/os-release
echo "";
echo "VM driver":
grep DriverName ~/.minikube/machines/minikube/config.json
echo "";
echo "ISO version";
grep -i ISO ~/.minikube/machines/minikube/config.json
OS:
cat: /etc/os-release: No such file or directory
VM driver:
"DriverName": "virtualbox",
ISO version
"Boot2DockerURL": "file:///Users/admin/.minikube/cache/iso/minikube-v0.23.6.iso",
What happened:
E0121 01:52:54.738520 23608 start.go:156] Error starting host: Error creating host: Error executing step: Creating VM.
: Error setting up host only network on machine start: The host-only adapter we just created is not visible. This is a well known VirtualBox bug. You might want to uninstall it and reinstall at least version 5.0.12 that is is supposed to fix this issue
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Output of minikube logs (if applicable):
F0121 01:59:40.651984 23877 logs.go:50] Error getting cluster bootstrapper: getting localkube bootstrapper: getting ssh client: Error dialing tcp via ssh client: dial tcp 127.0.0.1:22: getsockopt: connection refused
Anything else do we need to know:
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 3
- Comments: 37 (1 by maintainers)
I reinstalled the same version of VirtualBox, and it worked. I think the reason was because when I firist installed VirtualBox, it said it had failed because the OS blocked some installation thing. So I went to System Preferences, Security, and there was a message something like “The installation from Oracle was blocked”. I approved it, and thought that would be that.
But it didn’t work. However, as I say I re-installed it and I guess the OS remembered that I approved installation so it worked without a problem this time.
I had given up, fail forever to install kubernetes, maybe because i am in china
I had this problem running on Arch Linux. It was caused by the virtualbox kernel modules for network not being loaded correctly after a new installation of virtualbox. After a reboot the correct kernel modules were loaded and Minikube ran as normal.
The required network modules are:
I did not have to reinstall virtualbox to fix this problem – I just needed to reboot.
sudo modprobe vboxnetadp
MacOS Solution
Run the following shell(Root is necessary)
MacOS open System Preferences → Security & Privacy → General
Click Allow
Last, rerun
brew cask reinstall virtualboxPerfectly resolved for me
I experienced on Windows 10 that you should restart after installing VirtualBox.
Minikube and Ubuntu 16.04 have been a horrible experience. I have reinstalled virtualbox multiple times and tried multiple different versions. This is really disappointing.
On Ubuntu Linux, there were a few things I needed to check with VirtualBox:
If you are using SecureBoot, ensure these modules have been signed as well (you’ll have set up a process for this if you have used VirtualBox in the past)
You can check their output by tailing
dmesg, or list them out by runningls /lib/modules/`uname -r`/misc3. Lastly ensure that you have an VirtualBox interface that can be used as a host-only network. This can be done in the UI by going to File->Host Network Manager (and clicking Create if one isn’t available) or by runningVBoxManage hostonlyif createto create a new oneOk so on Mac I had the same issue, here’s my flow (now it’s fixed):
INSTALLATION ISSUE
minikube start, failure as described in this ticketRE-INSTALLATION ATTEMPTS
SOLUTION, AFTER EVERYTHING ELSE FAILED…
minikube startSo trial and error. Should be fixed by Oracle I think, this installer fails by default… but hey, they must be really busy with other stuff…
Thanks, that was it @alienscience. Also I needed the
virtualbox-host-modules-archinstead of the default one suggested when installingvirtualbox.I didn’t reboot but just loaded the kernel modules manually.
It looks to me like this error message is somewhat misleading. For me, it wasn’t really anything to do with a virtualbox known bug or a version higher that 5.0.12. However, it was an issue with how virtualbox was installed. If you get this error, first try running minikube VM manually under virtualbox. More applicable errors are shown there.
I ended up removing and reinstalling virtualbox with the correct kernel modules. I then needed to manually delete the previously created minikube VM in virualbox followed by a
minikube deleteso that minikube would create a valid VM.Now at least
minikube startcompletes without errors.I had same issue on OSX, and struggled a lot until I tried to install VirtualBox with Cask which printed the following:
Allowing Orance Inc. developer in
System Preferences → Security & Privacy → Generalfixed the problem.Uninstalling und reinstalling with the exact installer works. If you use the windows uninstall tools I had no luck.
Try to reinstall virtualbox with the same installer or run the networking setup tool. The host-only network (default) needs to exist as this is needed for initial and ssh communication.
Rebooting the system after installing VirtualBox worked for me (MacOS Mojave 10.14.3)
Clear reinstall of VirtualBox helped me. Mac OS High Sierra 10.13.4 Beta4, minikube v0.25.0. VirtualBox v5.2.8 r121009
I just used the kvm2 hypervisor, which works very well.
On Mar 11, 2018 9:59 AM, “Rikki Rockett” notifications@github.com wrote:
I’m getting this too, on NixOS 17.09
The version constraint in the error message is clearly incorrect, since I’m on VirtualBox 5.1.32 and still getting this