VirtualBox

Opened 8 years ago

Last modified 6 years ago

#15019 new defect

Unable to create Host-Only Network in Windows 10

Reported by: rkurniawan Owned by:
Component: network/hostif Version: VirtualBox 5.0.12
Keywords: Cc:
Guest type: all Host type: Windows

Description

I was unable to create host-only network in Windows 10 Home Single Language using VBoxManage hostonlyif create with following output:

0%...
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 handleCreate(struct HandlerArg *)" at line 71 of file VBoxManageHostonly.cpp

Attachments (3)

bugreport.tgz (40.8 KB ) - added by rkurniawan 8 years ago.
Capture.JPG (37.4 KB ) - added by gokumar 8 years ago.
Error
Cattura.PNG (19.9 KB ) - added by Vito 8 years ago.
NDIS6 bridged unselected

Download all attachments as: .zip

Change History (34)

comment:1 by Spanky, 8 years ago

I'm seeing the same error with VirtualBox 5.0.14, running with Vagrant 1.8.1 on Windows 7 Enterprise:

D:\Development\XNAT\1.7\xnat_vagrant>vagrant up
Loading default.yaml for Vagrant configuration...
Loading additional customizations from custom.yaml...
Bringing machine 'xnatdev' up with 'virtualbox' provider...
==> xnatdev: Importing base box 'xnatstack-ubuntu1504-docker'...
==> xnatdev: Matching MAC address for NAT networking...
==> xnatdev: Setting the name of the VM: xnatdev
==> xnatdev: 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_INVALIDARG
VBoxManage.exe: error: Failed to create the host-only adapter
VBoxManage.exe: error: Assertion failed: [!aInterfaceName.isEmpty()] at 'F:\tinderbox\win-5.0\src\VBox\Main\src-server\HostNetworkInterfaceImpl.cpp' (74) in long __cdecl HostNetworkInterface::init(class com::Bstr,class com::Bstr,class com::Guid,enum __MIDL___MIDL_itf_VirtualBox_0000_0000_0036).
VBoxManage.exe: error: Please contact the product vendor!
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleCreate(struct HandlerArg *)" at line 71 of file VBoxManageHostonly.cpp

This is a complete blocker. I'm not running anything particularly weird on the machine, the latest version of MS System Center Endpoint Protection for anti-virus (some similar errors seemed to indicate issues with Kaspersky security tools).

comment:2 by Aleksey Ilyushin, 8 years ago

Please download build 105257, uninstall existing version of VirtualBox, install build 105257 and run VBoxBugReport tool. By default it creates bugreport.tgz in the current directory, so you should run it from the directory you have write access to. Alternatively you can specify full path and name with -o option. You can check the contents and send the resulting file to me at aleksey dot ilyushin at oracle dot com, as it may potentially contain some sensitive information, not suitable for posting here in the tracker -- it is up to you how to provide the file.

comment:3 by Frank Mehnert, 8 years ago

priority: blockermajor

comment:4 by gokumar, 8 years ago

Exact same problem on "Version 5.0.12 r104815" (Windows 7)...

(default) Creating a new host-only adapter produced an error: C:\Program Files\O
racle\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: SetupDiCreateDeviceInfo failed (0x00000005)
(default) VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component Ho
stNetworkInterfaceWrap, 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 u
p host only network on machine start: Failed to find a new host-only adapter
Looks like something went wrong... Press any key to continue...
Last edited 8 years ago by gokumar (previous) (diff)

comment:5 by Aleksey Ilyushin, 8 years ago

Is anyone willing to try VBoxBugReport tool from build 105257? See details in comment:2.

in reply to:  5 ; comment:6 by gokumar, 8 years ago

Replying to aleksey:

Is anyone willing to try VBoxBugReport tool from build 105257? See details in comment:2.

Sent you the bug report by mail.

in reply to:  6 ; comment:7 by Aleksey Ilyushin, 8 years ago

Replying to gokumar:

Sent you the bug report by mail.

Thanks a lot for the bug report. Judging by the logs this may have something to do with driver signing. Could you try to lower UAC setting all the way down in Control Panel (type uac in search box, click Change User Account Control Settings)? Just make sure you turn it back on after trying to create host-only adapter. If you still get errors, please send me another bug report using build 105380. It will pick up Setup API logs as well, which may provide more detailed information on the issue.

in reply to:  7 ; comment:8 by gokumar, 8 years ago

Replying to aleksey:

Replying to gokumar:

Sent you the bug report by mail.

