From 00fc1ec722eafe57d1d8fc9816f2916e70ddc596 Mon Sep 17 00:00:00 2001 From: Mitchell E Berger Date: Tue, 23 Jul 2019 18:59:01 -0400 Subject: [PATCH] Fix the fact that we can't bump RAM quotas above 2048M (and acknowledge the reality that 2048M really isn't the rarest thing to need these days) Quoting from history: """ invirt-xen-config (0.0.15) unstable; urgency=low * Set the max memory to a really high number so we can bump it for users * Pass the correct networking device to vif-invirtroute -- Evan Broder Fri, 14 Nov 2008 00:03:47 -0500 """ i,i "640K ought to be enough for anyone." --- debian/changelog | 21 +++++++++++++++++++++ invirt-database | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index f11d096..ff5d141 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,24 @@ +invirt-xen-config (0.0.59) unstable; urgency=low + + * Fix the fact that we can't bump RAM quotas above 2048M + (and acknowledge the reality that 2048M really isn't the rarest + thing to need these days) + + Quoting from history: + + """ + invirt-xen-config (0.0.15) unstable; urgency=low + + * Set the max memory to a really high number so we can bump it for users + * Pass the correct networking device to vif-invirtroute + + -- Evan Broder Fri, 14 Nov 2008 00:03:47 -0500 + """ + + i,i "640K ought to be enough for anyone." + + -- Mitchell Berger Tue, 23 Jul 2019 18:50:00 -0400 + invirt-xen-config (0.0.58) unstable; urgency=low * Support kickstart-based Fedora autoinstalls. diff --git a/invirt-database b/invirt-database index e5ceec1..adee177 100644 --- a/invirt-database +++ b/invirt-database @@ -27,7 +27,7 @@ if machine_type.hvm: # Disable populate-on-demand maxmem = memory else: - maxmem = '2048' + maxmem = max(memory, 4096) check(re.match('^[A-Za-z0-9][A-Za-z0-9._-]*$', machine.name)) name = prefix + machine_name check(re.match('^[0-9a-f-]+$', machine.uuid)) -- 1.7.9.5