# 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))
# For debugging, add "DEBCONF_DEBUG=5" to the arguments.
extras = ["auto=true",
"debconf/priority=critical",
+ 'preseed/early_command="grep -v tty0 /etc/inittab >/etc/inittab.new; mv -f /etc/inittab.new /etc/inittab"',
"debian-installer/locale=en_US.UTF-8",
"debian-installer/exit/always_halt=true",
"url="+install['preseed'],