From: Mitchell E Berger Date: Tue, 23 Jul 2019 22:59:01 +0000 (-0400) Subject: Fix the fact that we can't bump RAM quotas above 2048M X-Git-Tag: 0.0.59^0 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-xen-config.git/commitdiff_plain/00fc1ec722eafe57d1d8fc9816f2916e70ddc596?hp=d425409b9678c6ee518074cc7f4115c8622087b0 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." --- 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))