[Libguestfs] [PATCH] v2v: OVF: Add new <Origin/> values for virt-p2v and HyperV.

Richard W.M. Jones rjones at redhat.com
Tue Jun 14 12:16:17 UTC 2016


See proposed change to oVirt: https://gerrit.ovirt.org/#/c/59147/
and RHBZ#1342398.

Thanks: Shahar Havivi
---
 v2v/OVF.ml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/v2v/OVF.ml b/v2v/OVF.ml
index 6d24d97..95e4e9f 100644
--- a/v2v/OVF.ml
+++ b/v2v/OVF.ml
@@ -186,11 +186,15 @@ and get_ostype = function
 
 (* Set the <Origin/> element based on the source hypervisor.
  * https://bugzilla.redhat.com/show_bug.cgi?id=1342398#c6
+ * https://gerrit.ovirt.org/#/c/59147/
+ * ovirt-engine.git: backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/OriginType.java
  *)
 let origin_of_source_hypervisor = function
   | VMware -> Some 1
   | Xen -> Some 2
   | QEmu | KVM -> Some 7
+  | Physical -> Some 8
+  | HyperV -> Some 9
 
   (* Anything else is mapped to None, which causes the <Origin/>
    * element to be omitted from the OVF output, which causes oVirt
-- 
2.7.4




More information about the Libguestfs mailing list