Machine: Failed to create the host-only adapter

Created on 24 Apr 2017  ·  46Comments  ·  Source: docker/machine

I've recently run into this problem after having used docker toolbox without a problem for a while.

Started happening after windows update?

Windows 10 Home - 64

Uninstalled and reinstalled Docker toolbox

Uninstalled and reinstalled various versions of VirtualBox

Still get the same error

Running pre-create checks...
Creating machine...
(default) Copying C:\Users\me\.docker\machine\cache\boot2docker.iso to C:\Users\me\.docker\machine\machines\default\boot2docker.iso...
(default) Creating VirtualBox VM...
(default) Creating SSH key...
(default) Starting the VM...
(default) Check network to re-create if needed...
(default) Windows might ask for the permission to create a network adapter. Sometimes, such confirmation window is minimized in the taskbar.
(default) Creating a new host-only adapter produced an error: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe hostonlyif create failed:
(default) 0%...
(default) Progress state: E_FAIL
(default) VBoxManage.exe: error: Failed to create the host-only adapter
(default) VBoxManage.exe: error: Querying NetCfgInstanceId failed (0x00000002)
(default) VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
(default) VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleCreate(struct HandlerArg *)" at line 71 of file VBoxManageHostonly.cpp
(default)
(default) This is a known VirtualBox bug. Let's try to recover anyway...
Error creating machine: Error in driver during machine creation: 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
Looks like something went wrong in step ´Checking if machine default exists´... Press any key to continue...

Most helpful comment

This has worked for me (macOS High Sierra):

  1. Upgrading VirtualBox 5.2.4
  2. Open Security & Privacy, Allowing VirtualBox
  3. Restart

All 46 comments

I am having the _exact_ same issue!

Same here: windows 10 home 64bit latest toolbox and latest virtualbox

Same. Arch Linux x64, VirtualBox 5.1.22

Same on W10 64 bits

Same here. Having _exactly the same_ issue!

same here.. does anyone found solution ?

Arch User

I managed to get it to work. Hope the approach I have followed works for everyone else.

After removing docker's AppData and reinstalling both Virtualbox and Docker Toolbox, I figured that if I force Docker Quickstart Terminal to run with Administrator privileges (right from the start of the execution, rather than have the default prompt appear after its execution), it was able to create things correctly.

Similarly, Virtualbox was unable to interact or see the docker-related VM unless if started with administrator privileges. Afterwards it was working as it should.

I had the same issue after a VirtualBox Upgrade. Rebooting the PC did it for me. Basically, running Docker Toolbox after a VirtualBox upgrade (5.22 to 5.24 for me) requires a reboot after installing the upgraded version, even though there is no such mention from VirtualBox. After that everything worked fine and Docker-Machine was able to create network adapter and DHCP server without running it as admin (Windows did ask for my permission though).

Same issue. After a reboot everything works fine.

rebooting did not work for me . i still get this error on macOS High Sierra
chine...
(docker15) Copying /Users/cj/.docker/machine/cache/boot2docker.iso to /Users/cj/.docker/machine/machines/docker15/boot2docker.iso...
(docker15) Creating VirtualBox VM...
(docker15) Creating SSH key...
(docker15) Starting the VM...
(docker15) Check network to re-create if needed...
(docker15) Creating a new host-only adapter produced an error: /usr/local/bin/VBoxManage hostonlyif create failed:
(docker15) 0%...
(docker15) Progress state: NS_ERROR_FAILURE
(docker15) VBoxManage: error: Failed to create the host-only adapter
(docker15) VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory
(docker15) VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
(docker15) VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg *)" at line 94 of file VBoxManageHostonly.cpp

I think installing a newer version of Java solved my issue.

@cjmash was getting same problem, issue for me turned out to be a bad install. Uninstalled everything (running uninstall script for virtual box, dragging docker to the trash, and removed ~/.docker directory), restarted machine, re-downloaded docker and virtual box. Then -> reinstalled docker. Running it gets an error that virtual box must be installed. Opened virtual box installer (inside the virtual box dmg that was downloaded) and went to the security panel in OS X preferences and allowed the program. Then installed virtual box without error. Now docker works. Seems like if the installer isn't properly allowed by the OS X preferences you can hose your install.

With VirtualBox 5.2.4, High Sierra

Starting local Kubernetes v1.8.0 cluster...
Starting VM...
E0107 16:02:13.814743 10139 start.go:150] Error starting host: Error starting stopped host: 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.

Resolved by rebooting the machine.

Restarting helped in following environment.

#more /etc/os-release
NAME="openSUSE Tumbleweed"
VERSION="20180124 "
ID=opensuse
ID_LIKE="suse"
VERSION_ID="20180124"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:tumbleweed:20180124"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"

#zypper info virtualbox

Name           : virtualbox               
Version        : 5.2.6-1.1                
Arch           : x86_64                   
Vendor         : openSUSE                 
Installed Size : 35.6 MiB                 
Installed      : Yes                      
Status         : up-to-date               
Source package : virtualbox-5.2.6-1.1.src 
Summary        : VirtualBox is an Emulator

#zypper info docker

Name           : docker                     
Version        : 17.09.1_ce-3.1             
Arch           : x86_64                     
Vendor         : openSUSE                   
Installed Size : 63.9 MiB                   
Installed      : Yes                        
Status         : up-to-date                 
Source package : docker-17.09.1_ce-3.1.src  
Summary        : The Linux container runtime

This was driving me nuts.
It turned out that I had java version 1.7 on my system since I needed it for an specific old project.
After I installed java 1.8 this problem creating the host-only adapter went away.

Banging my head against this. No luck so far.

Windows 10 Home 64-bit

Things I've tried:
Reboot
Run as admin
Uninstall and reinstall Virtualbox + reboot
Update Java + reboot
Uninstall Docker Toolbox and Virtualbox. Reinstall Docker Toolbox with "Install Virtualbox with NDIS5.driver[default NDIS6]" checked + reboot.

All give the same error message. Not sure what else to try.

@AleCaste : Does VirtualBox depend on java?

never got docker running on windows. smh

on restart and reinstall removed the programfiles/docker/docker Toolbox folder. its started working then. dont know why

VirtualBox 5.2.8, same here, reboot does not solve this.

On Mac, the Virtualbox instlall is not properly integrated -- so it asks for a permission after it fails.

Simply re-run the installation for a second time after having granted the OS driver the install permission. No need for uninstalls.

This has worked for me (macOS High Sierra):

  1. Upgrading VirtualBox 5.2.4
  2. Open Security & Privacy, Allowing VirtualBox
  3. Restart

@dorkolog - Your instructions worked perfectly. However I had to get 5.2.4 via this link: https://download.virtualbox.org/virtualbox/5.2.4/

Uninstall and reinstalling VirtualBox worked for me on macOS High Sierra

I had the same issue, in linux mint Sylvia. As it suggested, just updated the virtualbox.
sudo apt update && sudo apt install virtualbox
fixed the issue

Trying to launch Kitematic on Mac High Sierra.

I did @marcstreeter's suggestions, and I still get the error.

Removed Docker and Virtualbox completely (not just the app, but the ./Library pieces it leaves behind).
Rebooted.
Installed Virtualbox 5.2.12. (Yes, the virtualbox installation lies to you that it hasn't installed but it did.) See here: https://stackoverflow.com/questions/46546192/virtualbox-not-installing-on-high-sierra

Then installed Docker for Mac 18.03.1-ce-mac65.
Rebooted.

Resulting error:

Command failed: /usr/local/bin/docker-machine -D start default,Docker Machine Version: 0.14.0, build 89b8332,Found binary path at /usr/local/bin/docker-machine,Launching plugin server for driver virtualbox,Plugin server listening at address 127.0.0.1:50008,() Calling .GetVersion,Using API Version 1,() Calling .SetConfigRaw,() Calling .GetMachineName,command=start machine=default,(default) Calling .GetState,(default) DBG | COMMAND: /usr/local/bin/VBoxManage showvminfo default --machinereadable,(default) DBG | STDOUT:,(default) DBG | {,(default) DBG | name="default",(default) DBG | groups="/",(default) DBG | ostype="Linux 2.6 / 3.x / 4.x (64-bit)",(default) DBG | UUID="435ed845-0351-4c62-9355-b05eee266411",(default) DBG | CfgFile="/Users/anatomboulian/.docker/machine/machines/default/default/default.vbox",(default) DBG | SnapFldr="/Users/anatomboulian/.docker/machine/machines/default/default/Snapshots",(default) DBG | LogFldr="/Users/anatomboulian/.docker/machine/machines/default/default/Logs",(default) DBG | hardwareuuid="435ed845-0351-4c62-9355-b05eee266411",(default) DBG | memory=2048,(default) DBG | pagefusion="off",(default) DBG | vram=8,(default) DBG | cpuexecutioncap=100,(default) DBG | hpet="on",(default) DBG | chipset="piix3",(default) DBG | firmware="BIOS",(default) DBG | cpus=1,(default) DBG | pae="on",(default) DBG | longmode="on",(default) DBG | triplefaultreset="off",(default) DBG | apic="on",(default) DBG | x2apic="off",(default) DBG | cpuid-portability-level=0,(default) DBG | bootmenu="disabled",(default) DBG | boot1="dvd",(default) DBG | boot2="dvd",(default) DBG | boot3="disk",(default) DBG | boot4="none",(default) DBG | acpi="on",(default) DBG | ioapic="on",(default) DBG | biosapic="apic",(default) DBG | biossystemtimeoffset=0,(default) DBG | rtcuseutc="on",(default) DBG | hwvirtex="on",(default) DBG | nestedpaging="on",(default) Calling .Start,(default) DBG | largepages="on",(default) DBG | vtxvpid="on",(default) DBG | vtxux="on",(default) DBG | paravirtprovider="default",(default) DBG | effparavirtprovider="kvm",(default) DBG | VMState="poweroff",(default) DBG | VMStateChangeTime="2018-06-20T19:08:22.000000000",(default) DBG | monitorcount=1,(default) DBG | accelerate3d="off",(default) DBG | accelerate2dvideo="off",(default) DBG | teleporterenabled="off",(default) DBG | teleporterport=0,(default) DBG | teleporteraddress="",(default) DBG | teleporterpassword="",(default) DBG | tracing-enabled="off",(default) DBG | tracing-allow-vm-access="off",(default) DBG | tracing-config="",(default) DBG | autostart-enabled="off",(default) DBG | autostart-delay=0,(default) DBG | defaultfrontend="",(default) DBG | storagecontrollername0="SATA",(default) DBG | storagecontrollertype0="IntelAhci",(default) DBG | storagecontrollerinstance0="0",(default) DBG | storagecontrollermaxportcount0="30",(default) DBG | storagecontrollerportcount0="30",(default) DBG | storagecontrollerbootable0="on",(default) DBG | "SATA-0-0"="/Users/anatomboulian/.docker/machine/machines/default/boot2docker.iso",(default) DBG | "SATA-ImageUUID-0-0"="4dfe6f4d-b250-4043-8dfa-2fe8a7d7493e",(default) DBG | "SATA-tempeject"="off",(default) DBG | "SATA-IsEjected"="off",(default) DBG | "SATA-1-0"="/Users/anatomboulian/.docker/machine/machines/default/disk.vmdk",(default) DBG | "SATA-ImageUUID-1-0"="75c709e5-deeb-4671-ae8b-1ae6357ebe4d",(default) DBG | "SATA-2-0"="none",(default) DBG | "SATA-3-0"="none",(default) DBG | "SATA-4-0"="none",(default) DBG | "SATA-5-0"="none",(default) DBG | "SATA-6-0"="none",(default) DBG | "SATA-7-0"="none",(default) DBG | "SATA-8-0"="none",(default) DBG | "SATA-9-0"="none",(default) DBG | "SATA-10-0"="none",(default) DBG | "SATA-11-0"="none",(default) DBG | "SATA-12-0"="none",(default) DBG | "SATA-13-0"="none",(default) DBG | "SATA-14-0"="none",(default) DBG | "SATA-15-0"="none",(default) DBG | "SATA-16-0"="none",(default) DBG | "SATA-17-0"="none",(default) DBG | "SATA-18-0"="none",(default) DBG | "SATA-19-0"="none",(default) DBG | "SATA-20-0"="none",(default) DBG | "SATA-21-0"="none",(default) DBG | "SATA-22-0"="none",(default) DBG | "SATA-23-0"="none",(default) DBG | "SATA-24-0"="none",(default) DBG | "SATA-25-0"="none",(default) DBG | "SATA-26-0"="none",(default) DBG | "SATA-27-0"="none",(default) DBG | "SATA-28-0"="none",(default) DBG | "SATA-29-0"="none",(default) DBG | natnet1="nat",(default) DBG | macaddress1="080027189E56",(default) DBG | cableconnected1="on",(default) DBG | nic1="nat",(default) DBG | nictype1="82540EM",(default) DBG | nicspeed1="0",(default) DBG | mtu="0",(default) DBG | sockSnd="64",(default) DBG | sockRcv="64",(default) DBG | tcpWndSnd="64",(default) DBG | tcpWndRcv="64",(default) DBG | nic2="none",(default) DBG | nic3="none",(default) DBG | nic4="none",(default) DBG | nic5="none",(default) DBG | nic6="none",(default) DBG | nic7="none",(default) DBG | nic8="none",(default) DBG | hidpointing="ps2mouse",(default) DBG | hidkeyboard="ps2kbd",(default) DBG | uart1="off",(default) DBG | uart2="off",(default) DBG | uart3="off",(default) DBG | uart4="off",(default) DBG | lpt1="off",(default) DBG | lpt2="off",(default) DBG | audio="coreaudio",(default) DBG | audio_in="false",(default) DBG | audio_out="false",(default) DBG | clipboard="disabled",(default) DBG | draganddrop="disabled",(default) DBG | vrde="off",(default) DBG | usb="off",(default) DBG | ehci="off",(default) DBG | xhci="off",(default) DBG | SharedFolderNameMachineMapping1="Users",(default) DBG | SharedFolderPathMachineMapping1="/Users",(default) DBG | videocap="off",(default) DBG | videocap_audio="off",(default) DBG | videocapscreens=0,(default) DBG | videocapfile="/Users/anatomboulian/.docker/machine/machines/default/default/default.webm",(default) DBG | videocapres=1024x768,(default) DBG | videocaprate=512,(default) DBG | videocapfps=25,(default) DBG | videocapopts=,(default) DBG | GuestMemoryBalloon=0,(default) DBG | },(default) DBG | STDERR:,(default) DBG | {,(default) DBG | },(default) DBG | COMMAND: /usr/local/bin/VBoxManage showvminfo default --machinereadable,(default) DBG | STDOUT:,(default) DBG | {,(default) DBG | name="default",(default) DBG | groups="/",(default) DBG | ostype="Linux 2.6 / 3.x / 4.x (64-bit)",(default) DBG | UUID="435ed845-0351-4c62-9355-b05eee266411",(default) DBG | CfgFile="/Users/anatomboulian/.docker/machine/machines/default/default/default.vbox",(default) DBG | SnapFldr="/Users/anatomboulian/.docker/machine/machines/default/default/Snapshots",(default) DBG | LogFldr="/Users/anatomboulian/.docker/machine/machines/default/default/Logs",(default) DBG | hardwareuuid="435ed845-0351-4c62-9355-b05eee266411",(default) DBG | memory=2048,(default) DBG | pagefusion="off",(default) DBG | vram=8,(default) DBG | cpuexecutioncap=100,(default) DBG | hpet="on",(default) DBG | chipset="piix3",(default) DBG | firmware="BIOS",(default) DBG | cpus=1,(default) DBG | pae="on",(default) DBG | longmode="on",(default) DBG | triplefaultreset="off",(default) DBG | apic="on",(default) DBG | x2apic="off",(default) DBG | cpuid-portability-level=0,(default) DBG | bootmenu="disabled",(default) DBG | boot1="dvd",(default) DBG | boot2="dvd",(default) DBG | boot3="disk",(default) DBG | boot4="none",(default) DBG | acpi="on",(default) DBG | ioapic="on",(default) DBG | biosapic="apic",(default) DBG | biossystemtimeoffset=0,(default) DBG | rtcuseutc="on",(default) DBG | hwvirtex="on",(default) DBG | nestedpaging="on",(default) DBG | largepages="on",(default) DBG | vtxvpid="on",(default) DBG | vtxux="on",(default) DBG | paravirtprovider="default",(default) DBG | effparavirtprovider="kvm",(default) DBG | VMState="poweroff",(default) DBG | VMStateChangeTime="2018-06-20T19:08:22.000000000",(default) DBG | monitorcount=1,(default) DBG | accelerate3d="off",(default) DBG | accelerate2dvideo="off",(default) DBG | teleporterenabled="off",(default) DBG | teleporterport=0,(default) DBG | teleporteraddress="",(default) DBG | teleporterpassword="",(default) DBG | tracing-enabled="off",(default) DBG | tracing-allow-vm-access="off",(default) DBG | tracing-config="",(default) DBG | autostart-enabled="off",(default) DBG | autostart-delay=0,(default) DBG | defaultfrontend="",(default) DBG | storagecontrollername0="SATA",(default) DBG | storagecontrollertype0="IntelAhci",(default) DBG | storagecontrollerinstance0="0",(default) DBG | storagecontrollermaxportcount0="30",(default) DBG | storagecontrollerportcount0="30",(default) DBG | storagecontrollerbootable0="on",(default) DBG | "SATA-0-0"="/Users/anatomboulian/.docker/machine/machines/default/boot2docker.iso",(default) DBG | "SATA-ImageUUID-0-0"="4dfe6f4d-b250-4043-8dfa-2fe8a7d7493e",(default) DBG | "SATA-tempeject"="off",(default) DBG | "SATA-IsEjected"="off",(default) DBG | "SATA-1-0"="/Users/anatomboulian/.docker/machine/machines/default/disk.vmdk",(default) DBG | "SATA-ImageUUID-1-0"="75c709e5-deeb-4671-ae8b-1ae6357ebe4d",(default) DBG | "SATA-2-0"="none",(default) DBG | "SATA-3-0"="none",(default) DBG | "SATA-4-0"="none",(default) DBG | "SATA-5-0"="none",(default) DBG | "SATA-6-0"="none",(default) DBG | "SATA-7-0"="none",(default) DBG | "SATA-8-0"="none",(default) DBG | "SATA-9-0"="none",(default) DBG | "SATA-10-0"="none",(default) DBG | "SATA-11-0"="none",(default) DBG | "SATA-12-0"="none",(default) DBG | "SATA-13-0"="none",(default) DBG | "SATA-14-0"="none",(default) DBG | "SATA-15-0"="none",(default) DBG | "SATA-16-0"="none",(default) DBG | "SATA-17-0"="none",(default) DBG | "SATA-18-0"="none",(default) DBG | "SATA-19-0"="none",(default) DBG | "SATA-20-0"="none",(default) DBG | "SATA-21-0"="none",(default) DBG | "SATA-22-0"="none",(default) DBG | "SATA-23-0"="none",(default) DBG | "SATA-24-0"="none",(default) DBG | "SATA-25-0"="none",(default) DBG | "SATA-26-0"="none",(default) DBG | "SATA-27-0"="none",(default) DBG | "SATA-28-0"="none",(default) DBG | "SATA-29-0"="none",(default) DBG | natnet1="nat",(default) DBG | macaddress1="080027189E56",(default) DBG | cableconnected1="on",(default) DBG | nic1="nat",(default) DBG | nictype1="82540EM",(default) DBG | nicspeed1="0",(default) DBG | mtu="0",(default) DBG | sockSnd="64",(default) DBG | sockRcv="64",(default) DBG | tcpWndSnd="64",(default) DBG | tcpWndRcv="64",(default) DBG | nic2="none",(default) DBG | nic3="none",(default) DBG | nic4="none",(default) DBG | nic5="none",(default) DBG | nic6="none",(default) DBG | nic7="none",(default) DBG | nic8="none",(default) DBG | hidpointing="ps2mouse",(default) DBG | hidkeyboard="ps2kbd",(default) DBG | uart1="off",(default) DBG | uart2="off",(default) DBG | uart3="off",(default) DBG | uart4="off",(default) DBG | lpt1="off",(default) DBG | lpt2="off",(default) DBG | audio="coreaudio",(default) DBG | audio_in="false",(default) DBG | audio_out="false",(default) DBG | clipboard="disabled",(default) DBG | draganddrop="disabled",(default) DBG | vrde="off",(default) DBG | usb="off",(default) DBG | ehci="off",(default) DBG | xhci="off",(default) DBG | SharedFolderNameMachineMapping1="Users",(default) DBG | SharedFolderPathMachineMapping1="/Users",(default) DBG | videocap="off",(default) DBG | videocap_audio="off",(default) DBG | videocapscreens=0,(default) DBG | videocapfile="/Users/anatomboulian/.docker/machine/machines/default/default/default.webm",(default) DBG | videocapres=1024x768,(default) DBG | videocaprate=512,(default) DBG | videocapfps=25,(default) DBG | videocapopts=,(default) DBG | GuestMemoryBalloon=0,(default) DBG | },(default) DBG | STDERR:,(default) DBG | {,(default) DBG | },(default) DBG | COMMAND: /usr/local/bin/VBoxManage list hostonlyifs,(default) DBG | STDOUT:,(default) DBG | {,(default) DBG | },(default) DBG | STDERR:,(default) DBG | {,(default) DBG | },(default) DBG | Searching for hostonly interface for IPv4: 192.168.99.1 and Mask: ffffff00,(default) DBG | Not found,(default) DBG | COMMAND: /usr/local/bin/VBoxManage hostonlyif create,(default) DBG | STDOUT:,(default) DBG | {,(default) DBG | },(default) DBG | STDERR:,(default) DBG | {,(default) DBG | 0%...,(default) DBG | Progress state: NS_ERROR_FAILURE,(default) DBG | VBoxManage: error: Failed to create the host-only adapter,(default) DBG | VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory,(default) DBG | VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface,(default) DBG | VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg *)" at line 94 of file VBoxManageHostonly.cpp,(default) DBG | },(default) DBG | COMMAND: /usr/local/bin/VBoxManage list hostonlyifs,(default) DBG | STDOUT:,(default) DBG | {,(default) DBG | },(default) DBG | STDERR:,(default) DBG | {,(default) DBG | },(default) DBG | COMMAND: /usr/local/bin/VBoxManage list hostonlyifs,(default) DBG | STDOUT:,(default) DBG | {,(default) DBG | },(default) DBG | STDERR:,(default) DBG | {,(default) DBG | },(default) DBG | COMMAND: /usr/local/bin/VBoxManage list hostonlyifs,(default) DBG | STDOUT:,(default) DBG | {,(default) DBG | },(default) DBG | STDERR:,(default) DBG | {,(default) DBG | },(default) DBG | COMMAND: /usr/local/bin/VBoxManage list hostonlyifs,(default) DBG | STDOUT:,(default) DBG | {,(default) DBG | },(default) DBG | STDERR:,(default) DBG | {,(default) DBG | },(default) DBG | COMMAND: /usr/local/bin/VBoxManage list hostonlyifs,(default) DBG | STDOUT:,(default) DBG | {,(default) DBG | },(default) DBG | STDERR:,(default) DBG | {,(default) DBG | },(default) DBG | COMMAND: /usr/local/bin/VBoxManage list hostonlyifs,(default) DBG | STDOUT:,(default) DBG | {,(default) DBG | },(default) DBG | STDERR:,(default) DBG | {,(default) DBG | },(default) DBG | COMMAND: /usr/local/bin/VBoxManage list hostonlyifs,(default) DBG | STDOUT:,(default) DBG | {,(default) DBG | },(default) DBG | STDERR:,(default) DBG | {,(default) DBG | },(default) DBG | COMMAND: /usr/local/bin/VBoxManage list hostonlyifs,(default) DBG | STDOUT:,(default) DBG | {,(default) DBG | },(default) DBG | STDERR:,(default) DBG | {,(default) DBG | },(default) DBG | COMMAND: /usr/local/bin/VBoxManage list hostonlyifs,(default) DBG | STDOUT:,(default) DBG | {,(default) DBG | },(default) DBG | STDERR:,(default) DBG | {,(default) DBG | },(default) DBG | COMMAND: /usr/local/bin/VBoxManage list hostonlyifs,(default) DBG | STDOUT:,(default) DBG | {,(default) DBG | },(default) DBG | STDERR:,(default) DBG | {,(default) DBG | },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,

I had the same issue. I got two solution for it.

  • Uninstall check point endpoint security application OR
  • added below line in vagrantfile
    config.vm.network "public_network", ip: "{ip}" along with config.vm.network "private_network", ip: "{ip}"
    image

I installed Docker toolbox.

Got Docker Quickstart Terminal working by:

  1. Install Virtualbox separately.
  2. Open Security & Privacy and allow an install from Oracle.
  3. Re-launched Virtualbox installer
  4. Relaunched Docker Quickstart Terminal
  5. Done.

@thebiltheory That's great but it says on docker's documentation the Docker Quickstart Terminal is a legacy desktop solution: https://docs.docker.com/toolbox/toolbox_install_mac/

Legacy desktop solution. Docker Toolbox is for older Mac and Windows systems that do not meet the requirements of Docker for Mac and Docker for Windows. We recommend updating to the newer applications, if possible.

My desktop is 10.13.6 Mac High Sierra, and it shouldn't need the toolbox.

Out of curiosity what is your OS version?

Thank you, @fleveillee, rebooting also works for me.
Here is my environment:

MacOS High Sierra
Virtualbox 5.2.18 (VirtualBox-5.2.18-124319-OSX.dmg)
docker-machine version 0.14.0, build 89b8332

Had the issue after upgrading the mac os to Mojave.

$ docker-machine restart default
Restarting "default"...
Starting "default"...
(default) Check network to re-create if needed...
(default) Creating a new host-only adapter produced an error: /usr/local/bin/VBoxManage hostonlyif create failed:
(default) 0%...
(default) Progress state: NS_ERROR_FAILURE
(default) VBoxManage: error: Failed to create the host-only adapter
(default) VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory
(default) VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
(default) VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg *)" at line 94 of file VBoxManageHostonly.cpp
(default)
(default) This is a known VirtualBox bug. Let's try to recover anyway...
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

Virtualbox upgrade solved the issue:
virtualbox 5.2.10,122088 -> 5.2.18,124319

(Solution, MacOS, No reboot required, Reinstall VM required)
Running on a mac. Virtual box was not installed, so I installed it and it failed (because Macs are all about that security, even after I have allowed installation from all sources). Allowed it in the security preferences. Ran the uninstall script for VM. Reclicked the .pkg file that was supposed to install it. Removed the machine and created the machine again, and it worked!

Solution for Windows 7 is to reinstall Virutal Box. Works fine for me.

Just install latest virtualbox 5.2.0 and it could fix.

@cjmash was getting same problem, issue for me turned out to be a bad install. Uninstalled everything (running uninstall script for virtual box, dragging docker to the trash, and removed ~/.docker directory), restarted machine, re-downloaded docker and virtual box. Then -> reinstalled docker. Running it gets an error that virtual box must be installed. Opened virtual box installer (inside the virtual box dmg that was downloaded) and went to the security panel in OS X preferences and allowed the program. Then installed virtual box without error. Now docker works. Seems like if the installer isn't properly allowed by the OS X preferences you can hose your install.

Jesus, easier than I expected... 🤦‍♂️

Thanks buddy!!

Restart my machine work for me as well - thanks

*Restarting my machine worked for me as well - thanks

