[Solved] Windows 10 - VB 5.2.4 - Unable to create Host Only adapter

Discussions related to using VirtualBox on Windows hosts.
Stoffen
Posts: 8
Joined: 9. Jan 2018, 10:40

[Solved] Windows 10 - VB 5.2.4 - Unable to create Host Only adapter

Post by Stoffen »

Hi.
Since some Win 10 update, my Host Only adapter disappeared.
I have tried numerous versions in both 5.1 and 5.2 but none of them provide a valid interface.
  • Windows 10 Pro
  • Version 1709
  • OS-Build 16299.125
Now I'm resting on latest 5.2.4 but nothing works as expected.

I've uninstalled all VirtualBox, rebooted, reinstalled and rebooted again, with no luck.

Host Only adapter is not seen in Network connections or in Device Manager.

In VirtualBox, I go to CTRL + W (Host Network Manager) and try to create a new adapter.
This list is for the record empty.

Code: Select all

Failed to create a host network interface.

Could not find Host Interface Networking driver! Please reinstall.

Result Code: E_FAIL (0x80004005)
Component: HostNetworkInterfaceWrap
Interface: IHostNetworkInterface {455f8c45-44a0-a470-ba20-27890b96dba9}
OK, so I have a driver issue.

I then try to add the driver / network card manually from Device Manager in Win10, by Add legacy hardware, Choose from list, Network card, Have disk, and point it to the drivers included in the installer:
C:\Program Files\Oracle\VirtualBox\drivers\network\netadp6\VBoxNetAdp6.inf

VirtualBox Host-Only Ethernet Adapter is recognized as a model in the driver.
Next, Next, then an error occured "Access Denied".

Now I'm not sure where to go next.

In previously versions of Virtual Box, I could see the adapter in device manager for a brief second when trying to add a new adapter from Virtual Box menus, but the error message was the same.

Any good ideas?
Last edited by Stoffen on 12. Feb 2018, 13:33, edited 1 time in total.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Windows 10 - VB 5.2.4 - Unable to create Host Only adapter

Post by mpack »

Did you reinstall VirtualBox using "Run as administrator"?
Stoffen
Posts: 8
Joined: 9. Jan 2018, 10:40

Re: Windows 10 - VB 5.2.4 - Unable to create Host Only adapter

Post by Stoffen »

Actually no.
Now I did a repair with "run as admin" and for some weird reason, there is a conflict between process iTunesHelper and MobileDeviceService (Apple Mobile Device Service).

This didnt help. What is the common files between Virtual box and iTunes? Cant see any relevant bindings there...

Will do a complete uninstall and reinstall with reboots between each step to see if it brings me a step further.

-brb-
BillG
Volunteer
Posts: 5102
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: Windows 10 - VB 5.2.4 - Unable to create Host Only adapter

Post by BillG »

You could uninstall iTunes and try again. I have no idea why it would be involved.
Bill
Stoffen
Posts: 8
Joined: 9. Jan 2018, 10:40

Re: Windows 10 - VB 5.2.4 - Unable to create Host Only adapter

Post by Stoffen »

Uninstall virtualbox
Uninstall iTunes
reboot
reinstall virtualbox (with run as admin).

Unable to create Host Only interface

Code: Select all

Failed to create a host network interface.

Querying NetCfgInstanceId failed (0x00000002).

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

Try to add Host Only interface again:

Code: Select all

Failed to create a host network interface.

Querying NetCfgInstanceId failed (0x00000002).

Result Code: E_FAIL (0x80004005)
Component: HostNetworkInterfaceWrap
Interface: IHostNetworkInterface {455f8c45-44a0-a470-ba20-27890b96dba9}
Now I could see the adapter appear in Device manager with the following driver information:

Code: Select all

Driver vendor: Oracle Corp
Driver date: 18.12.2017
Driver version 5.2.4.0
Digitally signed: Oracle Corp
However, the adapter "flaps", or disappears and reappers during the attempt to create the adapter.

I can see in Events, that the driver has been added, then deleted, then added.
It adds the adapter 3 times, and deletes it 3 times.
When adding, the follwoing information can be retrived (translated from Norwegian):

Code: Select all

Devicemanager has added the service VBoxNetAdp for deviceinstance-ID ROOT\NET\0004 with status: 0.
And on the delete event:

Code: Select all

Device ROOT\NET\0004 was deleted.

Class Guid: {4D36E972-E325-11CE-BFC1-08002BE10318}
Last edited by Stoffen on 10. Jan 2018, 15:03, edited 1 time in total.
Stoffen
Posts: 8
Joined: 9. Jan 2018, 10:40

Re: Windows 10 - VB 5.2.4 - Unable to create Host Only adapter

Post by Stoffen »

Tried to add the interface via CLI instead. It still fails but now with some additional information

(CMD run as Administrator):

Code: Select all

c:\Program Files\Oracle\VirtualBox>vboxmanage 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

c:\Program Files\Oracle\VirtualBox>
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Windows 10 - VB 5.2.4 - Unable to create Host Only adapter

Post by socratis »

Ch. "12.7.6 Host-only networking adapters cannot be created" may help you out. It talks about a "corrupted" Windows INF cache. Not sure if it still applies to Win10.

Another tool that was brought to my attention for cleaning up things is "pnputil", included with Windows. Haven't used it, don't know how to. Search the webs...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Stoffen
Posts: 8
Joined: 9. Jan 2018, 10:40

Re: Windows 10 - VB 5.2.4 - Unable to create Host Only adapter

Post by Stoffen »

Good point.
Did a few tries here, but no good came from it.

I found a log-file that perhaps points to the root cause, but it doesnt tell me much.
Logfile:
C:\Windows\INF\setupapi.dev.log

From this, I can extract the following:

Code: Select all

>>>  [Configure Driver Package - c:\windows\system32\driverstore\filerepository\vboxnetadp6.inf_amd64_90835cfd46e031b1\vboxnetadp6.inf]
>>>  Section start 2018/01/10 09:56:44.667
      cmd: "C:\Program Files\Oracle\VirtualBox\VBoxSVC.exe" /Helper VirtualBox\SVCHelper\{102dfa27-5ffb-454f-bb71-9dcda2b037e1}
     sto: Source Filter  = VBoxNetAdp6.ndi
     sto: Target Filter  = ROOT\NET\0004
     inf: Class GUID     = {4d36e972-e325-11ce-bfc1-08002be10318}
     inf: Class Options  = Configurable
!!!  idb: Failed to open driver package object 'vboxnetadp6.inf_amd64_90835cfd46e031b1'. Error = 0x00000005
<<<  Section end 2018/01/10 09:56:44.728
<<<  [Exit status: FAILURE(0x00000005)]
I know for certain that the file in drivercache and filerepo was gone a few minutes ago before I did a fresh install of Virtualbox again.

Before the install, I did a manual remove of files with the use of pnputil, where the drivers was embedded in oem14.inf (usb) and oem17.inf (host only adapter).

I did a manual install of the driver, by rightclick the INF file, and install.
Log states that this is OK.

Code: Select all

>>>  [Device Install (DiInstallDriver) - C:\Windows\System32\DriverStore\FileRepository\vboxnetadp6.inf_amd64_90835cfd46e031b1\VBoxNetAdp6.inf]
>>>  Section start 2018/01/10 10:06:52.993
      cmd: "C:\WINDOWS\System32\InfDefaultInstall.exe" "C:\Windows\System32\DriverStore\FileRepository\vboxnetadp6.inf_amd64_90835cfd46e031b1\VBoxNetAdp6.inf"
     ndv: Flags: 0x00000000
     ndv: INF path: C:\Windows\System32\DriverStore\FileRepository\vboxnetadp6.inf_amd64_90835cfd46e031b1\VBoxNetAdp6.inf
     inf: {SetupCopyOEMInf: C:\Windows\System32\DriverStore\FileRepository\vboxnetadp6.inf_amd64_90835cfd46e031b1\VBoxNetAdp6.inf} 10:06:53.011
     inf:      Copy style: 0x00000000
     inf:      Driver Store Path: C:\WINDOWS\System32\DriverStore\FileRepository\vboxnetadp6.inf_amd64_90835cfd46e031b1\vboxnetadp6.inf
     inf:      Published Inf Path: C:\WINDOWS\INF\oem17.inf
     inf: {SetupCopyOEMInf exit (0x00000000)} 10:06:53.035
<<<  Section end 2018/01/10 10:06:53.056
<<<  [Exit status: SUCCESS]
However when I try to add the hostonly adapter again, it fails as before.

