Created
March 16, 2016 03:20
-
-
Save alex2006hw/91fff77457d3bf19b8ae to your computer and use it in GitHub Desktop.
xenserver 6.2 set autostart all vm
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
POOL=`xe pool-list | grep uuid | awk '{ print $5 }'` | |
xe pool-param-set uuid=$POOL other-config:auto_poweron=true | |
VMS=`xe vm-list | grep uuid | awk '{ print $5 }'` | |
for vm in $VMS; do | |
echo setting autoboot for UUID = $vm | |
xe vm-param-set uuid=$vm other-config:auto_poweron=true | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment