VirtualBox

Opened 7 years ago

Closed 7 years ago

#16379 closed defect (fixed)

Host-only adapter can not be created on Windows 10 (VirtualBox v5.1.12)

Reported by: Allan Kjær Owned by:
Component: network Version: VirtualBox 5.1.12
Keywords: host-only Cc:
Guest type: other Host type: Windows

Description (last modified by Frank Mehnert)

I was able to install VirtualBox 5.1.12 on Windows 10, but only because I do not install the host-only adapter during installation. If this option is selected the install fails.

After install the command:

''VBoxManage.exe hostonlyif create''

results in:

''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''

I was unable to find a log file to attach.

Our users use GENYMOTION and VirtualBox to test Android apps. GENYMOTION use a host-only adapter, so GENYMOTION is unable to run.

Attachments (3)

VBoxSVC.log (11.5 KB ) - added by Allan Kjær 7 years ago.
Fail.7z (380.5 KB ) - added by Allan Kjær 7 years ago.
Install fail (7z file, MP4 is too large to attach)
VBoxInstallLog.7z (86.6 KB ) - added by Allan Kjær 7 years ago.
Install log

Download all attachments as: .zip

Change History (29)

comment:1 by Frank Mehnert, 7 years ago

Description: modified (diff)

comment:2 by Frank Mehnert, 7 years ago

priority: blockermajor

comment:3 by Frank Mehnert, 7 years ago

Please upload the VBoxSVC.log file which you can find in the \Users\USER\.VirtualBox directory.

by Allan Kjær, 7 years ago

Attachment: VBoxSVC.log added

in reply to:  3 comment:4 by Allan Kjær, 7 years ago

Replying to frank:

Please upload the VBoxSVC.log file which you can find in the \Users\USER\.VirtualBox directory.

Hi Frank,

It's done. But there's not much information in the log. It seems that the latest log entry is from the 20th of December 2016.

comment:5 by Frank Mehnert, 7 years ago

The VBoxSVC.log file shows that VBoxNetAdp6.sys is not loaded, that's the reason.

in reply to:  5 comment:6 by Allan Kjær, 7 years ago

Replying to frank:

The VBoxSVC.log file shows that VBoxNetAdp6.sys is not loaded, that's the reason.

Hi Frank,

Alright. So it's a bug that VBoxNetAdp6.sys is not loaded?

comment:7 by Frank Mehnert, 7 years ago

VboxNetAdp6.sys is not installed. Perhaps the feature was disabled during VirtualBox installation.

comment:8 by Allan Kjær, 7 years ago

Hi Frank,

As I wrote to begin with the installation fails if the host-only adapter is enabled during installation (please see attached video).

by Allan Kjær, 7 years ago

Attachment: Fail.7z added

Install fail (7z file, MP4 is too large to attach)

comment:9 by Frank Mehnert, 7 years ago

In that case please provide an installer log, see here.

comment:10 by Socratis, 7 years ago

Right-click on the installer, select "Run as Administrator". Choose NOT to run VirtualBox at the end of the installation. See if that helps...

in reply to:  10 ; comment:11 by Allan Kjær, 7 years ago

Replying to socratis:

Right-click on the installer, select "Run as Administrator". Choose NOT to run VirtualBox at the end of the installation. See if that helps...

I run the installation as administrator all the time. It's not possible to NOT run VirtualBox (or RUN it) at the end because the installation fails.

by Allan Kjær, 7 years ago

Attachment: VBoxInstallLog.7z added

Install log

in reply to:  9 comment:12 by Allan Kjær, 7 years ago

Replying to frank:

In that case please provide an installer log, see here.

Hi Frank,

Done.

in reply to:  11 ; comment:13 by Socratis, 7 years ago

Replying to techallan:

I run the installation as administrator all the time. It's not possible to NOT run VirtualBox (or RUN it) at the end because the installation fails.

