dom0/core: verify files before starting VM

This commit is contained in:
Marek Marczykowski 2012-03-11 00:32:46 +01:00
parent cd8c64b345
commit b4adf6fdd0

View File

@ -1337,6 +1337,8 @@ class QubesVm(object):
if self.get_power_state() != "Halted": if self.get_power_state() != "Halted":
raise QubesException ("VM is already running!") raise QubesException ("VM is already running!")
self.verify_files()
if self.netvm is not None: if self.netvm is not None:
if self.netvm.qid != 0: if self.netvm.qid != 0:
if not self.netvm.is_running(): if not self.netvm.is_running():