Skip to content

Commit

Permalink
Do not attempt to start snapshots or templates
Browse files Browse the repository at this point in the history
`start` operations are not allowed for these VMs

Fixes: xcp-ng/xcp#625

Signed-off-by: BenjiReis <[email protected]>
  • Loading branch information
benjamreis committed Oct 12, 2023
1 parent 47e269c commit 509e3fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/xapi-autostart-vms
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ auto_poweron_pool=$(xe pool-list params=uuid other-config:auto_poweron=true --mi
if [ $? -eq 0 ] && [ -n "$auto_poweron_pool" ]; then
logger "$0 auto_poweron is enabled on the pool-- this is an unsupported configuration."
# if xapi init completed then start vms (best effort, don't report errors)
xe vm-start other-config:auto_poweron=true power-state=halted --multiple >/dev/null 2>/dev/null || true
xe vm-start other-config:auto_poweron=true power-state=halted is-a-template=false is-a-snapshot=false --multiple >/dev/null 2>/dev/null || true
fi

0 comments on commit 509e3fb

Please sign in to comment.