From 36093c1510ce2b5aeb7851fca6aa5b72468889ff Mon Sep 17 00:00:00 2001 From: Quentin Smith Date: Sun, 21 Jul 2013 13:15:04 -0400 Subject: [PATCH 1/1] Disable populate-on-demand for HVMs. --- debian/changelog | 6 ++++++ invirt-database | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index b9f370a..6a51dc2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +invirt-xen-config (0.0.44) unstable; urgency=low + + * Disable populate-on-demand for HVMs. + + -- Quentin Smith Sun, 21 Jul 2013 13:14:53 -0400 + invirt-xen-config (0.0.43+nmu1) precise; urgency=low * Use config-package-dev. diff --git a/invirt-database b/invirt-database index 599d0b7..095fe4d 100644 --- a/invirt-database +++ b/invirt-database @@ -23,7 +23,11 @@ if 'cdrom_image' in locals(): check(cdrom is not None) memory = machine.memory -maxmem = '2048' +if machine_type.hvm: + # Disable populate-on-demand + maxmem = memory +else: + maxmem = '2048' 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