Skip to content

Instantly share code, notes, and snippets.

@alex2006hw
Created March 16, 2016 03:20
Show Gist options
  • Save alex2006hw/91fff77457d3bf19b8ae to your computer and use it in GitHub Desktop.
Save alex2006hw/91fff77457d3bf19b8ae to your computer and use it in GitHub Desktop.
xenserver 6.2 set autostart all vm
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