Code: Select all

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

Code: Select all

>>>  [Configure Driver Package - c:\windows\system32\driverstore\filerepository\vboxnetadp6.inf_amd64_90835cfd46e031b1\vboxnetadp6.inf]
>>>  Section start 2018/01/10 10:11:46.765
      cmd: "C:\Program Files\Oracle\VirtualBox\VBoxSVC.exe" /Helper VirtualBox\SVCHelper\{fd0b47c0-d9a6-450e-9fc4-a7cdb8b5ff8c}
     sto: Source Filter  = VBoxNetAdp6.ndi
     sto: Target Filter  = ROOT\NET\0001
     inf: Class GUID     = {4d36e972-e325-11ce-bfc1-08002be10318}
     inf: Class Options  = Configurable
!!!  idb: Failed to open driver package object 'vboxnetadp6.inf_amd64_90835cfd46e031b1'. Error = 0x00000005
<<<  Section end 2018/01/10 10:11:46.806
<<<  [Exit status: FAILURE(0x00000005)]
I have also did the tricks mentioned in this guide: https://superuser.com/questions/1034806 ... install-it - remove files and registry keys before reinstall.

Any suggestions welcome!
Stoffen
Posts: 8
Joined: 9. Jan 2018, 10:40

Re: Windows 10 - VB 5.2.4 - Unable to create Host Only adapter

Post by Stoffen »

No good suggestions for this problem?
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Windows 10 - VB 5.2.4 - Unable to create Host Only adapter

Post by socratis »

Unfortunately, no. There are many problems with the HostOnly adapter creation in Windows. There is no clear solution, because the issue can arise from a myriad of options/conflicts/parameters. It's not a standard one and it really depends on your specific setup. One thing is for sure; it does not happen on a clean installation. Which means that something specific to your installation is preventing that from happening. Only you can diagnose/fix it, we can only make generic suggestions, and those have already been made.

And those suggestions come from the common community knowledge, so if you *do* find a solution, please let us know so we can all benefit, and include it as a potential solution for future users...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Stoffen
Posts: 8
Joined: 9. Jan 2018, 10:40

Re: Windows 10 - VB 5.2.4 - Unable to create Host Only adapter

Post by Stoffen »

I understand.
Need to do some more investigation, and if I find a solution, I will post it here (of course :))
Last edited by socratis on 16. Jan 2018, 14:25, edited 1 time in total.
Reason: Removed unnecessary verbatim quote of the whole previous message.
Flavio_cps
Posts: 2
Joined: 8. Feb 2018, 19:03

Re: Windows 10 - VB 5.2.4 - Unable to create Host Only adapter

Post by Flavio_cps »

Is there any solution? I face the same problem.
Stoffen
Posts: 8
Joined: 9. Jan 2018, 10:40

Re: Windows 10 - VB 5.2.4 - Unable to create Host Only adapter

Post by Stoffen »

SOLVED, at least for me...

Corporate Antivirus was the root cause - Trend Micro Office Scan denied some drivers (according to IT).
So temp disable TrendMicro OfficeScan, install VirtualBox, it works fine!
Enable TM OS.
vctls
Posts: 1
Joined: 26. Feb 2018, 20:13

Re: SOLVED - Windows 10 - VB 5.2.4 - Unable to create Host Only adapter

Post by vctls »

Thank you! It also solved the issue for my coworkers and I.

For some reason, the issue appeared just after updating to Windows 10 version 1709.
We uninstalled Virtualbox, disabled Trend Micro Office Scan, re-installed, and re-enabled the antivirus, and everything went back to normal.

Rolling back to Windows 10 version 1703 also made the issue disappear, but of course, that's not really a solution.
Last edited by socratis on 26. Feb 2018, 23:01, edited 1 time in total.
Reason: Removed unnecessary verbatim quote of the whole previous message.
Flavio_cps
Posts: 2
Joined: 8. Feb 2018, 19:03

Re: Windows 10 - VB 5.2.4 - Unable to create Host Only adapter

Post by Flavio_cps »

Stoffen wrote:SOLVED, at least for me...

Corporate Antivirus was the root cause - Trend Micro Office Scan denied some drivers (according to IT).
So temp disable TrendMicro OfficeScan, install VirtualBox, it works fine!
Enable TM OS.
Solved for me too. Thanks
Post Reply