autostart vms in xen

List auto_poweron param of the pool

xe pool-list uuid=<UUID> params=name-label,other-config

Set auto_poweron param in the pool

xe pool-param-set uuid=<UUID> other-config:auto_poweron=true

List auto_poweron VM param

xe vm-list uuid=<UUID> params=name-label,other-config

Set auto_poweron VM param

xe vm-param-set uuid=<UUID> other-config:auto_poweron=true
Advertisements

get and set vm params in xen

List all pools

xe pool-list 

List all params of a pool

xe pool-list uuid=<UUID> params

List all VMs

xe vm-list is-control-domain=false

List only powerON VMs

xe vm-list is-control-domain=false power-state=running

Get all VM params

xe vm-list uuid=<UUID> params

Get some VM params

xe vm-list uuid=<UUID> params=name-label,other-config

Set VM param

xe vm-param-set uuid=<UUID> other-config:auto_poweron=true