5c13d3
From 893336672393500172bf750d05980a94f489b2f6 Mon Sep 17 00:00:00 2001
5c13d3
From: Nir Soffer <nirsof@gmail.com>
5c13d3
Date: Mon, 2 Sep 2019 17:45:13 +0100
5c13d3
Subject: [PATCH] v2v: Set DISKTYPE=2 in RHV and VDSM meta files
5c13d3
 (RHBZ#1746699).
5c13d3
5c13d3
Added in virt-p2v commit:
5c13d3
5c13d3
  commit e83b6f50af34ce650063ecc520bfabab400e8e73
5c13d3
  Author: Matthew Booth <mbooth@redhat.com>
5c13d3
  Date:   Fri Mar 26 09:40:20 2010 +0000
5c13d3
5c13d3
    Add export to RHEV
5c13d3
5c13d3
    Allow guests to be written to a RHEV NFS export storage domain.
5c13d3
5c13d3
    Add 'rhev' output method and -osd command-line option.
5c13d3
    Example command line:
5c13d3
5c13d3
     virt-v2v -f virt-v2v.conf -ic 'esx://yellow.rhev.marston/' \
5c13d3
              -o rhev -osd blue:/export/export RHEL3-32
5c13d3
5c13d3
    This will connect to an ESX server and write the guest 'RHEL3-32' to
5c13d3
    blue:/export/export, which is a pre-initialised RHEV export storage domain.
5c13d3
5c13d3
(cherry picked from commit fcfdbc9420b07e3003df38481afb9ccd22045e1a)
5c13d3
---
5c13d3
 v2v/create_ovf.ml | 2 +-
5c13d3
 1 file changed, 1 insertion(+), 1 deletion(-)
5c13d3
5c13d3
diff --git a/v2v/create_ovf.ml b/v2v/create_ovf.ml
5c13d3
index 91ff5198d..9aad5dd15 100644
5c13d3
--- a/v2v/create_ovf.ml
5c13d3
+++ b/v2v/create_ovf.ml
5c13d3
@@ -501,7 +501,7 @@ let create_meta_files output_alloc sd_uuid image_uuids overlays =
5c13d3
       bpf "CTIME=%.0f\n" time;
5c13d3
       bpf "MTIME=%.0f\n" time;
5c13d3
       bpf "IMAGE=%s\n" image_uuid;
5c13d3
-      bpf "DISKTYPE=1\n";
5c13d3
+      bpf "DISKTYPE=2\n";
5c13d3
       bpf "PUUID=00000000-0000-0000-0000-000000000000\n";
5c13d3
       bpf "LEGALITY=LEGAL\n";
5c13d3
       bpf "POOL_UUID=\n";
5c13d3
-- 
5c13d3
2.21.0
5c13d3