• 3

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.

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)

  • 0
Reply Report