From f4deddbbdf7cd7a2bd077a6f9be40e93a8bb276b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 16 Apr 2014 15:52:08 +0200 Subject: [PATCH] core: do not run commands on paused VM --- core-modules/000QubesVm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core-modules/000QubesVm.py b/core-modules/000QubesVm.py index 7d300700..9c72c6e4 100644 --- a/core-modules/000QubesVm.py +++ b/core-modules/000QubesVm.py @@ -1466,6 +1466,8 @@ class QubesVm(object): "Close one or more running VMs and try " "again.".format(self.name)) + if self.is_paused(): + raise QubesException("VM is paused") if not self.is_qrexec_running(): raise QubesException( "Domain '{}': qrexec not connected.".format(self.name))