@olivierlambert
Hello,
there's actually not much missing for implementation.
start-delay is already present in the VM settings.
Two parameters are missing:
- order
- shutdown-delay (In case you need a delay when shutting down. I have no idea if anyone needs this.)
The vApp is created with the following command:
xe appliance-create name-label=name-label [name-description=name-description]
The VMs are added to the vApp with the following command:
xe vm-param-set uuid=VM-UUID appliance=appliance-uuid
Remove from vApp:
xe vm-param-set uuid=VM-UUID appliance=
vApp-Start:
xe appliance-start uuid=appliance-uuid [paused=true|false]
vApp-Stop:
xe appliance-shutdown uuid=appliance-uuid [force=true|false]
If multiple VMs have the same order number, the longest start delay wins before VMs with the next order number are started. The same applies in reverse order for the shutdown-delay when shutting down a vApp.