diff --git a/v2v/input_libvirtxml.ml b/v2v/input_libvirtxml.ml index 730ed0ac1..b9c1a87b5 100644 --- a/v2v/input_libvirtxml.ml +++ b/v2v/input_libvirtxml.ml @@ -129,8 +129,10 @@ let parse_libvirt_xml ?(map_source_file = no_map) ?(map_source_dev = no_map) if target_dev <> "" then Some target_dev else None in let format = - let format = xpath_to_string "driver[@name='qemu']/@type" "" in - if format <> "" then Some format else None in + match xpath_to_string "driver/@type" "" with + | "aio" -> Some "raw" (* Xen wierdness *) + | "" -> None + | format -> Some format in (* The attribute may be 'block', 'file' or * 'network'. We ignore any other types.