Please note that there are two very different things. Huge difference actually:

  1. Run while being an administrator. Local or domain doesn't really matter, as long as your permissions are appropriately set.
  2. Right-click and select "Run as Administrator". Being logged in as an administrator or not does not matter. This is the mode I propose to everyone with installation problems and it hasn't failed so far.

And you certainly should NOT be running VirtualBox as administrator for everyday use. If you have to, something is not right in your system.

in reply to:  13 comment:14 by Allan Kjær, 7 years ago

Replying to socratis:

Replying to techallan:

I run the installation as administrator all the time. It's not possible to NOT run VirtualBox (or RUN it) at the end because the installation fails.

Please note that there are two very different things. Huge difference actually:

  1. Run while being an administrator. Local or domain doesn't really matter, as long as your permissions are appropriately set.
  2. Right-click and select "Run as Administrator". Being logged in as an administrator or not does not matter. This is the mode I propose to everyone with installation problems and it hasn't failed so far.

And you certainly should NOT be running VirtualBox as administrator for everyday use. If you have to, something is not right in your system.

I know :-) I work as an IT-administrator so I know my way around IT.

comment:15 by VVP, 7 years ago

Hello, as i see from the installation log a Virtualbox installation was marked as "unsuccessful" and i suppose it happened due to a failed attempt to create a Host-Only interface:

MSI (s) (B0:78) [11:40:24:081]: Executing op: ActionStart(Name=ca_CreateHostOnlyInterfaceNDIS6,,)
MSI (s) (B0:78) [11:40:24:083]: Executing op: CustomActionSchedule(Action=ca_CreateHostOnlyInterfaceNDIS6,ActionType=3073,Source=BinaryData,
Target=Ndis6CreateHostOnlyInterface,
CustomActionData=C:\Program Files\Oracle\VirtualBox\drivers\network\netadp6\)
MSI (s) (B0:F0) [11:40:24:087]: Invoking remote custom action. DLL: C:\WINDOWS\Installer\MSI5D5.tmp, Entrypoint: Ndis6CreateHostOnlyInterface
CreateHostOnlyInterface: Creating host-only interface
CreateHostOnlyInterface: NetAdpDir property = C:\Program Files\Oracle\VirtualBox\drivers\network\netadp6\
CreateHostOnlyInterface: Resulting INF path = C:\Program Files\Oracle\VirtualBox\drivers\network\netadp6\VBoxNetAdp6.inf
CreateHostOnlyInterface: Calling VBoxDrvCfgInfInstall(C:\Program Files\Oracle\VirtualBox\drivers\network\netadp6\VBoxNetAdp6.inf)
CreateHostOnlyInterface: VBoxDrvCfgInfInstall returns 0x0
UpdateHostOnlyInterfaces: VBoxNetCfgWinUpdateHostOnlyNetworkInterface failed, hr = 0xe000020b
CreateHostOnlyInterface: calling VBoxNetCfgWinCreateHostOnlyNetworkInterface
Timed out while waiting for NetCfgInstanceId, try again immediately...
Timed out again while waiting for NetCfgInstanceId, try again after a while...
NetSetupSvc is not running
CustomAction ca_CreateHostOnlyInterfaceNDIS6 returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)

in reply to:  15 comment:16 by Allan Kjær, 7 years ago

Replying to VVP:

Hello, as i see from the installation log a Virtualbox installation was marked as "unsuccessful" and i suppose it happened due to a failed attempt to create a Host-Only interface:

MSI (s) (B0:78) [11:40:24:081]: Executing op: ActionStart(Name=ca_CreateHostOnlyInterfaceNDIS6,,)
MSI (s) (B0:78) [11:40:24:083]: Executing op: CustomActionSchedule(Action=ca_CreateHostOnlyInterfaceNDIS6,ActionType=3073,Source=BinaryData,
Target=Ndis6CreateHostOnlyInterface,
CustomActionData=C:\Program Files\Oracle\VirtualBox\drivers\network\netadp6\)
MSI (s) (B0:F0) [11:40:24:087]: Invoking remote custom action. DLL: C:\WINDOWS\Installer\MSI5D5.tmp, Entrypoint: Ndis6CreateHostOnlyInterface
CreateHostOnlyInterface: Creating host-only interface
CreateHostOnlyInterface: NetAdpDir property = C:\Program Files\Oracle\VirtualBox\drivers\network\netadp6\
CreateHostOnlyInterface: Resulting INF path = C:\Program Files\Oracle\VirtualBox\drivers\network\netadp6\VBoxNetAdp6.inf
CreateHostOnlyInterface: Calling VBoxDrvCfgInfInstall(C:\Program Files\Oracle\VirtualBox\drivers\network\netadp6\VBoxNetAdp6.inf)
CreateHostOnlyInterface: VBoxDrvCfgInfInstall returns 0x0
UpdateHostOnlyInterfaces: VBoxNetCfgWinUpdateHostOnlyNetworkInterface failed, hr = 0xe000020b
CreateHostOnlyInterface: calling VBoxNetCfgWinCreateHostOnlyNetworkInterface
Timed out while waiting for NetCfgInstanceId, try again immediately...
Timed out again while waiting for NetCfgInstanceId, try again after a while...
NetSetupSvc is not running
CustomAction ca_CreateHostOnlyInterfaceNDIS6 returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)

Sure. I guess it's a bug in the installation? I've tried this on 2 different Windows 10 Enterprise installation, different Windows 10 Enterprise builds, though.

comment:17 by VVP, 7 years ago

Apologize for repeating about the failed installation, but if the host-only interface wasn't installed the other commands like "VBoxManage.exe hostonlyif create" will lead to the same results.

in reply to:  17 comment:18 by Allan Kjær, 7 years ago

Replying to VVP:

Apologize for repeating about the failed installation, but if the host-only interface wasn't installed the other commands like "VBoxManage.exe hostonlyif create" will lead to the same results.

Yes. When running the vboxmanage command the experience is the same as when enabling the interface during installation. The interface shows up in Windows' device manager for a few seconds and then disappears again.

comment:19 by VVP, 7 years ago

just for information. A fresh test - the latest 5.1.12 version is installed on Win10 1511 build normally. Host-only adapter is created.

in reply to:  19 comment:20 by Allan Kjær, 7 years ago

Replying to VVP:

just for information. A fresh test - the latest 5.1.12 version is installed on Win10 1511 build normally. Host-only adapter is created.

I'm running Windows 10 Enterprise, version 1607, build 14393.693.

comment:21 by Frank Mehnert, 7 years ago

So the Windows 10 build is most likely the reason for the problem.

in reply to:  21 comment:22 by Allan Kjær, 7 years ago

Replying to frank:

So the Windows 10 build is most likely the reason for the problem.

Alright. This could be, but it should still work on build 14393, right?

comment:23 by Frank Mehnert, 7 years ago

Yes, it should work. I just upgraded my Windows 10 to 14393.693 and installed VBox 5.1.12 including support for host-only adapters. No problem experienced, the VBoxNetAdp6.sys driver was properly installed.

comment:24 by Aleksey Ilyushin, 7 years ago

Please install VirtualBox without host-only support, then run VBoxBugReport and send the resulting archive to me at aleksey dot ilyushin at oracle dot com. The tool collects system info including logs, network configuration, etc.

in reply to:  24 comment:25 by Allan Kjær, 7 years ago

Replying to aleksey:

Please install VirtualBox without host-only support, then run VBoxBugReport and send the resulting archive to me at aleksey dot ilyushin at oracle dot com. The tool collects system info including logs, network configuration, etc.

Hi Aleksey. This is done now. Thanks.

comment:26 by Frank Mehnert, 7 years ago

Resolution: fixed
Status: newclosed

Fix is part of VBox 5.1.16.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use