Skip to content

Instantly share code, notes, and snippets.

@eedeep
Created April 4, 2013 03:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eedeep/5307709 to your computer and use it in GitHub Desktop.
Save eedeep/5307709 to your computer and use it in GitHub Desktop.
~/.bashrc alias for finding the IP address of a headless virtualbox VM (in this case named "pupone") configured to get it's IP via DHCP on the network 192.168.0.x
alias vboxip="nmap -sP 192.168.0.1-254 && arp -n|grep ether|sed s/://g|grep `VBoxManage showvminfo pupone| egrep '^NIC 1'|awk '{print tolower($4)}'|sed s/,//`"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment