<div dir="ltr"><div><div>Hi Shahar , <br><br></div>vdsm shows the following errors.<br><br>Just giving the background how do we created VMs in KVM,  All the VMs are created on separate Luns of 100 GB and before creating VMs in KVM we usually format the LUN and then we create VMs on the formatted Lun.In this case we have mount the formatted Lun under &quot;/opt/wiki-uat&quot;. <br><br></div><div>I am just curious to know , will this type of VMs can be imported in Ovirt.<br><br><span style="color:rgb(0,0,255)"><br></span><span style="color:rgb(153,0,0)"><span style="color:rgb(0,0,255)">2017-03-30 12:30:17,999+0530 INFO  (jsonrpc/7) [jsonrpc.JsonRpcServer] RPC call Host.getStats succeeded in 0.02 seconds (__init__:515)<br>2017-03-30 12:30:19,366+0530 INFO  (jsonrpc/4) [throttled] Current getAllVmStats: {} (throttledlog:105)<br>2017-03-30 12:30:19,367+0530 INFO  (jsonrpc/4) [jsonrpc.JsonRpcServer] RPC call Host.getAllVmStats succeeded in 0.00 seconds (__init__:515)<br>2017-03-30 12:30:20,028+0530 ERROR (jsonrpc/6) [root] Error getting disk size (v2v:1084)<br>Traceback (most recent call last):<br>  File &quot;/usr/lib/python2.7/site-packages/vdsm/v2v.py&quot;, line 1073, in _get_disk_info<br>    vol = conn.storageVolLookupByPath(disk[&#39;alias&#39;])<br>  File &quot;/usr/lib64/python2.7/site-packages/libvirt.py&quot;, line 4770, in storageVolLookupByPath<br>    if ret is None:raise libvirtError(&#39;virStorageVolLookupByPath() failed&#39;, conn=self)<br>libvirtError: Storage volume not found: no storage vol with matching path<br>2017-03-30 12:30:20,029+0530 WARN  (jsonrpc/6) [root] Cannot add VM wiki-uat due to disk storage error (v2v:1015)<br>2017-03-30 12:30:20,034+0530 INFO  (jsonrpc/6) [jsonrpc.JsonRpcServer] RPC call Host.getExternalVMs succeeded in 0.48 seconds (__init__:515)<br></span><br></span></div><span style="color:rgb(153,0,0)">Below are the contents of VM libvirt xml file<br><br><br><span style="color:rgb(0,0,255)"> &lt;uuid&gt;9e2f7338-9f13-32db-ea50-d6d9467e1345&lt;/uuid&gt;<br>  &lt;memory unit=&#39;KiB&#39;&gt;2097152&lt;/memory&gt;<br>  &lt;currentMemory unit=&#39;KiB&#39;&gt;2097152&lt;/currentMemory&gt;<br>  &lt;vcpu placement=&#39;static&#39;&gt;2&lt;/vcpu&gt;<br>  &lt;os&gt;<br>    &lt;type arch=&#39;x86_64&#39; machine=&#39;rhel6.5.0&#39;&gt;hvm&lt;/type&gt;<br>    &lt;boot dev=&#39;hd&#39;/&gt;<br>  &lt;/os&gt;<br>  &lt;features&gt;<br>    &lt;acpi/&gt;<br>    &lt;apic/&gt;<br>    &lt;pae/&gt;<br>  &lt;/features&gt;<br>  &lt;clock offset=&#39;utc&#39;/&gt;<br>  &lt;on_poweroff&gt;destroy&lt;/on_poweroff&gt;<br>  &lt;on_reboot&gt;restart&lt;/on_reboot&gt;<br>  &lt;on_crash&gt;restart&lt;/on_crash&gt;<br>  &lt;devices&gt;<br>    &lt;emulator&gt;/usr/libexec/qemu-kvm&lt;/emulator&gt;<br>    &lt;disk type=&#39;file&#39; device=&#39;disk&#39;&gt;<br>      &lt;driver name=&#39;qemu&#39; type=&#39;raw&#39; cache=&#39;none&#39;/&gt;<br>      &lt;source file=&#39;/opt/wiki-uat/mediawiki-uat.img&#39;/&gt;<br>      &lt;target dev=&#39;hda&#39; bus=&#39;ide&#39;/&gt;<br>      &lt;address type=&#39;drive&#39; controller=&#39;0&#39; bus=&#39;0&#39; target=&#39;0&#39; unit=&#39;0&#39;/&gt;<br>    &lt;/disk&gt;<br>    &lt;controller type=&#39;usb&#39; index=&#39;0&#39;&gt;<br>      &lt;address type=&#39;pci&#39; domain=&#39;0x0000&#39; bus=&#39;0x00&#39; slot=&#39;0x01&#39; function=&#39;0x2&#39;/&gt;<br>    &lt;/controller&gt;<br>    &lt;controller type=&#39;ide&#39; index=&#39;0&#39;&gt;<br>      &lt;address type=&#39;pci&#39; domain=&#39;0x0000&#39; bus=&#39;0x00&#39; slot=&#39;0x01&#39; function=&#39;0x1&#39;/&gt;<br>    &lt;/controller&gt;<br>    &lt;interface type=&#39;bridge&#39;&gt;<br>      &lt;mac address=&#39;52:54:00:0a:fb:e2&#39;/&gt;<br>      &lt;source bridge=&#39;br10&#39;/&gt;<br>      &lt;model type=&#39;e1000&#39;/&gt;<br>      &lt;address type=&#39;pci&#39; domain=&#39;0x0000&#39; bus=&#39;0x00&#39; slot=&#39;0x03&#39; function=&#39;0x0&#39;/&gt;<br>    &lt;/interface&gt;<br>    &lt;serial type=&#39;pty&#39;&gt;<br>      &lt;target port=&#39;0&#39;/&gt;<br>    &lt;/serial&gt;<br>    &lt;console type=&#39;pty&#39;&gt;<br>      &lt;target type=&#39;serial&#39; port=&#39;0&#39;/&gt;<br>    &lt;/console&gt;<br>    &lt;input type=&#39;mouse&#39; bus=&#39;ps2&#39;/&gt;<br>    &lt;graphics type=&#39;vnc&#39; port=&#39;-1&#39; autoport=&#39;yes&#39;/&gt;<br>    &lt;sound model=&#39;ich6&#39;&gt;<br>      &lt;address type=&#39;pci&#39; domain=&#39;0x0000&#39; bus=&#39;0x00&#39; slot=&#39;0x04&#39; function=&#39;0x0&#39;/&gt;<br>    &lt;/sound&gt;<br>    &lt;video&gt;<br>      &lt;model type=&#39;cirrus&#39; vram=&#39;9216&#39; heads=&#39;1&#39;/&gt;<br>      &lt;address type=&#39;pci&#39; domain=&#39;0x0000&#39; bus=&#39;0x00&#39; slot=&#39;0x02&#39; function=&#39;0x0&#39;/&gt;<br>    &lt;/video&gt;<br>    &lt;memballoon model=&#39;virtio&#39;&gt;<br>      &lt;address type=&#39;pci&#39; domain=&#39;0x0000&#39; bus=&#39;0x00&#39; slot=&#39;0x05&#39; function=&#39;0x0&#39;/&gt;<br>    &lt;/memballoon&gt;<br>  &lt;/devices&gt;</span><br><br></span><div><span style="color:rgb(153,0,0)"><br></span><br><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 30, 2017 at 12:16 PM, Shahar Havivi <span dir="ltr">&lt;<a href="mailto:shavivi@redhat.com" target="_blank">shavivi@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Sorry for the miss leading message, its suppose to say that some of the selected VMs cannot be imported.<div>This can be due to broken storage disk path or any other Libvirt parsing error.</div><div>For more details you can look at the vdsm log (/var/log/vdsm/vdsm.log) and see why we failed to parse Libvirt xml for each VM that is not in the right list.</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 30, 2017 at 9:34 AM, Pradeep Antil <span dir="ltr">&lt;<a href="mailto:pradeepantil@gmail.com" target="_blank">pradeepantil@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi Team, <br><br></div>While importing VMs with external Provider KVM on my oVirt setup, i am getting the below error:<br><br>&quot;<span style="color:rgb(255,0,0)">All chosen VMs couldn&#39;t be retrieved by the external system and therefore have been filtered. Please see log for details</span>.<br><br></div>As per Shahar suggestion yesterday i was able to view the virtual machine of my KVM hypervisior in oVirt Portal.I have also created the export domain in my DC as well. <br><br></div>Any idea how to resolve this issue and so that i can start importing VMs<br><div><br><div><div><div><br><img src="cid:ii_15b1de45b370c357" alt="Inline image 1" height="461" width="561"><br><br></div><div>Thanks in Advance<br><br><br></div><div><div class="m_5662701516560262754h5"><div><br><br><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 29, 2017 at 6:17 PM, Pradeep Antil <span dir="ltr">&lt;<a href="mailto:pradeepantil@gmail.com" target="_blank">pradeepantil@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>Hi Shahar, <br><br></div>Thanks for the quick response. Issue is resolved now with your suggested steps.<br><br></div><div>Thank you very much !!!!<br></div><div><div class="m_5662701516560262754m_-4550861996305426698gmail-h5"><div><br><br><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 29, 2017 at 5:38 PM, Shahar Havivi <span dir="ltr">&lt;<a href="mailto:shavivi@redhat.com" target="_blank">shavivi@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">when you run virsh you where logged in as root user,<div>the user that oVirt is running is vdsm</div><div><br></div><div>you need to run:</div><div><div>$ sudo -u vdsm ssh-keygen</div><div>$ sudo -u vdsm ssh-copy-id user@kvmhost</div></div><div><br></div><div>you can look at wiki we have for Xen to generate the ssh keys but its the same for kvm.</div><div><a href="https://www.ovirt.org/develop/release-management/features/virt/XenToOvirt/" target="_blank">https://www.ovirt.org/develop/<wbr>release-management/features/vi<wbr>rt/XenToOvirt/</a><br></div><div><br></div><div> Shahar.</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_5662701516560262754m_-4550861996305426698gmail-m_-5799310694695398337gmail-h5">On Wed, Mar 29, 2017 at 12:34 PM, Pradeep Antil <span dir="ltr">&lt;<a href="mailto:pradeepantil@gmail.com" target="_blank">pradeepantil@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="m_5662701516560262754m_-4550861996305426698gmail-m_-5799310694695398337gmail-h5"><div dir="ltr"><div><div><div><br></div>Hello Folks, <br><br></div>I am trying to import KVM guest VMs to my oVirt Server using external Provider. But when i add external provider with type KVM and do the testing that time i am getting below error<br><br><span style="background-color:rgb(255,0,0)">Caused by: org.ovirt.engine.core.vdsbroke<wbr>r.vdsbroker.VDSErrorException: VDSGenericException: VDSErrorException: Failed to GetVmsNamesFromExternalProvide<wbr>rVDS, error = Cannot recv data: Host key verification failed.: Connection reset by peer, code = 65<br>        at org.ovirt.engine.core.vdsbroke<wbr>r.vdsbroker.VdsBrokerCommand.c<wbr>reateDefaultConcreteException(<wbr>VdsBrokerCommand.java:76) [vdsbroker.jar:]<br>        at org.ovirt.engine.core.vdsbroke<wbr>r.vdsbroker.BrokerCommandBase.<wbr>createException(BrokerCommandB<wbr>ase.java:222) [vdsbroker.jar:]<br><br><br><img src="cid:ii_15b19624746b31c9" alt="Inline image 2" height="366" width="561"><br><br></span></div><div><span style="background-color:rgb(255,0,0)"><span style="background-color:rgb(255,0,0)"><span><span style="background-color:rgb(255,242,204)">I have already configure password less authentication with ssh keys between proxy host to my KVM hypervisor. </span></span></span><span style="background-color:rgb(255,242,204)"><span>Though i can reach to kvm hypervisor with virsh connect. <br><br>[root@lplinnd1hypov13 ~]# virsh -c qemu+ssh://root@&lt;KVM-HYP-NAME&gt;<wbr>/system<br>Welcome to virsh, the virtualization interactive terminal.<br><br>Type:  &#39;help&#39; for help with commands<br>       &#39;quit&#39; to quit<br><br>virsh #<br><br></span></span></span></div><div><span style="background-color:rgb(255,0,0)"><span style="background-color:rgb(255,242,204)"><span>Any idea how to resolve this issue, so that i can add KVM as external provider and  start importing my KVM guest VMs in ovirt setup<br><br><br></span></span></span></div><div><span style="background-color:rgb(255,0,0)"><span style="background-color:rgb(255,242,204)"><span>Thanks in Advance<span class="m_5662701516560262754m_-4550861996305426698gmail-m_-5799310694695398337gmail-m_565782878528956909HOEnZb"><font color="#888888"><br><br><br></font></span></span></span></span></div><span class="m_5662701516560262754m_-4550861996305426698gmail-m_-5799310694695398337gmail-m_565782878528956909HOEnZb"><font color="#888888"><div><span style="background-color:rgb(255,0,0)"><span style="background-color:rgb(255,242,204)"><span><br><br></span></span></span></div><div><br></div><br><div><br><br><br><div><div><br clear="all"><br>-- <br><div class="m_5662701516560262754m_-4550861996305426698gmail-m_-5799310694695398337gmail-m_565782878528956909m_-8479435092018770063gmail_signature">Best Regards<br>Pradeep Kumar</div>
</div></div></div></font></span></div>
<br></div></div>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman<wbr>/listinfo/users</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="m_5662701516560262754m_-4550861996305426698gmail-m_-5799310694695398337gmail_signature">Best Regards<br>Pradeep Kumar</div>
</div></div></div></div></div></div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="m_5662701516560262754m_-4550861996305426698gmail_signature">Best Regards<br>Pradeep Kumar</div>
</div></div></div></div></div></div></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Best Regards<br>Pradeep Kumar</div>
</div>