[ovirt-users] Re: Import VM with Xen Based in Ovirt

2021-05-05 Thread Guillaume Pavese
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  parameter to their definition file
 - For that, as explain, first have your vm running, then do 'virsh dumpxml
vmname'
You will see something like


  vmname
  7ecf52a5-3657-fc7a-b2e2-66edd4cf1b6c

- 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)  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 
> *Sent:* Wednesday, April 28, 2021 4:24 PM
> *To:* IT (Hema Arun) 
> *Cc:* hemaa--- via Users ; Strahil Nikolov <
> hunter86...@yahoo.com>
> *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
> 
> vm-pool
> 
>   /path/to/vmdisks
> 
> 
>
> # 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 
> 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
>
>  wrote:
>
> Any leads please?
>
>
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> 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=04%7C01%7Chemaa%40emiratesnbd.com%7Cadb2681142e140c3473808d90a408234%7Ccf29f56423034bfba13c29ef0689ffb9%7C0%7C0%7C637552094463433617%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000=po9B5giCt7L2tnJOrVF92DqtWDnvXiYbCZ6rxEceNn0%3D=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=04%7C01%7Chemaa%40emiratesnbd.com%7Cadb2681142e140c3473808d90a408234%7Ccf29f56423034bfba1

[ovirt-users] Re: Import VM with Xen Based in Ovirt

2021-04-28 Thread Tomáš Golembiovský
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 -, hemaa--- via Users wrote:
> Any leads please?
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@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/WB7KTXNCLD27R2II4XPMAFJUZEDZXOJA/

-- 
Tomáš Golembiovský 
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@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/7UO2G7BVQFV7L7EG4KWRA42EXVQMC53M/


[ovirt-users] Re: Import VM with Xen Based in Ovirt

2021-04-28 Thread Guillaume Pavese
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

vm-pool

  /path/to/vmdisks



# 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 
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
>  wrote:
> Any leads please?
>
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@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/WB7KTXNCLD27R2II4XPMAFJUZEDZXOJA/
>
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@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/IIFFJYN3LBR3WMDIVPAFGNZFRLTDD45L/
>

-- 


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.  

___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@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/HXI7U7DEZBQ2VWQLUTZMWSBKZDQJK24U/


[ovirt-users] Re: Import VM with Xen Based in Ovirt

2021-04-28 Thread Strahil Nikolov via Users
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 wrote:   
Any leads please?
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@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/WB7KTXNCLD27R2II4XPMAFJUZEDZXOJA/
  
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@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/IIFFJYN3LBR3WMDIVPAFGNZFRLTDD45L/


[ovirt-users] Re: Import VM with Xen Based in Ovirt

2021-04-28 Thread hemaa--- via Users
Any leads please?
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@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/WB7KTXNCLD27R2II4XPMAFJUZEDZXOJA/