<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:12.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">This multi-disk ovf generates “no href in ovf:File (id=)”<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Other single-disk ovfs on the same system work. I don’t have another multi-disk ova to try.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">I’ve compared the syntax with the test file on github and it appears to be essentially the same:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">virt-v2v/tests/test-v2v-i-ova-two-disks.ovf<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Any suggestions?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Side note: I tried building libguestfs from source but failed so haven’t tried with latest (separate issue, but I think I resolved dependencies, then hit a podwrapper.pl issue).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thank you,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Andrew<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">[ with text changed for privacy ]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Head of the .ovf file:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><?xml version="1.0" encoding="UTF-8"?><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><Envelope vmw:buildId="build-3620759" xmlns="http://schemas.dmtf.org/ovf/envelope/1" xmlns:cim="http://schemas.dmtf.org/wbem/wscim/1/common" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData"
 xmlns:vmw="http://www.vmware.com/schema/ovf" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">  <References><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">    <File ovf:href="aa-bb-cccc-1.2.3-45-release-200401.ova_v1.2_signed-disk1.vmdk" ovf:id="file1" ovf:size="1530541056"/><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">    <File ovf:href="aa-bb-cccc-1.2.3-45-release-200401.ova_v1.2_signed-disk2.vmdk" ovf:id="file2" ovf:size="6476920320"/><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">    <File ovf:href="aa-bb-cccc-1.2.3-45-release-200401.ova_v1.2_signed-disk3.vmdk" ovf:id="file3" ovf:size="1696059392"/><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">  </References><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">  <DeploymentOptionSection><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">    <Info>IP Network Stack in use by the product</Info><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">    <Configuration ovf:default="true" ovf:id="aa_ipv4"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">      <Label>IPv4 Network</Label><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">      <Description>Use IPv4 network stack for management and data traffic.</Description><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">    </Configuration><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">    <Configuration ovf:id="aa_ipv6"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">      <Label>IPv6 Network</Label><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">      <Description>Use IPv6 network stack for management and data traffic.</Description><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">    </Configuration><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">    <Configuration ovf:id="1int"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">      <Label>IPv4 Network on a Single Interface (demo mode)</Label><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">      <Description>Use a single interface for IPv4 management and data traffic.</Description><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">    </Configuration><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">  </DeploymentOptionSection><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">  <DiskSection><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">    <Info>Virtual disk information</Info><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">    <Disk ovf:capacity="50" ovf:capacityAllocationUnits="byte * 2^30" ovf:diskId="vmdisk1" ovf:fileRef="file1" ovf:format="http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized" ovf:populatedSize="3584360448"/><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">    <Disk ovf:capacity="156" ovf:capacityAllocationUnits="byte * 2^30" ovf:diskId="vmdisk2" ovf:fileRef="file2" ovf:format="http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized" ovf:populatedSize="16995385344"/><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">    <Disk ovf:capacity="76" ovf:capacityAllocationUnits="byte * 2^30" ovf:diskId="vmdisk6" ovf:fileRef="file3" ovf:format="http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized" ovf:populatedSize="1704001536"/><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">    <Disk ovf:capacity="${logfs}" ovf:capacityAllocationUnits="byte * 2^30" ovf:diskId="vmdisk3" ovf:fileRef="" ovf:format="http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized" ovf:populatedSize="0"/><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">    <Disk ovf:capacity="${corefs}" ovf:capacityAllocationUnits="byte * 2^30" ovf:diskId="vmdisk4" ovf:fileRef="" ovf:format="http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized" ovf:populatedSize="0"/><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">    <Disk ovf:capacity="${ddatafs}" ovf:capacityAllocationUnits="byte * 2^30" ovf:diskId="vmdisk5" ovf:fileRef="" ovf:format="http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized" ovf:populatedSize="0"/><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">  </DiskSection><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">…<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">And the virt-v2v error:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">[root@localhost ~]# virt-v2v -v -x -i ova aa-bb-cccc-1.2.3-45-release-200401.ova -of qcow2<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">virt-v2v: libguestfs 1.38.4rhel=8,release=14.module_el8.1.0+248+298dec18,libvirt (x86_64)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">libvirt version: 4.5.0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">[   0.0] Opening the source -i ova aa-bb-cccc-1.2.3-45-release-200401.ova<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">libguestfs: trace: set_verbose true<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">libguestfs: trace: set_verbose = 0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">libguestfs: trace: get_cachedir<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">libguestfs: trace: get_cachedir = "/var/tmp"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">qemu-img info json:'{ "file": { "driver": "raw", "offset": 512, "size": 512, "file": { "filename": "/tmp/v2vqemuimgtst8f2fb6.img" } } }' >/dev/null<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">qemu-img supports "offset" and "size" in json URLs: true<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">libguestfs: trace: set_verbose true<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">libguestfs: trace: set_verbose = 0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">libguestfs: trace: get_backend<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">libguestfs: trace: get_backend = "libvirt"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">libvirt supports  "raw" driver in json URL: true<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">tar -tf 'aa-bb-cccc-1.2.3-45-release-200401.ova'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">tar -xf 'aa-bb-cccc-1.2.3-45-release-200401.ova' -C '/var/tmp/ova.1MI0Ml' 'aa-bb-cccc-1.2.3-45-release-200401.ova_v6.5_signed.ovf' 'aa-bb-cccc-1.2.3-45-release-200401.ova_v1.2_signed.mf'<o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt">virt-v2v: error: no href in ovf:File (id=)</span></b><span style="font-size:11.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">rm -rf '/var/tmp/ova.1MI0Ml'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">libguestfs: trace: close<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">libguestfs: closing guestfs handle 0x558469792ff0 (state 0)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">libguestfs: trace: close<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">libguestfs: closing guestfs handle 0x558469781930 (state 0)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
</div>
</body>
</html>