I managed to get it to work. Hope the approach I have followed works for everyone else.

After removing docker's AppData and reinstalling both Virtualbox and Docker Toolbox, I figured that if I force Docker Quickstart Terminal to run with Administrator privileges (right from the start of the execution, rather than have the default prompt appear after its execution), it was able to create things correctly.

Similarly, Virtualbox was unable to interact or see the docker-related VM unless if started with administrator privileges. Afterwards it was working as it should.

This is the solution worked for me.
Its weird but it worked :)
Thanks you saved me man.

Manually installing the latest VirtualBox and reboot helped.

This one solved the issue for me (Mac OS X, V6.0):
sudo "/Library/Application Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh" restart

Uninstalling VirtualBox and reinstalling via brew cask install virtualbox solved this issue for me.
--Mac OSX Catalina 10.15.1

Starting VM worked for me

I faced same issue. Got fixed the issue after manually installing the latest VirtualBox.

For window, i uninstalled the VM Virtual box provided by the toolbox and install latest version 6.1.x manually and did docker-machine restart default and it works for me

Hey guys, i had same problem for the past weeks. I downloaded an older version of Virtualbox and that solved the problem. I was able to get hostonly adaptor. Download Virtualbox 5.2.42.

Uninstall the Virtualbox that came with docker toolbox...install it separately from the virtual box website, and then rerun the docker quickstart terminal.
It will work like this, at least in my case it did.

Was this page helpful?
0 / 5 - 0 ratings