Import VM in RHEV from Chef

Latest response

Hi ,

 

I'm  checking the  Chef tool for VMs  deployment  . It's possible to import a VM from Chef into the KVM  host .

 

Is it possible to perform the same task but for the RHEV ?

 

/Vlad .

Responses

Not sure how exactly you keep VMs in Chef, but you have two options with RHEV - virt-v2v and virt-p2v. Or you can deploy VMs with Chef, treating virtual machines as if they are physical

Chef is capable to deploy  either qcow2  or images VMs into the KVM  host using its knife tool. I tought that  since  qemu  is running on  RHEV servers as well  it would be possible  to let  the knife to connect  to the server and  import  VM's  image in the same way  more or less  .

 

As far as I understand p2v  works only  for RH6  guests , right ?

Just  cheked RH's guide on p2v . They  explain  how to convert  physical host  into RHEV  guest  - in my case I have KVM images  instead .

 

 May  you  point me out to the guide  me how to proceed  in this scenario ?

 

thanks .

There is no such guide. We have several tools available, like virt-v2v and virt-p2v but they are designed to import VMs from vmware, libvirt and Xen hosts, not from images. An image has no VM definitions around it, it's just a disk image that can be attached to any VM.

 

You could take the longer road and deploy your VMs on a RHEL host with KVM+libvirt, then use virt-v2v to import those VMs into a RHEV export domain, and from there import the VMs into RHEV. Or, if you're really into Chef you can write a module there that would interact with RHEV's API in order to deploy VMs.

 

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.