Thanks a lot for the bug report. Judging by the logs this may have something to do with driver signing. Could you try to lower UAC setting all the way down in Control Panel (type uac in search box, click Change User Account Control Settings)? Just make sure you turn it back on after trying to create host-only adapter. If you still get errors, please send me another bug report using build 105380. It will pick up Setup API logs as well, which may provide more detailed information on the issue.

It is already at the lowest level. Do you want me to still use the build 105380 and send you the bug report?

in reply to:  8 ; comment:9 by Aleksey Ilyushin, 8 years ago

Replying to gokumar:

It is already at the lowest level. Do you want me to still use the build 105380 and send you the bug report?

Yes, please do. I may be wrong about code signing.

by rkurniawan, 8 years ago

Attachment: bugreport.tgz added

comment:10 by rkurniawan, 8 years ago

Using build 105380 I successfully created host only interface.

Here what I did:

  1. Lowering UAC to lowest level
  2. create host only interface using VBoxManage

I also attach the bug report.

comment:11 by rkurniawan, 8 years ago

I started the VM using the host adapter that was created, I got this error:

Failed to open a session for the virtual machine CentOS 7.

Failed to open/create the internal network 'HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter' (VERR_SUPDRV_COMPONENT_NOT_FOUND).

Failed to attach the network LUN (VERR_SUPDRV_COMPONENT_NOT_FOUND).

Result Code: E_FAIL (0x80004005)
Component: ConsoleWrap
Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}

by gokumar, 8 years ago

Attachment: Capture.JPG added

Error

in reply to:  9 ; comment:12 by gokumar, 8 years ago

Replying to aleksey:

Replying to gokumar:

It is already at the lowest level. Do you want me to still use the build 105380 and send you the bug report?

Yes, please do. I may be wrong about code signing.

With this, I am unable to run VBoxBugReport.exe. I get the following error. https://www.virtualbox.org/attachment/ticket/15019/Capture.JPG

Last edited 8 years ago by gokumar (previous) (diff)

in reply to:  12 ; comment:13 by Aleksey Ilyushin, 8 years ago

Replying to gokumar:

With this, I am unable to run VBoxBugReport.exe. I get the following error. https://www.virtualbox.org/attachment/ticket/15019/Capture.JPG

This is most probably caused by the lack of write access to VirtualBox installation directory. Please run the tool for the directory you have write access to, or use -o option to specify the output file with path to a writable location. If you do have write access, then check if the output file already exists. The tool intentionally does not overwrite existing files in order not to loose important information.

in reply to:  11 ; comment:14 by Aleksey Ilyushin, 8 years ago

Replying to rkurniawan:

I started the VM using the host adapter that was created, I got this error: Failed to open/create the internal network 'HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter' (VERR_SUPDRV_COMPONENT_NOT_FOUND).

Thank you for providing the logs. Setup API logs indicate that the "VirtualBox NDIS6 Bridged Networking Driver" (aka VBoxNetLwf.sys) has been installed, but VBoxSVC.log and the output of adapter enumerator clearly indicate that the driver has not been loaded. Without the bridging driver VirtualBox cannot use host-only adapters (since 5.0). Two questions:

  1. Is there anything special about the way you install VirtualBox or you just launch the executable and follow the GUI prompts?
  2. Do you have KB3033929 update installed? You can check it by running the following command:
    wmic qfe list brief | findstr 3033929
    

in reply to:  13 ; comment:15 by gokumar, 8 years ago

Replying to aleksey:

Replying to gokumar:

With this, I am unable to run VBoxBugReport.exe. I get the following error. https://www.virtualbox.org/attachment/ticket/15019/Capture.JPG

This is most probably caused by the lack of write access to VirtualBox installation directory. Please run the tool for the directory you have write access to, or use -o option to specify the output file with path to a writable location. If you do have write access, then check if the output file already exists. The tool intentionally does not overwrite existing files in order not to loose important information.

That helped. I ran as Administrator and I am now able to capture bug report. I have sent the bug report by email. I have replied to my last email just so that it does not fall in spam/junk and so that you get the context as well.

Thanks for helping out.

in reply to:  15 ; comment:16 by Aleksey Ilyushin, 8 years ago

Replying to gokumar:

That helped. I ran as Administrator and I am now able to capture bug report. I have sent the bug report by email. I have replied to my last email just so that it does not fall in spam/junk and so that you get the context as well.

Thanks again for the bug report. Everything appears to be properly installed. Notice that your problem is actually different from the one the original reporter (rkurniawan) is experiencing. When you run VBoxManage hostonlyif create with build 105380 do you still get

(default) VBoxManage.exe: error: SetupDiCreateDeviceInfo failed (0x00000005)

