Skip to content

Instantly share code, notes, and snippets.

@altmas5
Created February 8, 2013 23:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save altmas5/4742946 to your computer and use it in GitHub Desktop.
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
#!/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