Hello, You can do 'virsh pool-create' on the same directory as your currently running Xen VMs' disks. That will make the disks visible to libvirt (prerequisite for them to be exportable to oVirt).
If libvirt doesn't see your stopped VMs when doing 'virsh list --all' you need to add the <UUID> parameter to their definition file - For that, as explain, first have your vm running, then do 'virsh dumpxml vmname' You will see something like <domain type='xen' id='10'> <name>vmname</name> <uuid>7ecf52a5-3657-fc7a-b2e2-66edd4cf1b6c</uuid> - Then, shutdown your vm and copy the UUID from the dump you just did in your vm definition file : In /etc/xen/vmname put the missing line with the following format: uuid = "7ecf52a5-3657-fc7a-b2e2-66edd4cf1b6c" The vm should now be visible by libvirt when doing 'virsh list --all' Guillaume Pavese Ingénieur Système et Réseau Interactiv-Group On Sun, May 2, 2021 at 6:47 PM IT (Hema Arun) <[email protected]> wrote: > Hi Guillaume, > > > > Thank you for the reply back. I am so glad that I received a reply from > someone. > > I would like to try this option but I am not much familiar with virsh. I > am having Oracle VM which is based on Xen. I don’t have a pool listed in > “'virsh > pool-list'" > > > > My existing OracleVM has already the vmdisks folder mounted as a > repository. When I do “virsh pool-create" from the Host, any idea will it > conflict the existing repository? > > > > Also to list the stopped VMs, what entry is to be added in the XML file. > Can you help me with that. > > > > Thanks a lot > > > > Regards, > > *Hema Arun* > > Senior Technology Engineer > > Group Information Technology - DevOps Chapter – *Linux and MiddleWare > Elastic Compute Platform * > > Teams: @hemaa > > > > *From:* Guillaume Pavese <[email protected]> > *Sent:* Wednesday, April 28, 2021 4:24 PM > *To:* IT (Hema Arun) <[email protected]> > *Cc:* hemaa--- via Users <[email protected]>; Strahil Nikolov < > [email protected]> > *Subject:* Re: [ovirt-users] Re: Import VM with Xen Based in Ovirt > > > > CAUTION: This email originated from outside the Emirates NBD Group. Do > not click links or open attachments unless you recognize the sender and > know the content is safe. > > 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 <[email protected]> > 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 > > <[email protected]> wrote: > > Any leads please? > > > _______________________________________________ > Users mailing list -- [email protected] > To unsubscribe send an email to [email protected] > Privacy Statement: https://www.ovirt.org/privacy-policy.html > <https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ovirt.org%2Fprivacy-policy.html&data=04%7C01%7Chemaa%40emiratesnbd.com%7Cadb2681142e140c3473808d90a408234%7Ccf29f56423034bfba13c29ef0689ffb9%7C0%7C0%7C637552094463433617%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=po9B5giCt7L2tnJOrVF92DqtWDnvXiYbCZ6rxEceNn0%3D&reserved=0> > oVirt Code of Conduct: > https://www.ovirt.org/community/about/community-guidelines/ > <https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ovirt.org%2Fcommunity%2Fabout%2Fcommunity-guidelines%2F&data=04%7C01%7Chemaa%40emiratesnbd.com%7Cadb2681142e140c3473808d90a408234%7Ccf29f56423034bfba13c29ef0689ffb9%7C0%7C0%7C637552094463443574%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=PLwhpI4pNqZrJ1H0d9CvKm%2FZ4gLCHTJd6rtCoFVo0ig%3D&reserved=0> > List Archives: > > > https://lists.ovirt.org/archives/list/[email protected]/message/WB7KTXNCLD27R2II4XPMAFJUZEDZXOJA/ > <https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.ovirt.org%2Farchives%2Flist%2Fusers%40ovirt.org%2Fmessage%2FWB7KTXNCLD27R2II4XPMAFJUZEDZXOJA%2F&data=04%7C01%7Chemaa%40emiratesnbd.com%7Cadb2681142e140c3473808d90a408234%7Ccf29f56423034bfba13c29ef0689ffb9%7C0%7C0%7C637552094463443574%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=x1E9ewEybEw6Vp%2FdSq6kxMT0i6opEVLRQdRgGzVY8lM%3D&reserved=0> > > > > _______________________________________________ > Users mailing list -- [email protected] > To unsubscribe send an email to [email protected] > Privacy Statement: https://www.ovirt.org/privacy-policy.html > <https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ovirt.org%2Fprivacy-policy.html&data=04%7C01%7Chemaa%40emiratesnbd.com%7Cadb2681142e140c3473808d90a408234%7Ccf29f56423034bfba13c29ef0689ffb9%7C0%7C0%7C637552094463453530%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=6W5GS6PwUwdUigEIXvpKoIkif7mIsogKpOLeNeeoD%2BM%3D&reserved=0> > oVirt Code of Conduct: > https://www.ovirt.org/community/about/community-guidelines/ > <https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ovirt.org%2Fcommunity%2Fabout%2Fcommunity-guidelines%2F&data=04%7C01%7Chemaa%40emiratesnbd.com%7Cadb2681142e140c3473808d90a408234%7Ccf29f56423034bfba13c29ef0689ffb9%7C0%7C0%7C637552094463453530%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=sH0Svgwn2UaenutnW0Ndz%2BJjtGkJQPQJgDHX3B%2F7eTU%3D&reserved=0> > List Archives: > https://lists.ovirt.org/archives/list/[email protected]/message/IIFFJYN3LBR3WMDIVPAFGNZFRLTDD45L/ > <https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.ovirt.org%2Farchives%2Flist%2Fusers%40ovirt.org%2Fmessage%2FIIFFJYN3LBR3WMDIVPAFGNZFRLTDD45L%2F&data=04%7C01%7Chemaa%40emiratesnbd.com%7Cadb2681142e140c3473808d90a408234%7Ccf29f56423034bfba13c29ef0689ffb9%7C0%7C0%7C637552094463453530%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=VeOHAPgQ04f31TCWS7MX9IsByv3gh05syRw7MyLqr0o%3D&reserved=0> > > > > 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://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Finteractiv-group.com%2Fdisclaimer.html&data=04%7C01%7Chemaa%40emiratesnbd.com%7Cadb2681142e140c3473808d90a408234%7Ccf29f56423034bfba13c29ef0689ffb9%7C0%7C0%7C637552094463463485%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=gNCimQMe1cmmechTxJ9kfH2TRaKSNCM01jYb49lvJEc%3D&reserved=0> > DISCLAIMER: "This e-mail message including any of its attachments is > intended solely for the addressee(s) and may contain privileged > information. If you are not the addressee or you have received this email > message in error, please notify the sender who will remove your details > from its database. You are not authorized to read, copy, disseminate, > distribute or use this e-mail message or any attachment to it in any manner > and must delete the email and destroy any hard copies of it. This e-mail > message does not contain financial instructions or commitments of any kind. > Any views expressed in this message are those of the individual sender and > do not necessarily reflect the views of Emirates NBD PJSC, or any other > related subsidiaries, entities or persons." > -- 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>
_______________________________________________ Users mailing list -- [email protected] To unsubscribe send an email to [email protected] 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/[email protected]/message/URCSUWTGLFOMNWW6G7WLWV4XDFJMYQVM/

