[Libguestfs] [PATCH 2/4] Add SUSE capabilities

Mike Latimer mlatimer at suse.com
Tue Sep 24 00:32:22 UTC 2013


The following modifications are required to adds conversion capabilities to
the virt-v2v.db for SLES and openSUSE through:

  - Adding virtio capabilities for SLES10/11 and openSUSE 10/11/12.
  - Designating the rpm containing the cirrus video driver in SLES/openSUSE
  - Adding app definitions for SLES10/11 kernels.

This patch also adds the following SUSE examples to /etc/virt-v2v.conf:

  - A 'user-install' example for SLES 11.
  - Sample network conversion using SUSE naming defaults (br0 -> default).

---
 v2v/virt-v2v.conf |  8 ++++++++
 v2v/virt-v2v.db   | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 69 insertions(+)

diff --git a/v2v/virt-v2v.conf b/v2v/virt-v2v.conf
index fadce17..6574c0a 100644
--- a/v2v/virt-v2v.conf
+++ b/v2v/virt-v2v.conf
@@ -40,12 +40,20 @@ configuration data in /var/lib/virt-v2v/virt-v2v.db.
   <capability os='linux' distro='rhel' major='6' name='user-install'>
     <dep name='mypackage'/>
   </capability>
+
+  <capability os='linux' distro='sles' major='11' name='user-install'>
+    <dep name='mypackage'/>
+  </capability>
   -->
 
   <!-- Networks -->
   <!-- Mappings for the defaults in Xen, ESX and libvirt/KVM
        to the default in libvirt/KVM -->
   <!--
+  <network type='bridge' name='br0'>
+    <network type='network' name='default'/>
+  </network>
+
   <network type='bridge' name='xenbr1'>
     <network type='network' name='default'/>
   </network>
diff --git a/v2v/virt-v2v.db b/v2v/virt-v2v.db
index 4807349..94e6911 100644
--- a/v2v/virt-v2v.db
+++ b/v2v/virt-v2v.db
@@ -44,6 +44,27 @@ the modifications or additions to /etc/virt-v2v.conf instead. Configuration in
     <dep name='xorg-x11-drv-qxl'/>
   </capability>
 
+  <!-- SLES 11 has always supported virtio -->
+  <capability os='linux' distro='sles' major='11' name='virtio'/>
+  <capability os='linux' distro='sles' major='10' name='virtio'>
+    <dep name='kernel' minversion='2.6.16.60-0.85.1'/>
+  </capability>
+  <!-- SLES packages the cirrus driver in xorg-x11-driver-video -->
+  <capability os='linux' distro='sles' name='cirrus'>
+    <dep name='xorg-x11-driver-video'/>
+  </capability>
+
+  <!-- openSUSE 11/12 has always supported virtio -->
+  <capability os='linux' distro='opensuse' major='12' name='virtio'/>
+  <capability os='linux' distro='opensuse' major='11' name='virtio'/>
+  <capability os='linux' distro='opensuse' major='10' name='virtio'>
+    <dep name='kernel' minversion='2.6.25.5-1.1'/>
+  </capability>
+  <!-- openSUSE packages the cirrus driver in xorg-x11-driver-video -->
+  <capability os='linux' distro='opensuse' name='cirrus'>
+    <dep name='xorg-x11-driver-video'/>
+  </capability>
+
   <!-- RHEL clones: copied from above with distro altered -->
   <!-- CentOS -->
   <capability os='linux' distro='centos' major='6' name='virtio'/>
@@ -178,6 +199,46 @@ the modifications or additions to /etc/virt-v2v.conf instead. Configuration in
     <path>rhel/4/kernel-largesmp-2.6.9-89.EL.x86_64.rpm</path>
   </app>
 
+  <!-- SLES 11
+       All of these RPMs are from SLES11 SP3.
+       SLES 11 requires both a kernel-[flavor] and a kernel-[flavor]-base -->
+  <app os='linux' distro='sles' major='11' arch='x86_64' name='kernel-default'>
+    <path>sles/11/kernel-default-3.0.76-0.11.1.x86_64.rpm</path>
+  </app>
+  <app os='linux' distro='sles' major='11' arch='x86_64' name='kernel-default-base'>
+    <path>sles/11/kernel-default-base-3.0.76-0.11.1.x86_64.rpm</path>
+  </app>
+  <app os='linux' distro='sles' major='11' arch='i586' name='kernel-default'>
+    <path>sles/11/kernel-default-3.0.76-0.11.1.i586.rpm</path>
+  </app>
+  <app os='linux' distro='sles' major='11' arch='i586' name='kernel-default-base'>
+    <path>sles/11/kernel-default-base-3.0.76-0.11.1.i586.rpm</path>
+  </app>
+  <app os='linux' distro='sles' major='11' arch='i586' name='kernel-pae'>
+    <path>sles/11/kernel-default-3.0.76-0.11.1.i586.rpm</path>
+  </app>
+  <app os='linux' distro='sles' major='11' arch='i586' name='kernel-pae-base'>
+    <path>sles/11/kernel-default-base-3.0.76-0.11.1.i586.rpm</path>
+  </app>
+
+  <!-- SLES 10
+       All of these RPMs are from SLES10 SP4. -->
+  <app os='linux' distro='sles' major='10' arch='x86_64' name='kernel-default'>
+    <path>sles/10/kernel-default-2.6.16.60-0.85.1.x86_64.rpm</path>
+  </app>
+  <app os='linux' distro='sles' major='10' arch='x86_64' name='kernel-smp'>
+    <path>sles/10/kernel-smp-2.6.16.60-0.85.1.x86_64.rpm</path>
+  </app>
+  <app os='linux' distro='sles' major='10' arch='i586' name='kernel-default'>
+    <path>sles/10/kernel-default-2.6.16.60-0.85.1.i586.rpm</path>
+  </app>
+  <app os='linux' distro='sles' major='10' arch='i586' name='kernel-bigsmp'>
+    <path>sles/10/kernel-bigsmp-2.6.16.60-0.85.1.i586.rpm</path>
+  </app>
+  <app os='linux' distro='sles' major='10' arch='i586' name='kernel-smp'>
+    <path>sles/10/kernel-smp-2.6.16.60-0.85.1.i586.rpm</path>
+  </app>
+
   <!-- Windows -->
 
   <!-- Each of these should point to the directory containing the appropriate
-- 
1.8.1.4




More information about the Libguestfs mailing list