<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 "/opt/wiki-uat". <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 "/usr/lib/python2.7/site-packages/vdsm/v2v.py", line 1073, in _get_disk_info<br> vol = conn.storageVolLookupByPath(disk['alias'])<br> File "/usr/lib64/python2.7/site-packages/libvirt.py", line 4770, in storageVolLookupByPath<br> if ret is None:raise libvirtError('virStorageVolLookupByPath() failed', 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)"> <uuid>9e2f7338-9f13-32db-ea50-d6d9467e1345</uuid><br> <memory unit='KiB'>2097152</memory><br> <currentMemory unit='KiB'>2097152</currentMemory><br> <vcpu placement='static'>2</vcpu><br> <os><br> <type arch='x86_64' machine='rhel6.5.0'>hvm</type><br> <boot dev='hd'/><br> </os><br> <features><br> <acpi/><br> <apic/><br> <pae/><br> </features><br> <clock offset='utc'/><br> <on_poweroff>destroy</on_poweroff><br> <on_reboot>restart</on_reboot><br> <on_crash>restart</on_crash><br> <devices><br> <emulator>/usr/libexec/qemu-kvm</emulator><br> <disk type='file' device='disk'><br> <driver name='qemu' type='raw' cache='none'/><br> <source file='/opt/wiki-uat/mediawiki-uat.img'/><br> <target dev='hda' bus='ide'/><br> <address type='drive' controller='0' bus='0' target='0' unit='0'/><br> </disk><br> <controller type='usb' index='0'><br> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/><br> </controller><br> <controller type='ide' index='0'><br> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/><br> </controller><br> <interface type='bridge'><br> <mac address='52:54:00:0a:fb:e2'/><br> <source bridge='br10'/><br> <model type='e1000'/><br> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/><br> </interface><br> <serial type='pty'><br> <target port='0'/><br> </serial><br> <console type='pty'><br> <target type='serial' port='0'/><br> </console><br> <input type='mouse' bus='ps2'/><br> <graphics type='vnc' port='-1' autoport='yes'/><br> <sound model='ich6'><br> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/><br> </sound><br> <video><br> <model type='cirrus' vram='9216' heads='1'/><br> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/><br> </video><br> <memballoon model='virtio'><br> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/><br> </memballoon><br> </devices></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"><<a href="mailto:shavivi@redhat.com" target="_blank">shavivi@redhat.com</a>></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"><<a href="mailto:pradeepantil@gmail.com" target="_blank">pradeepantil@gmail.com</a>></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>"<span style="color:rgb(255,0,0)">All chosen VMs couldn'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"><<a href="mailto:pradeepantil@gmail.com" target="_blank">pradeepantil@gmail.com</a>></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"><<a href="mailto:shavivi@redhat.com" target="_blank">shavivi@redhat.com</a>></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"><<a href="mailto:pradeepantil@gmail.com" target="_blank">pradeepantil@gmail.com</a>></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@<KVM-HYP-NAME><wbr>/system<br>Welcome to virsh, the virtualization interactive terminal.<br><br>Type: 'help' for help with commands<br> 'quit' 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>