Created
February 8, 2013 23:50
-
-
Save altmas5/4742946 to your computer and use it in GitHub Desktop.
"Automagically" start all VMs in the free version of citrix xen server on boot time
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 | |
#invoke this script at the end of /etc/rc.local file | |
for j in $(/opt/xensource/bin/xe vm-list is-control-domain=false | grep label| awk '{print $4}') | |
do | |
/opt/xensource/bin/xe vm-start name-label=$j; | |
sleep 30; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment