Created
April 9, 2016 14:49
-
-
Save icchy/e2d9956e0a46e3333ffba1cc121bb243 to your computer and use it in GitHub Desktop.
like vagrant
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
function vm_debian() { | |
case "$1" in | |
start) | |
/usr/local/bin/VBoxManage startvm "debian" --type headless | |
;; | |
stop|poweroff) | |
/usr/local/bin/VBoxManage controlvm "debian" acpipowerbutton | |
;; | |
status) | |
/usr/local/bin/VBoxManage showvminfo "debian" | grep "State" | |
;; | |
esac | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment