Created
September 13, 2011 10:28
-
-
Save aL3xa/1213555 to your computer and use it in GitHub Desktop.
Virtualbox custom startup script
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
#!/bin/bash | |
if [ -z $(lsmod | grep vboxdrv) ]; then | |
# load virtualbox module | |
gksudo modprobe vboxdrv | |
fi | |
# virtualbox module loaded | |
vm=`VBoxManage list vms | zenity --list --title="Virtualbox machines" --column="Machine"` | |
if [ ! -z "$vm" ]; then | |
VBoxManage startvm $vm | |
# zenity --info --text=$vm | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment