Import VM with Xen Based in Ovirt

Hi All, I am trying to migrate a VM from a Xen Based virtualization to Ovirt with the import option in GUI But I am not able to list any stopped VMs on the Xen host. So what I did is I started the VM and got it listed. Then selected the VM and moved to right hand section. Clicked on next button. But then it gave an error "All chosen VMs couldn't be retrieved by the external system and therefore have been filtered. Please see log for details." When I check the libvirt logs in xen hypervisor I see error as below. There is no other errors in engine logs or vdsm logs 2021-04-22 08:52:36.796+0000: 30219: error : do_connect:116 : internal error: failed to connect to xend 2021-04-22 08:52:36.830+0000: 30219: error : virNodeSuspendSupportsTarget:332 : internal error: Cannot probe for supported suspend types 2021-04-22 08:52:36.830+0000: 30219: warning : xenHypervisorMakeCapabilities:2550 : Failed to get host power management capabilities 2021-04-22 08:52:36.832+0000: 30220: error : virConnectListAllDomains:6803 : this function is not supported by the connection driver: virConnectListAllDomains This is the same error I got when I tried importing a running VM as well. Any idea on what could be a possible reason behind this?

Hi, I do not know if the Xen based you’re mentioning is Oracle VM. In that case you could check this article: https://blogs.oracle.com/scoter/migrate-oracle-vm-to-oracle-linux-kvm Simon On Apr 22, 2021, at 11:07 AM, hemaa--- via Users <users@ovirt.org<mailto:users@ovirt.org>> wrote: Hi All, I am trying to migrate a VM from a Xen Based virtualization to Ovirt with the import option in GUI But I am not able to list any stopped VMs on the Xen host. So what I did is I started the VM and got it listed. Then selected the VM and moved to right hand section. Clicked on next button. But then it gave an error "All chosen VMs couldn't be retrieved by the external system and therefore have been filtered. Please see log for details." When I check the libvirt logs in xen hypervisor I see error as below. There is no other errors in engine logs or vdsm logs 2021-04-22 08:52:36.796+0000: 30219: error : do_connect:116 : internal error: failed to connect to xend 2021-04-22 08:52:36.830+0000: 30219: error : virNodeSuspendSupportsTarget:332 : internal error: Cannot probe for supported suspend types 2021-04-22 08:52:36.830+0000: 30219: warning : xenHypervisorMakeCapabilities:2550 : Failed to get host power management capabilities 2021-04-22 08:52:36.832+0000: 30220: error : virConnectListAllDomains:6803 : this function is not supported by the connection driver: virConnectListAllDomains This is the same error I got when I tried importing a running VM as well. Any idea on what could be a possible reason behind this? _______________________________________________ Users mailing list -- users@ovirt.org<mailto:users@ovirt.org> To unsubscribe send an email to users-leave@ovirt.org<mailto:users-leave@ovirt.org> Privacy Statement: https://urldefense.com/v3/__https://www.ovirt.org/privacy-policy.html__;!!Gq... oVirt Code of Conduct: https://urldefense.com/v3/__https://www.ovirt.org/community/about/community-... List Archives: https://urldefense.com/v3/__https://lists.ovirt.org/archives/list/users@ovir...

I think that you have to export the BM as OVA or convert it to KVM before being able to import via oVirt Best Regards,Strahil Nikolov On Wed, Apr 28, 2021 at 12:36, hemaa--- via Users<users@ovirt.org> wrote: Any leads please? _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/WB7KTXNCLD27R2...

I successfully imported xem vm to oVirt with the GUI You need libvirt to be able to list the powered-off vm on the xen host first What was missing for me at first was : 1) You need a libvirt pool referencing the path to VMs disks. Verify that's not already the case with 'virsh pool-list', Otherwise create it : # cat vm-pool.xml <pool type="dir"> <name>vm-pool</name> <target> <path>/path/to/vmdisks</path> </target> </pool> # virsh pool-create vm-pool.xml # virsh pool-list ## Should list the newly created pool 2) Then each VM need an UUID present in its xml definition file. If not present, you can start the vm, do 'virsh dumpxml domainname' and get the UUID for the running VM, then power it off and edit the xml to add this UUID line, that will make it visible to virsh when powered off. You can check now with : 'virsh list --all' 3) For a successful import I found that it's also necessary to - install a non xen kernel in the vm, - and have disk listed by UUIDs in /etc/fstab (maybe not necessary this last one) Good luck, Guillaume Pavese Ingénieur Système et Réseau Interactiv-Group On Wed, Apr 28, 2021 at 7:38 PM Strahil Nikolov via Users <users@ovirt.org> wrote:
I think that you have to export the BM as OVA or convert it to KVM before being able to import via oVirt
Best Regards, Strahil Nikolov
On Wed, Apr 28, 2021 at 12:36, hemaa--- via Users <users@ovirt.org> wrote: Any leads please?
_______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives:
https://lists.ovirt.org/archives/list/users@ovirt.org/message/WB7KTXNCLD27R2...
_______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/IIFFJYN3LBR3WM...
-- Ce message et toutes les pièces jointes (ci-après le “message”) sont établis à l’intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur, merci de le détruire et d’en avertir immédiatement l’expéditeur. Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. L’internet ne permettant pas d’assurer l’intégrité de ce message . Interactiv-group (et ses filiales) décline(nt) toute responsabilité au titre de ce message, dans l’hypothèse ou il aurait été modifié. IT, ES, UK. <https://interactiv-group.com/disclaimer.html>

Hi, this looks like libvirt errors. Possibly you should be able to get more information on libvirt-users list maybe. Hope this helps, Tomas On Wed, Apr 28, 2021 at 09:35:25AM -0000, hemaa--- via Users wrote:
Any leads please? _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/WB7KTXNCLD27R2...
-- Tomáš Golembiovský <tgolembi@redhat.com>
participants (5)
-
Guillaume Pavese
-
hemaa@emiratesnbd.com
-
Simon Coter
-
Strahil Nikolov
-
Tomáš Golembiovský