[Pkg-libvirt-commits] [SCM] VirtManager Debian packaging branch, master, updated. debian/0.7.0-3-1-g78b1652

Laurent Léonard laurent at open-minds.org
Thu Jul 16 12:48:18 UTC 2009


The following commit has been merged in the master branch:
commit 78b1652667d0e6b2849cf6ef1756ecc9fa44fdec
Author: Laurent Léonard <laurent at open-minds.org>
Date:   Thu Jul 16 14:42:20 2009 +0200

    Enable Xen HVM virtual machines creation.

diff --git a/debian/patches/0005-Enable-Xen-HVM-virtual-machines-creation.patch b/debian/patches/0005-Enable-Xen-HVM-virtual-machines-creation.patch
new file mode 100644
index 0000000..e91a8f3
--- /dev/null
+++ b/debian/patches/0005-Enable-Xen-HVM-virtual-machines-creation.patch
@@ -0,0 +1,31 @@
+From: =?utf-8?q?Laurent=20L=C3=A9onard?= <laurent at open-minds.org>
+Date: Wed, 15 Jul 2009 23:52:50 +0200
+Subject: [PATCH] Enable Xen HVM virtual machines creation.
+
+Closes: #536301
+---
+ src/virtManager/create.py |   10 ++++++++++
+ 1 files changed, 10 insertions(+), 0 deletions(-)
+
+diff --git a/src/virtManager/create.py b/src/virtManager/create.py
+index 3682c41..9734267 100644
+--- a/src/virtManager/create.py
++++ b/src/virtManager/create.py
+@@ -690,6 +690,16 @@ class vmmCreate(gobject.GObject):
+         net_list.set_active(default)
+ 
+     def change_caps(self, gtype=None, dtype=None):
++
++        if gtype == None:
++            # If none specified, prefer HVM. This way, the default install
++            # options won't be limited because we default to PV. If hvm not
++            # supported, differ to guest_lookup
++            for g in self.caps.guests:
++                if g.os_type == "hvm":
++                    gtype = "hvm"
++                    break
++
+         (newg,
+          newdom) = virtinst.CapabilitiesParser.guest_lookup(conn=self.conn.vmm,
+                                                             caps=self.caps,
+-- 
diff --git a/debian/patches/series b/debian/patches/series
index 75a2a97..eb939ac 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@
 0002-close-nc-connection-on-EOF.patch
 0003-don-t-crop-vnc-display.patch
 0004-make-check-match-return-value-of-self.get_config_key.patch
+0005-Enable-Xen-HVM-virtual-machines-creation.patch

-- 
VirtManager Debian packaging



More information about the Pkg-libvirt-commits mailing list