or is it another error message? If the message is different this time please post it here. Does the user account that you run the command under have administrator privileges?

One more thing: according to the logs you have a host-only adapter, the one that gets created during VirtualBox installation, right? And do you get the error when trying to create another one? Did you try to remove the existing host-only adapter?

in reply to:  1 comment:17 by Aleksey Ilyushin, 8 years ago

Replying to Spanky:

I'm seeing the same error with VirtualBox 5.0.14, running with Vagrant 1.8.1 on Windows 7 Enterprise:

What do you get if you run VBoxManage hostonlyif create from command prompt? The same error, or is it different somehow?

in reply to:  16 comment:18 by gokumar, 8 years ago

Replying to aleksey:

Replying to gokumar:

That helped. I ran as Administrator and I am now able to capture bug report. I have sent the bug report by email. I have replied to my last email just so that it does not fall in spam/junk and so that you get the context as well.

Thanks again for the bug report. Everything appears to be properly installed. Notice that your problem is actually different from the one the original reporter (rkurniawan) is experiencing. When you run VBoxManage hostonlyif create with build 105380 do you still get

(default) VBoxManage.exe: error: SetupDiCreateDeviceInfo failed (0x00000005)

or is it another error message? If the message is different this time please post it here. Does the user account that you run the command under have administrator privileges?

One more thing: according to the logs you have a host-only adapter, the one that gets created during VirtualBox installation, right? And do you get the error when trying to create another one? Did you try to remove the existing host-only adapter?

I still see the following errors:

(default) Progress state: E_FAIL

(default) VBoxManage.exe: error: Failed to create the host-only adapter

(default) VBoxManage.exe: error: SetupDiCreateDeviceInfo failed (0x00000005)

(default) VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component Ho
stNetworkInterfaceWrap, interface IHostNetworkInterface

(default) VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleCreate(
struct HandlerArg *)" at line 71 of file VBoxManageHostonly.cpp

Not sure what you mean by removing existing host-only adapter. You will have to help me if I have to remove. Let me explain what I am trying to do. I am trying to install Docker Toolbox on my windows 7 box. Post installation when I start "Docker Quickstart Terminal", I see the above errors.

in reply to:  14 comment:19 by rkurniawan, 8 years ago

Replying to aleksey:

Thank you for providing the logs. Setup API logs indicate that the "VirtualBox NDIS6 Bridged Networking Driver" (aka VBoxNetLwf.sys) has been installed, but VBoxSVC.log and the output of adapter enumerator clearly indicate that the driver has not been loaded. Without the bridging driver VirtualBox cannot use host-only adapters (since 5.0). Two questions:

  1. Is there anything special about the way you install VirtualBox or you just launch the executable and follow the GUI prompts?
  2. Do you have KB3033929 update installed? You can check it by running the following command:
    wmic qfe list brief | findstr 3033929
    
  1. No, I just launched the executable and follow the GUI prompts.
  2. Do I need to install the update? Because I am using Windows 10 which was upgraded from Windows 8.1. The site tells the update is already inside Windows 8.1 so there is no need to install the update anymore. Also the command shown empty line.

comment:20 by pazoozoo, 8 years ago

I also experience this problem. After installation, I at least had one working interface: 192.168.56.0/24.

However, I cannot add any new host only interface, neither through the GUI nor using VBoxManage.

I would be fine for the moment if I could just add new interface somehow manually. Is there a way to copy an existing interface for a new subnet manually?

Besides that, the interface creation seems to be extremely shaky looking at the ticket history. A lot of problems with this crucual functionality! Would be good if that could be stabilized for future releases, expecially for Windows 10...

in reply to:  20 comment:21 by Aleksey Ilyushin, 8 years ago

Replying to pazoozoo:

Besides that, the interface creation seems to be extremely shaky looking at the ticket history. A lot of problems with this crucual functionality! Would be good if that could be stabilized for future releases, expecially for Windows 10...

Please download and install the latest test build from here. Run VBoxBugReport and provide the resulting archive to me via aleksey dot ilyushin at oracle dot com. Your help is very much appreciated.

by Vito, 8 years ago

Attachment: Cattura.PNG added

NDIS6 bridged unselected

comment:23 by Vito, 8 years ago

Hello, since the first time I had this same issue, every time I upgrade virtualbox (this just happened with 5.1.2 again) I run into this issue, that I regularly solve following these directions: http://stackoverflow.com/questions/33725779/failed-to-open-create-the-internal-network-vagrant-on-windows10

(I re-enable the VirtualBox NDIS6 Bridged Networking Driver that the installer forgets to enable):

NDIS6 bridged unselected

Windows 10 professional 64 bit host.

