From 4d554fd182d0bba7351f95658be2c100635db842 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Fri, 2 Mar 2012 14:28:09 +0100 Subject: [PATCH] dom0/core: set default memory for HVM to 512MB --- 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 597be74d..23ee95c5 100755 --- a/dom0/qvm-core/qubes.py +++ b/dom0/qvm-core/qubes.py @@ -80,6 +80,7 @@ default_kernelopts = "" default_kernelopts_pcidevs = "iommu=soft swiotlb=2048" default_hvm_disk_size = 20*1024*1024*1024 +default_hvm_memory = 512 config_template_pv = '/usr/share/qubes/vm-template.conf' config_template_hvm = '/usr/share/qubes/vm-template-hvm.conf' @@ -2049,6 +2050,8 @@ class QubesHVm(QubesVm): # only updateable HVM supported kwargs["updateable"] = True kwargs["template_vm"] = None + if "memory" not in kwargs or kwargs["memory"] is None: + kwargs["memory"] = default_hvm_memory super(QubesHVm, self).__init__(**kwargs) self.updateable = True