From a11396af41b174c0683b65851b3a6044d0571012 Mon Sep 17 00:00:00 2001 From: ssamson-tis Date: Fri, 16 Oct 2015 17:12:04 +0200 Subject: [PATCH] Disable automatic boot for copies vm --- libtisbackup/copy_vm_xcp.py | 4 ++++ templates/layout.html | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/libtisbackup/copy_vm_xcp.py b/libtisbackup/copy_vm_xcp.py index bf9f102..5e65f89 100755 --- a/libtisbackup/copy_vm_xcp.py +++ b/libtisbackup/copy_vm_xcp.py @@ -229,6 +229,10 @@ class copy_vm_xcp(backup_generic): result = (0,size_backup) if self.delete_snapshot == 'no': return result + + #Disable automatic boot + if session.xenapi.VM.get_other_config(vm).has_key('auto_poweron'): + session.xenapi.VM.remove_from_other_config(vm, "auto_poweron") if not str2bool(self.halt_vm): #delete the snapshot diff --git a/templates/layout.html b/templates/layout.html index cd4b815..933c259 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -97,6 +97,5 @@ configs(); - + - \ No newline at end of file