Disable automatic boot for copies vm
This commit is contained in:
parent
44a4b5ea15
commit
a11396af41
@ -229,6 +229,10 @@ class copy_vm_xcp(backup_generic):
|
|||||||
result = (0,size_backup)
|
result = (0,size_backup)
|
||||||
if self.delete_snapshot == 'no':
|
if self.delete_snapshot == 'no':
|
||||||
return result
|
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):
|
if not str2bool(self.halt_vm):
|
||||||
#delete the snapshot
|
#delete the snapshot
|
||||||
|
@ -97,6 +97,5 @@
|
|||||||
configs();
|
configs();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
</body></html>
|
||||||
|
|
||||||
</body></html>
|
|
Loading…
Reference in New Issue
Block a user