[HELP] Can not Create HostOnly Adapter

Discussions related to using VirtualBox on Windows hosts.
Post Reply
gfesj
Posts: 3
Joined: 20. Aug 2015, 17:24

[HELP] Can not Create HostOnly Adapter

Post by gfesj »

Hi, I am running VirtualBox v 5.0.2. r 102096 x64, running on windows 10 Home (64 bits).

I am try to create a host-only adapter, but I receive a error.

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: Code E_FAIL (0x80004005) - Unspecified error (extended info not available)
VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleCreate(struct HandlerArg *)" at line 70 of file VBoxManageHostonly.cpp
Some one has any clue, how to solve this problem?

Thanks

Gerald
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: [HELP] Can not Create HostOnly Adapter

Post by noteirak »

Try running the command in an elevated prompt.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: [HELP] Can not Create HostOnly Adapter

Post by Perryg »

The syntax is all wrong and you don't need to elevate to get it to work.

Code: Select all

VBoxManage hostonlyif       ipconfig <name>
                            [--dhcp |
                            --ip<ipv4> [--netmask<ipv4> (def: 255.255.255.0)] |
                            --ipv6<ipv6> [--netmasklengthv6<length> (def: 64)]]
                            create |
                            remove <name>
Why do you want to set this in a command window when you have the GUI?
gfesj
Posts: 3
Joined: 20. Aug 2015, 17:24

Re: [HELP] Can not Create HostOnly Adapter

Post by gfesj »

Thanks for reply.

I try to do at GUI interface, but I receive the same problem.

Any clues?
Attachments
Error
Error
VirtualBox_GUI_Error.png (11.11 KiB) Viewed 1228 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: [HELP] Can not Create HostOnly Adapter

Post by Perryg »

There have been reports of issues with Bridged and host-only on Windows 10. I would look for a ticket at bugtracker and provide your information to the DEVs. They would like to see why some have this issue and some do not.
gfesj
Posts: 3
Joined: 20. Aug 2015, 17:24

Re: [HELP] Can not Create HostOnly Adapter

Post by gfesj »

Thanks, I just open a bug to developers.
echeadle2
Posts: 3
Joined: 9. Oct 2015, 21:36

Re: [HELP] Can not Create HostOnly Adapter

Post by echeadle2 »

I had the same error just after I install virtualbox. After I rebooted the hostadapter showed up. I think the bigger problem is that VirtualBox does not seem to clean up the registry properly. Unfortunately I am not a windows programmer, so I am not sure how to go about and solve this issue.
I had lots of problems with Virtualbox and the host adapter. After I deinstalled and run ccleaner,resintalled 4 again, deleted it, then reinstalled 5.0, I am still having issues with the hostonly adapter. I went through the registry and found a number of keys that were left behind. Some of them I found searching for Host-Only.

There probably is some indirect key that is being missed on removal, but causes issues with installation. I saw a similar network problem years ago. I asked Microsoft if they knew where all the registry entries were that affected a Nic with a DHCP address. They told me no. That was years ago, and there a much better tools now to figure this stuff out. (I am told) but I cannot help. This problem seems to have gone on for years and a weird entry, hard to find, could explain the issue.
Post Reply