From 509e3fbc4c496880d71f65523cb74974c47b180a Mon Sep 17 00:00:00 2001 From: BenjiReis Date: Thu, 12 Oct 2023 11:34:45 +0200 Subject: [PATCH] Do not attempt to start snapshots or templates `start` operations are not allowed for these VMs Fixes: https://github.com/xcp-ng/xcp/issues/625 Signed-off-by: BenjiReis --- scripts/xapi-autostart-vms | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/xapi-autostart-vms b/scripts/xapi-autostart-vms index e8ce8b49678..e82b47d7d3e 100755 --- a/scripts/xapi-autostart-vms +++ b/scripts/xapi-autostart-vms @@ -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