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

Discussions related to using VirtualBox on Windows hosts.

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

Postby Stoffen » 9. Jan 2018, 10:58

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   Expand viewCollapse view
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.
Stoffen
 
Posts: 8
Joined: 9. Jan 2018, 10:40

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

Postby mpack » 9. Jan 2018, 11:13

Did you reinstall VirtualBox using "Run as administrator"?
mpack
Site Moderator
 
Posts: 32130
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

Postby Stoffen » 9. Jan 2018, 11:25

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-
Stoffen
 
Posts: 8
Joined: 9. Jan 2018, 10:40

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

Postby BillG » 9. Jan 2018, 12:25

You could uninstall iTunes and try again. I have no idea why it would be involved.
Bill
BillG
Volunteer
 
Posts: 4499
Joined: 19. Sep 2009, 04:44
Location: Sydney, Australia
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows 7,8,Server

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

Postby Stoffen » 9. Jan 2018, 12:31

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

Unable to create Host Only interface
Code: Select all   Expand viewCollapse view
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   Expand viewCollapse view
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   Expand viewCollapse view
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   Expand viewCollapse view
Devicemanager has added the service VBoxNetAdp for deviceinstance-ID ROOT\NET\0004 with status: 0.

And on the delete event:
Code: Select all   Expand viewCollapse view
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

Postby Stoffen » 9. Jan 2018, 14:05

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

(CMD run as Administrator):
Code: Select all   Expand viewCollapse view
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>
Stoffen
 
Posts: 8
Joined: 9. Jan 2018, 10:40

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

Postby socratis » 9. Jan 2018, 15:52

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.
socratis
Site Moderator
 
Posts: 27690
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

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

Postby Stoffen » 10. Jan 2018, 11:14

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   Expand viewCollapse view
>>>  [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   Expand viewCollapse view
>>>  [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   Expand viewCollapse view
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   Expand viewCollapse view
>>>  [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

Postby Stoffen » 15. Jan 2018, 10:38

No good suggestions for this problem?
Stoffen
 
Posts: 8
Joined: 9. Jan 2018, 10:40

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

Postby socratis » 15. Jan 2018, 13:35

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.
socratis
Site Moderator
 
Posts: 27690
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

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

Postby Stoffen » 16. Jan 2018, 10:42

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.
Stoffen
 
Posts: 8
Joined: 9. Jan 2018, 10:40

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

Postby Flavio_cps » 8. Feb 2018, 19:04

Is there any solution? I face the same problem.
Flavio_cps
 
Posts: 2
Joined: 8. Feb 2018, 19:03

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

Postby Stoffen » 12. Feb 2018, 13:32

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.
Stoffen
 
Posts: 8
Joined: 9. Jan 2018, 10:40

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

Postby vctls » 26. Feb 2018, 20:20

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.
vctls
 
Posts: 1
Joined: 26. Feb 2018, 20:13

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

Postby Flavio_cps » 26. Feb 2018, 20:56

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
Flavio_cps
 
Posts: 2
Joined: 8. Feb 2018, 19:03

Next

Return to VirtualBox on Windows Hosts

Who is online

Users browsing this forum: Google [Bot] and 68 guests