I have to use Cisco VPN to log into the corporate network. This causes me to lose connectivity to my VBox guest via the host only adapter (vboxnet0). This is expected. However, once I logoff the VPN, I am unable to ping the adapter. In my case, the adapter for this guest is assigned ip address 192.168.50.5. The simple solution is to Log into Terminal and refresh the interface…so you don’t have to reboot.
sudo ifconfig vboxnet0 down
sudo ifconfig vboxnet0 up
Probably should write an Automater script for that…something like
do shell script "sudo ifconfig vboxnet0 down" with administrator privileges