How to remove extra host only network interfaces created by vagrant on windows 10?

69,268

Solution 1

Vboxmanage to the rescue.

Sample command:

vboxmanage hostonlyif remove "VirtualBox Host-Only Ethernet Adapter #3"

Solution 2

Open "Network connections" right click on the adapter you want delete and select properties. Under Networking -> click on configure. go to Driver tab on the popup and click on uninstall. This will remove it from the list.

Solution 3

I was also facing the same problem.

I have solved it through the following solution

Go to Device Manager

click on Network Adapter

and then right click on virtual network adapter and uninstall option will come so remove it.

Solution 4

By far the cleanest way is to use VirtualBox to remove the extra adapters.

Had a lot of adapters. You can see this in Virtualbox under Preferences Lots of adapters

Got to delete them one by one. Delete them one by one

This deletes the Virtual Adapter Delete the Virtual Adapter

You can leave the adapters that you want.. or delete them all! Delete whatever you want

Solution 5

I had the same problem. The vboxmanage command didn't help - I got an error when trying to delete an adapter. So here is my solution.

All you need to do is to delete adapter's subkey from this key (Warning: only delete the unwanted ones! do not delete your normal (i.e. non virtualbox) network adapters!):

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkSetup2\Interfaces

Be aware that you need TrustedInstaller permission. To obtain such permission I used this tool: https://github.com/jschicht/RunAsTI

Share:
69,268

Related videos on Youtube

Manish Sapariya
Author by

Manish Sapariya

My linked in profile http://in.linkedin.com/pub/manish-sapariya/6/926/4a8 I work at kPoint Technologies Pvt Ltd. http://www.kpoint.com http://my.kpoint.com http://tutorials.kpoint.com

Updated on January 29, 2020

Comments

  • Manish Sapariya
    Manish Sapariya over 4 years

    I have recently upgraded to Win 10 and hence to vagrant 1.7.4 and virtual box 5.0.2 r102096. While bringing one of the VM up using vagrant up, vagrant kept failing, but created new Host only adapters in the system on every attempt. Now I have 6 virtual host only adapters.

    How do I remove the extraneous ones?

  • Scott C
    Scott C over 7 years
    This is ok for 1 or 2, but I had about 16 of these to remove, so found a quicker way: Open "Device Manager", expand "network adapters" and then right click -> Uninstall each Virtual Box
  • pbarney
    pbarney about 7 years
    Just make sure the virtual adapter is enabled. It won't work if the adapter has been disabled.
  • ibex
    ibex over 6 years
    There is no "adapters" category in control panel.
  • Janis Karklins
    Janis Karklins over 5 years
    Adapters could be seen in the virtualbox list if they are enabled if not enabled then not in the list of virtualbox. And also you need to reopen virtualbox after enabled the addapter.
  • Compeek
    Compeek over 4 years
    Thank you so much for this! Other people were recommending changing the owner of that key in Registry Editor, but that made me uneasy. Your solution works perfectly without modifying anything except the keys I'm trying to delete. I am finally able to clear out some old network adapters so I can reuse the original name.
  • Wisteso
    Wisteso almost 4 years
    You need to use the name that it shows up as within the Device Manager. Using the name from the Network Connections control panel will result in a 'not found' error.
  • Robert Kerr
    Robert Kerr over 3 years
    @Wisteso 's reply should be part of the answer.
  • Johannes
    Johannes almost 2 years
    If you ever use the command from stackoverflow.com/a/32093978/2714781 be aware that all of these virtual adapters already removed manually (using e.g. device manager) will come back!
  • Johannes
    Johannes almost 2 years
    If you ever use the command from stackoverflow.com/a/32093978/2714781 be aware that all of these virtual adapters already removed manually (using e.g. device manager) will come back! So at first try vboxmanage .