Question about "auto power on"
-
Hello. I'm trying to configure VMs in a pool to start automatically in XCP-ng. Is it possible to define a boot order for VMs in XOA?
Link I consulted:
-
@cairoti yes, you can set the boot delay or use the vAPP settings to configure this. (looking for the link)
https://docs.xcp-ng.org/appendix/cli_reference/#appliance-commands
-
By default, no VMs automatically boot, if you enable automatic boot, the default delay is 0 seconds.
So if you have 3 VMs
VM1: XO/XOA/XOCE 0 second delay
VM2: Domain Controller 30 second delay
VM3: File Server 60 second delayEverything else might not automatically boot, but that is the simplest way to do this
-
@DustinB Thanks for your reply. I will try to use the "delay" time.
-
@DustinB I have it set up like this:
VM1: 0 seconds delay
VM2: 90 seconds delay
VM3: 150 seconds delayHowever, in the test, VM1 started and then VM3. VM2 took longer to start.
I would like to set the times large because some VMs communicate with services on other VMs, so the order is important.
See the configuration:
-
@cairoti said in Question about "auto power on":
However, in the test, VM1 started and then VM3. VM2 took longer to start.
This boot order would be if the host lost power and then came up online. You might be better able to use the Jobs function of XO and XAPI to force the start order, but I haven't had a need to do this yet.
You'd be using xapi functions to start VMs or stop other VMs in specific orders.
-
@DustinB I would like the VMs to boot automatically and in order when the servers are powered on.
Do you know if there is any material about Jobs on the XO, for starting VMs?
-