Fix the fact that we can't bump RAM quotas above 2048M 0.0.59
authorMitchell E Berger <mitchb@mit.edu>
Tue, 23 Jul 2019 22:59:01 +0000 (18:59 -0400)
committerMitchell E Berger <mitchb@mit.edu>
Tue, 23 Jul 2019 22:59:01 +0000 (18:59 -0400)
(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 <broder@mit.edu>  Fri, 14 Nov 2008 00:03:47 -0500
"""

i,i "640K ought to be enough for anyone."

debian/changelog
invirt-database

index f11d096..ff5d141 100644 (file)
@@ -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 <broder@mit.edu>  Fri, 14 Nov 2008 00:03:47 -0500
+  """
+
+  i,i "640K ought to be enough for anyone."
+
+ -- Mitchell Berger <mitchb@mit.edu>  Tue, 23 Jul 2019 18:50:00 -0400
+
 invirt-xen-config (0.0.58) unstable; urgency=low
 
   * Support kickstart-based Fedora autoinstalls.
index e5ceec1..adee177 100644 (file)
@@ -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))