VBoxManage: error: Failed to create the host-only adapter (II)

vboxmanage: error: failed to create the host-only adapter catalina
failed to create the host-only adapter windows 10
vboxmanage: error: failed to create the host-only adapter ubuntu
virtualbox
vagrant failed to create the host-only adapter windows 10
creating a new host-only adapter produced an error
failed to create host-only adapter docker
command: ["hostonlyif", "create"]

This error has previously been reported in post: VBoxManage: error: Failed to create the host-only adapter and it keeps reoccurring for new versions of Windows/vagrant/OracleVB as described below. If anyone has identified a solution to this problem for the setup that is described below, please share here:

  • host: Windows 10 Home version 1607 ; OS build 14939.105
  • guest: using the "bento/ubuntu-14.04" image
  • Vagrant: 1.8.5
  • Oracle VB: 5.1.4 r110228 (Qt5.5.1)

I installed Oracle VB and then Vagrant (both fresh installs) and then ran vagrant up as usuas in one of my workspaces. After vagrant had finished downloading the virtual box, it gave the following error output when attempting to start the VM:

C:\Users\AHL\workspace>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'bento/ubuntu-14.04' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Loading metadata for box 'bento/ubuntu-14.04'
    default: URL: https://atlas.hashicorp.com/bento/ubuntu-14.04
==> default: Adding box 'bento/ubuntu-14.04' (v2.2.9) for provider: virtualbox
    default: Downloading: https://atlas.hashicorp.com/bento/boxes/ubuntu-14.04/versions/2.2.9/providers/virtualbox.box
    default: Progress: 100% (Rate: 74436/s, Estimated time remaining: --:--:--)
==> default: Successfully added box 'bento/ubuntu-14.04' (v2.2.9) for 'virtualbox'!
==> default: Importing base box 'bento/ubuntu-14.04'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'bento/ubuntu-14.04' is up to date...
==> default: Setting the name of the VM: workspace_default_1473571560144_68182
==> default: Clearing any previously set network interfaces...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["hostonlyif", "create"]

Stderr: 0%...
Progress state: E_FAIL
VBoxManage.exe: error: Failed to create the host-only adapter
VBoxManage.exe: error: Operation canceled by the user
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component VirtualBoxWrap, interface IVirtualBox
VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleCreate(struct HandlerArg *)" at line 71 of file VBoxManageHostonly.cpp

C:\Users\AHL\workspace>

Vagrantfile:

Vagrant.configure(2) do |config|
  config.vm.box = "bento/ubuntu-14.04"
  config.vm.network "private_network", ip: "192.168.33.10"
end

The solution to this problem appears to be the same as reported in the related post:

Although the VM in the Oracle VB GUI appears as not running, you must manually start it through Oracle VB GUI (this should work and allow you to login to the box) and then manually power it off again (also through Oracle VB GUI). Then, run vagrant up again and it should work.

If you're having issues with this setup then please add comments to this post.

16.04, I have spent hours and hours, trying various combinations of virtualbox and vagrant, no luck. Remove virtual box or any old versions of it. Progress state: E_FAIL VBoxManage.exe: error: Failed to create the host-only adapter VBoxManage.exe: error: SetupDiCreateDeviceInfo failed (0x00000005) VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInte rface VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl

Try to execute

C:\HashiCorp\Vagrant\bin\vagrant.exe as administrator and then

vagrant up in command line.

It worked for me.

Failed to create the host-only adapter � Issue #9982 � hashicorp , Vagrant version 2.1.2 Host operating system Win10 Pro ( usually I use error: Failed to create the host-only adapter VBoxManage.exe: error:� Stderr: VBoxManage.exe: error: Failed to open/create the internal network 'HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter #2' (VERR_INTNET_FLT_IF_NOT_FOUND). VBoxManage.exe: error: Failed to attach the network LUN (VERR_INTNET_FLT_IF_NOT_FOUND)

If you installed VirtualBox without Network support or if you don't has Network support installed.

Try:

  1. open VirtualBox
  2. Menu File ---> Settings ---> Network
  3. On the right side, click button "add new network"
  4. Assume the default settings
  5. At Terminal type: vagrant up

For me, it worked. Good luck there!

I keep getting error message that is Failed to create the host-only , VBoxManage.exe: error: Failed to create the host-only adapter I upgraded vagrant from 1.9 to 2.0.2 today, but, dose not work again. (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

How to Fix DrupalVM, Error Message: VBoxManage: error: Failed to create the host-only adapter. At this point, I could already feel myself weightless, falling down the� Progress state: E_FAIL VBoxManage.exe: error: Failed to create the host-only adapter VBoxManage.exe: error: Querying NetCfgInstanceId failed (0x00000002) VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl

virtualbox.org • View topic, on Windows hosts. 21 posts • Page 1 of 2 • 1, 2 VBoxManage.exe: error: Failed to create the host-only adapter VBoxManage.exe: error:� Under Windows, when trying to use host-only adapter commands on vboxmanage, they fail intermittently and return this: VBoxManage.exe: error: Failed to create the VirtualBox object!

15019 (Unable to create Host-Only Network in Windows , Progress state: E_FAIL VBoxManage.exe: error: Failed to create the host-only adapter VBoxManage.exe: error: Querying NetCfgInstanceId failed every time I upgrade virtualbox (this just happened with 5.1.2 again) I run into this issue, that I � 2- Select Host only network. 3- Create a new Host only network (it shall appear with a new name and a prefix at the end like #2) 4- Open the virtual machine configuration 5- VM > configuration > net 6- Select the interface and change the name to the new created one in step 3. it fix the issue 100% of the times this issue happens.