comment:24 by Abdel, 7 years ago

In my case I had the same error when running a vagrant setup. Turns out that I had to run the command with elevated administrator privileges inside Windows 10 (Run as administrator). I also removed the compatibility mode in the "VirtualBox.exe"

comment:25 by Daedalus, 7 years ago

I seem to be having the same issue as above, however, I don't seem to have the "VirtualBox Host-Only" network adapter in my network configurations list.

I am running version 5.0.30

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe hostonlyif create
0%...
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 handleCreate(struct HandlerArg *)" at line 71 of file VBoxManageHostonly.cpp

comment:26 by Airell, 7 years ago

Same issue still exists on 5.1.10:

c:\Program Files\Oracle\VirtualBox>VBoxManage -v
5.1.10r112026

c:\Program Files\Oracle\VirtualBox>VBoxManage.exe hostonlyif create
0%...
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 handleCreate(struct HandlerArg *)" at line 71 of file VBoxManageHostonly.cpp

comment:27 by AsadZaidi, 7 years ago

Same issue still exists on 5.1.21:

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe -v 5.1.21r115029

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe hostonlyif create 0%... 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 handleCreate(struct HandlerArg *)" at line 94 of file VBoxManageHostonly.cpp

comment:28 by Lillian, 7 years ago

on 5.1.22 have this error:

...eting host-only interface: VirtualBox Host-Only Ethernet Adapter ' could not be foundr: The host network interface named 'VirtualBox Host-Only Ethernet Adapter VBoxManage.exe: error: Details: code E_INVALIDARG (0x80070057), component HostWrap, interface IHost, callee IUnknown VBoxManage.exe: error: Context: "FindHostNetworkInterfaceByName(Bstr(pszName).raw(), hif.asOutParam())" at line 139 of file VBoxManageHostonly.cpp " was not removed. Aborting...x Host-Only Ethernet Adapter

comment:29 by maltem, 6 years ago

See this StackOverflow answer for a potential solution.

comment:30 by Bubbie, 6 years ago

I have a Windows 7 x64 host and just upgraded from VirtualBox 5.2.4 to 5.2.6, at which time any attempt to import a new VM (via Vagrant) or boot an existing VM via the VirtualBox UI resulted in a variation of this error.

When booted via the GUI:

Could not find Host Interface Networking driver! Please reinstall.

Result Code: 
E_FAIL (0x80004005)
Component: 
HostNetworkInterfaceWrap
Interface: 
IHostNetworkInterface {455f8c45-44a0-a470-ba20-27890b96dba9}

When booted via Vagrant:

Command: ["hostonlyif", "create"]

Stderr: 0%...
Progress state: E_FAIL
VBoxManage.exe: error: Failed to create the host-only adapter
VBoxManage.exe: error: Could not find Host Interface Networking driver! Please reinstall
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInte
rface
VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleCreate(struct HandlerArg *)" at line 94 of file VBoxManag
eHostonly.cpp

After following a few links, via "maltem"'s comment, earlier in this thread ( https://www.virtualbox.org/ticket/15019#comment:29 ), it occurred to me to double-check the VirtualBox network adapters, via Control Panel\Network and Internet\Network Connections, and lo and behold, both host-only adapters were greyed-out (disabled). All I had to do was right-click and Enable both and this problem was resolved in my case!

For whatever it's worth, attempts to import a new VM yielded three separate Administrative elevation prompts, all of which I approved, so this wasn't a case of VirtualBox having insufficient permission to do whatever it was trying to do. Furthermore, I tried elevating the Powershell console to Administrator-level access before booting the VM with Vagrant, which made the prompts disappear (because they are of course unnecessary given Powershell's the elevated access), but the error condition did not change.

Also, running the 5.2.6 installer's "Repair" option, which did require a restart (and I obliged), had no bearing on the observed behavior.

So, the real question (if this is even the same or a similar issue) becomes, what disabled those adapters to begin with (clearly, something the installer did in the upgrade process), and why? And more importantly, why does VirtualBox not simply re-enable them on its own (or at least attempt to do so)?

Version 3, edited 6 years ago by Bubbie (previous) (next) (diff)

in reply to:  30 comment:31 by Socratis, 6 years ago

Replying to GabeLager:

So, the real question (if this is even the same or a similar issue) becomes, what disabled those adapters to begin with (clearly, something the installer did in the upgrade process), and why?

Good one. And one that

  1. I haven't seen in a clean Windows/VirtualBox installation, and
  2. I see mostly with people that use Vagrant, Docker, Kitchen, Andy, etc., i.e. 3rd party programs.

Makes you wonder...

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use