-
-
Save drbrain/b6559b7a9d361f441fa4ae0b7b369af9 to your computer and use it in GitHub Desktop.
"Fix" VMware Network
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
[ -n "$DEBUG" ] && set -x | |
banner() { printf -- "-----> $*\n"; } | |
banner "Restarting VMware networking" | |
banner "Stopping networking" | |
sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --stop | |
banner "Configuring networking" | |
sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --configure | |
banner "Starting networking" | |
sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --start | |
banner "Displaying status" | |
sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --status | |
banner "Ensure that only vmnet1 and vmnet8 devices are showing" | |
banner "Background: http://serverascode.com/2013/04/11/vagrant-and-vmware.html" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment