Last active
September 15, 2015 16:47
-
-
Save cburyta/73fd0d5d84b5ddf1ae6d to your computer and use it in GitHub Desktop.
cli-function-vport: List VirtualBox ports used by a Vagrant driven machine.
This file contains 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
# | |
# usage: use from in the directory that the .vagrant dir is, e.g... | |
# cd vagrant-project-root | |
# vagrant up | |
# vport | |
# | |
vport() { | |
pushd .vagrant/machines | |
for MACHINE in `find . -type d -mindepth 1 -maxdepth 1` | |
do | |
echo "" | |
echo "LIsting NIC card info on machine $MACHINE" | |
VBoxManage showvminfo $(cat $MACHINE/virtualbox/id) | grep ^NIC | |
done | |
echo "" | |
popd | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment