xen – xcp-ng – how to add a VM to autostart on server boot-up

  linux, xcp-ng
# Get the UUID of the VM by specifying the name, ex: "112-mail"
UUID=`xe vm-list name-label="112-mail" --minimal`

# set the VM to autostart:
xe vm-param-set uuid=$UUID other-config:auto_poweron=true

Check that it actually worked:

Restart dom 0 (main server), check that VM starts up automatically.