From 02e042aac508572d0747fa3cb03bff748c78f993 Mon Sep 17 00:00:00 2001 From: Tomasz Sterna Date: Sun, 27 Mar 2011 17:41:03 +0200 Subject: [PATCH] Properly unpause VM if paused. --- qubesmanager/main.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qubesmanager/main.py b/qubesmanager/main.py index 15914a2..7bbec7e 100755 --- a/qubesmanager/main.py +++ b/qubesmanager/main.py @@ -740,6 +740,13 @@ class VmManagerWindow(QMainWindow): vm = self.get_selected_vm() assert not vm.is_running() + if vm.is_paused(): + try: + subprocess.check_call (["/usr/sbin/xm", "unpause", vm.name]) + except Exception as ex: + QMessageBox.warning (None, "Error unpausing VM!", "ERROR: {0}".format(ex)) + return + try: vm.verify_files() xid = vm.start()