[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH OSSTEST RFC 5/5] ts-debian-fixup: workaround Debian bug #691320



Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx>
---
 ts-debian-fixup |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/ts-debian-fixup b/ts-debian-fixup
index f001418..f62bb37 100755
--- a/ts-debian-fixup
+++ b/ts-debian-fixup
@@ -118,6 +118,20 @@ sub otherfixupcfg () {
     $cfg =~ s/^vcpus.*//mg;
     $cfg .= "\nvcpus = $vcpus\n";
 
+    # Debian bug #691320
+    # Wheezy's xen-create-image writes incorrect memory= option in
+    # config file. This is fixed in newer version of xen-tools but it
+    # is not likely to go in in short term.
+    # On the other hand we should consider making xl support '512M',
+    # '2G' etc. But xend will still need this workaround until Wheezy
+    # is fixed.
+    # The default value 512 comes from ts-debian-install.
+    if ($ho->{Suite} =~ m/wheezy/) {
+       my $memory= guest_var($gho,'memory',512);
+       $cfg =~ s/^memory.*//mg;
+       $cfg .= "\nmemory = $memory\n";
+    }
+
     # PCI passthrough
     # Look for runvars   <gn>_pcipassthrough_<devtype>=<hostident>
     # and pass through all matching devices from the specified host.
-- 
1.7.10.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.