<div dir="ltr"><div><div><div><div>Kun,<br><br></div>I found that the OVF file includes a VM with a single vNic, but "<span style="color:rgb(0,0,0)">rasd:MACAddress</span>" entry is missing there.<br></div>Could you please tell what was the MAC address in the source system and what it is in oVirt once you've succeed importing the VM?<br></div><div>Also could you please tell what kind of system is the source system and what is the tool you use for exporting VM out of there?<br><br></div><div>Are you able to find the MAC address info in the export file prior using virt-v2v?</div><div><br></div>Regards,<br></div>Yevgeny<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 5, 2017 at 1:42 PM, Kun Wei <span dir="ltr"><<a href="mailto:kuwei@redhat.com" target="_blank">kuwei@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi,I have been sent ovf file to Yevgeny in private<br>
Thanks<br>
<span class="im HOEnZb"><br>
<br>
----- Original Message -----<br>
From: "Yevgeny Zaspitsky" <<a href="mailto:yzaspits@redhat.com">yzaspits@redhat.com</a>><br>
To: "Kun Wei" <<a href="mailto:kuwei@redhat.com">kuwei@redhat.com</a>><br>
</span><div class="HOEnZb"><div class="h5">Cc: "Shahar Havivi" <<a href="mailto:shavivi@redhat.com">shavivi@redhat.com</a>>, "users" <<a href="mailto:users@ovirt.org">users@ovirt.org</a>>, "Tingting Zheng" <<a href="mailto:tzheng@redhat.com">tzheng@redhat.com</a>>, "Ming Xie" <<a href="mailto:mxie@redhat.com">mxie@redhat.com</a>><br>
Sent: Thursday, January 5, 2017 6:37:58 PM<br>
Subject: Re: Import guest at rhv4.0.6 failed after convert a regular ova file by virt-v2v<br>
<br>
Seems like engines tries to validate a vNic with an empty MAC address and<br>
fails on that. The fact that in the direct flow it works sounds weird to<br>
me: either we loose the MAC in one flow or we do not validate it in the<br>
other one.<br>
<br>
Kun, could you please send (in private if you like) the OVF file from the<br>
input tarball you've used, so we'd be able to debug the case more<br>
thoroughly?<br>
<br>
Regards,<br>
Yevgeny<br>
<br>
On Thu, Jan 5, 2017 at 10:03 AM, Kun Wei <<a href="mailto:kuwei@redhat.com">kuwei@redhat.com</a>> wrote:<br>
<br>
><br>
> Hi,shavivi.<br>
><br>
> Thank you .Yes,as you know i can import ova directly and it can be import<br>
> successful.<br>
><br>
> But i am testing v2v now and i want to confirm if it is a new bug.<br>
><br>
><br>
><br>
> ----- Original Message -----<br>
> From: "Shahar Havivi" <<a href="mailto:shavivi@redhat.com">shavivi@redhat.com</a>><br>
> To: "Kun Wei" <<a href="mailto:kuwei@redhat.com">kuwei@redhat.com</a>>, "Yevgeny Zaspitsky" <<a href="mailto:yzaspits@redhat.com">yzaspits@redhat.com</a><br>
> ><br>
> Cc: "users" <<a href="mailto:users@ovirt.org">users@ovirt.org</a>>, "Tingting Zheng" <<a href="mailto:tzheng@redhat.com">tzheng@redhat.com</a>>,<br>
> "Ming Xie" <<a href="mailto:mxie@redhat.com">mxie@redhat.com</a>><br>
> Sent: Thursday, January 5, 2017 3:05:45 PM<br>
> Subject: Re: Import guest at rhv4.0.6 failed after convert a regular ova<br>
> file by virt-v2v<br>
><br>
> Yevgeny, please look why it fails on "isMacInRange"<br>
><br>
> Kun, you know that you can import ova directly instead of using virt-v2v to<br>
> export domain and then import to data domain,<br>
> you can do that from the VMs tab->Import-> and change the source to OVA.<br>
><br>
> On Thu, Jan 5, 2017 at 4:35 AM, Kun Wei <<a href="mailto:kuwei@redhat.com">kuwei@redhat.com</a>> wrote:<br>
><br>
> ><br>
> > Hi, I want to confirm a questions if it is a bug,or if something wrong<br>
> > with me.Thanks<br>
> ><br>
> > When i convert a ova guest file to rhv4.0.6 by virt-v2v,but import is<br>
> > failed.The attachment are engine.log and vdsm.log.<br>
> ><br>
> ><br>
> ><br>
> > Version:<br>
> > libguestfs-1.32.7-3.el7_3.2.<wbr>x86_64<br>
> > virt-v2v-1.32.7-3.el7_3.2.x86_<wbr>64<br>
> > qemu-img-rhev-2.6.0-28.el7_3.<wbr>2.x86_64<br>
> > libvirt-2.0.0-10.el7_3.3.x86_<wbr>64<br>
> > rhv4.0: 4.0.6.3<br>
> ><br>
> > Steps :<br>
> > 1:Prepare a regular ova file guest .<br>
> > 2:Use virt-v2v to convert the ova file to rhv4.0.<br>
> > # virt-v2v -i ova esx-rhel6.8-vmdkgz.tar -o rhev -os <a href="http://10.73.131.93" rel="noreferrer" target="_blank">10.73.131.93</a>:<br>
> /home/nfs_export<br>
> > -of qcow2<br>
> > [ 0.0] Opening the source -i ova esx-rhel6.8-vmdkgz.tar<br>
> > [ 44.1] Creating an overlay to protect the source from being modified<br>
> > [ 45.0] Initializing the target -o rhev -os <a href="http://10.73.131.93" rel="noreferrer" target="_blank">10.73.131.93</a>:<br>
> /home/nfs_export<br>
> > [ 45.3] Opening the overlay<br>
> > [ 53.1] Inspecting the overlay<br>
> > [ 70.2] Checking for sufficient free disk space in the guest<br>
> > [ 70.2] Estimating space required on target for each disk<br>
> > [ 70.2] Converting Red Hat Enterprise Linux Server release 6.8<br>
> (Santiago)<br>
> > to run on KVM<br>
> > virt-v2v: This guest has virtio drivers installed.<br>
> > [ 215.6] Mapping filesystem data to avoid copying unused and blank areas<br>
> > [ 216.0] Closing the overlay<br>
> > [ 217.2] Checking if the guest needs BIOS or UEFI to boot<br>
> > [ 217.2] Assigning disks to buses<br>
> > [ 217.2] Copying disk 1/1 to /tmp/v2v.8kDoXb/908b80fa-09a6-<br>
> > 4827-8e0a-a6a54520f685/images/<wbr>47a1919e-1914-44b4-920f-<br>
> > b8e208fa4bc1/da74f1c3-8f43-<wbr>4a15-934a-bb9d380615c3 (qcow2)<br>
> > (100.00/100%)<br>
> > [ 254.6] Creating output metadata<br>
> > [ 254.7] Finishing off<br>
> > 3.Then login rhv4.0 and try to import the guest from export domain to<br>
> data<br>
> > domain after finishing the conversion.But it is failed with the<br>
> > error:"Failed to import Vm rhel6u8 to Data Center Default, Cluster<br>
> Default"<br>
> > as appendix picture.<br>
> ><br>
> > -Additional info :<br>
> > I can import a guest from kvm or vmware.Only can not import this way.<br>
> ><br>
> ><br>
> > -<br>
> > Best Regards,<br>
> > Kun Wei<br>
> ><br>
> ><br>
> ><br>
><br>
</div></div></blockquote></div><br></div>