Implement pause button
This commit is contained in:
parent
f7e4a0f060
commit
eb607cead6
@ -673,7 +673,13 @@ class VmManagerWindow(QMainWindow):
|
||||
return
|
||||
|
||||
def pause_vm(self):
|
||||
pass
|
||||
vm = self.get_selected_vm()
|
||||
assert vm.is_running()
|
||||
try:
|
||||
subprocess.check_call (["/usr/sbin/xm", "pause", vm.name])
|
||||
except Exception as ex:
|
||||
QMessageBox.warning (None, "Error pausing VM!", "ERROR: {0}".format(ex))
|
||||
return
|
||||
|
||||
def shutdown_vm(self):
|
||||
vm = self.get_selected_vm()
|
||||
|
Loading…
Reference in New Issue
Block a user