From 3bd1c700f6d97db2354a459f8e7b2e4473e7e41c Mon Sep 17 00:00:00 2001 From: Joanna Rutkowska Date: Sat, 2 Jul 2011 22:14:18 +0200 Subject: [PATCH] [REMOVEME] Dom0: Add UGLY sleeps hoping they will temporarily prevent the race condition --- dom0/qvm-core/qubes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dom0/qvm-core/qubes.py b/dom0/qvm-core/qubes.py index da0bb49b..0e4d2fdb 100755 --- a/dom0/qvm-core/qubes.py +++ b/dom0/qvm-core/qubes.py @@ -911,7 +911,9 @@ class QubesVm(object): qmemman_client.close() raise MemoryError ("ERROR: insufficient memory to start this VM") + time.sleep(1) # REMOVEME!!! xl_cmdline = ['sudo', '/usr/sbin/xl', 'create', self.conf_file, '-p'] + time.sleep(1) # REMOVEME!!! try: subprocess.check_call(xl_cmdline) @@ -940,6 +942,7 @@ class QubesVm(object): if verbose: print "--> Starting the VM..." + time.sleep(1) # REMOVEME!!! xc.domain_unpause(xid) if not preparing_dvm: