Page 1 of 1

Error while creating host only network

PostPosted: 18. Jul 2019, 22:41
by sid1999
hi there!
i am facing an issue while making host only network on virtual box for kali linux.
Following is the error. Please help.
Querying NetCfgInstanceId failed (0x00000002).

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

Re: Error while creating host only network

PostPosted: 20. Jul 2019, 21:50
by socratis
sid1999 wrote:host only network on virtual box for kali linux
The HostOnly network is used by all guests, be it Linux or not. It's more a matter of the host, not the guest. So, what's your host? Seems like some sort of Windows...

Re: Error while creating host only network

PostPosted: 23. Jul 2019, 22:07
by sid1999
the host is windows 10, yes. cant figure out why an error is generated. what should i do?

Re: Error while creating host only network

PostPosted: 24. Jul 2019, 09:40
by socratis
Post the output of the following command:

    VBoxManage list hostonlyifs
And if you can explain to me how exactly you're trying to create the HostOnly network, that would help.

Also, do you have any 3rd party antivirus, 3rd party networking software installed, anything else that you can think of that might interfere with the network?

Re: Error while creating host only network

PostPosted: 24. Jul 2019, 20:46
by sid1999
i have installed anti-virus, yes but i dont think its gonna interfere. Apparently, creating host only network is quite simple. Go to host network manger and click create. I have attached the pic too.
Upon writing the command you asked me to write, it said "command not found"
thanks for your help. it means alot

Re: Error while creating host only network

PostPosted: 25. Jul 2019, 00:13
by socratis
sid1999 wrote:i have installed anti-virus, yes but i dont think its gonna interfere

Allow me to disagree. I've seen multiple cases, and a quick search will clear any doubts that you might have. I didn't just ask a random question, there's logic behind the madness... ;)

  1. Uninstall VirtualBox. Your VMs are going to be untouched. Reboot.

  2. You may want to clean up your registry and/or filesystem at this point. CCleaner is a freeware utility that could help you. Mind the installation, it comes with "offers" from 3rd parties, known as "bundleware". Also, check out Device Cleanup program that helps you to remove any unused devices from your computer, mainly multiple "Host-Only Adapter #n".

  3. Download (if you haven't already) the latest VirtualBox and its matching ExtPack. Store them in a common location, i.e. not on "Desktop", or "Documents", but to "Public/Downloads" for example.

  4. Uninstall (don't simply disable) all 3rd party antivirus. If you're afraid about your computer being vulnerable, pull the Ethernet plug, disconnect your WiFi, don't go browsing around.

  5. Locate the downloaded file in Windows Explorer. Right-click on the installer and select "Run-as-Administrator", even if you are the administrator. At the end of the installation, choose to "Start Oracle VM VirtualBox". Do not worry if your VMs do not show up.

  6. If you're going to install the ExtPack, go to File » Preferences » Extensions. Click on the icon with the orange, down-pointing arrow on the right. Select the ExtPack from the previous steps.

  7. Quit VirtualBox. Re-start VirtualBox as you would normally, i.e. from the Desktop shortcut or the Start menu.

  8. Create a HostOnly network. In fact, there should be a default one, but your previous settings may actually not have allowed it.