Disable automatic boot for copies vm

This commit is contained in:
ssamson-tis 2015-10-16 17:12:04 +02:00
parent 44a4b5ea15
commit a11396af41
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -97,6 +97,5 @@
configs();
</script>
</body></html>
</body></html>