File xenfv-libvirtxml.patch of Package open-ovf

Index: open-ovf-0.1/py/ovf/OvfLibvirt.py
===================================================================
--- open-ovf-0.1.orig/py/ovf/OvfLibvirt.py
+++ open-ovf-0.1/py/ovf/OvfLibvirt.py
@@ -341,6 +341,8 @@ def bootElements(domain, domainType):
     if domainType == 'qemu' or domainType == 'kqemu' or \
         domainType == 'kvm' or domainType == 'xenfv':
         bootDict = dict(type = 'hvm', devices=['hd', 'cdrom'])
+        if domainType == 'xenfv':
+            bootDict['loader'] = '/usr/lib/xen/boot/hvmloader'
     elif domainType == 'xenpv':
         bootDict = dict(bootloader = '/usr/bin/pygrub',
                          type = 'linux')
@@ -1292,7 +1294,10 @@ def getOvfDomains(ovf, path, hypervisor=
             clock = clockElement('utc')
 
             #features
-            features = featuresElement(acpi=True)
+            if hypervisor == 'xenfv':
+                features = featuresElement(pae=True, acpi=True, apic=True)
+            else:
+                features = featuresElement(acpi=True)
 
             #life cycle
             onPowerOff = onPowerOffElement('destroy')
openSUSE Build Service is sponsored by