Fix the fact that we can't bump RAM quotas above 2048M
[invirt/packages/invirt-xen-config.git] / invirt-database
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))