瀏覽代碼

backup: allow backup running VMs

Since we have LVM by default, it is possible to backup VMs while they
are running. For now it will include its state from before startup, but
later we may implement some other logic (a snapshot of running VM).
Marek Marczykowski-Górecki 6 年之前
父節點
當前提交
abdad8c2b2
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      qubes/backup.py

+ 0 - 2
qubes/backup.py

@@ -705,8 +705,6 @@ class Backup(object):
             vm.features['backup-content'] = False
 
         for qid, vm_info in files_to_backup.items():
-            if qid != 0 and vm_info.vm.is_running():
-                raise qubes.exc.QubesVMNotHaltedError(vm_info.vm)
             # VM is included in the backup
             backup_app.domains[qid].features['backup-content'] = True
             backup_app.domains[qid].features['backup-path'] = vm_info.subdir