From 367db743789b09f38c47a60920ae13d5302cb9d3 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Fri, 11 Jan 2013 16:21:25 +0100 Subject: [PATCH] dom0/core: fix HVM settings on upgrade --- dom0/qvm-core/qubes.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dom0/qvm-core/qubes.py b/dom0/qvm-core/qubes.py index 64e4b5d8..a59a7f6d 100755 --- a/dom0/qvm-core/qubes.py +++ b/dom0/qvm-core/qubes.py @@ -2305,6 +2305,13 @@ class QubesHVm(QubesVm): kwargs["memory"] = default_hvm_memory super(QubesHVm, self).__init__(**kwargs) + + # Default for meminfo-writer have changed to (correct) False in the + # same version as introduction of guiagent_installed, so for older VMs + # with wrong setting, change it based on 'guiagent_installed' presence + if "guiagent_installed" not in kwargs: + self.services['meminfo-writer'] = False + # HVM normally doesn't support dynamic memory management if not ('meminfo-writer' in self.services and self.services['meminfo-writer']): self.maxmem = self.memory