Skip to content

Commit

Permalink
Merge pull request xapi-project#5199 from xcp-ng/no-autostart-snapsho…
Browse files Browse the repository at this point in the history
…t-template

Do not attempt to start snapshots or templates
  • Loading branch information
robhoes committed Oct 12, 2023
2 parents ed16f35 + 509e3fb commit 2ec1f37
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 2ec1f37

Please sign in to comment.