27

On OS X, 10.10, if I start a Vagrant based VirtualBox VM that is configured with a host only network adapter and then destroy that VM and attempt to re-create it with the VMware provider the vboxnet# adapter I used previously is still holding onto the static IP I have declared in the Vagrantfile. (the # at the end of vboxnet is an integer that can vary based on how many VM's have been spun up)

Without rebooting or uninstalling VirtualBox, how do I remove that vboxnet# virtual adapter? It doesn't get presented in the OS X network properties window.

Eric Smalling
  • 743
  • 1
  • 6
  • 9
  • By the way, uninstalling VirtualBox and Vagrant won't clean the list. So, the solutions below are the way to go. :) – Arvid Feb 20 '17 at 10:07

2 Answers2

37

Looks like the VBoxManage command line tool is how to do it. Couldn't find a way to do it from the GUI, but this seems to work:

VBoxManage hostonlyif remove vboxnet4

(replace the '4' accordingly, of course)

Eric Smalling
  • 743
  • 1
  • 6
  • 9
30

Open Virtualbox, click File -> Preferences -> Network -> Host-only Network, remove Vboxnet#

screenshot

Kamil Maciorowski
  • 69,815
  • 22
  • 136
  • 202