This also allows us to use virt-v2v with the old version of qemu in
RHEL 7.
Fixes commit e29296cfa20dd691995832940a30fe2e6b98149a.
Thanks: Pino Toscano for suggesting the fix.
---
v2v/v2v.ml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/v2v/v2v.ml b/v2v/v2v.ml
index 54a2b3998..363699701 100644
--- a/v2v/v2v.ml
+++ b/v2v/v2v.ml
@@ -744,7 +744,7 @@ and copy_targets cmdline targets input output =
let cmd =
let filename =
match t.target_file with
- | TargetFile filename -> "file:" ^ filename
+ | TargetFile filename -> qemu_input_filename filename
| TargetURI uri -> uri in
[ Guestfs_config.qemu_img; "convert" ] @
(if not (quiet ()) then [ "-p" ] else []) @
--
2.16.2