[Openstack] Running Xen VMs on Openstack

Robson Ramos Barreto robson.rbarreto at gmail.com
Fri May 22 16:27:32 UTC 2015


But i think if you convert from OVA file (How you were) shoud work also
because does contain the disk image compacted into OVA file

Regards

Abs.
*Robson Ramos Barreto*
IT / INFRASTRUCTURE ANALYST
*Phone:* *+55 11 95239-3299*
* E-mail:* *robson.rbarreto at gmail.com* <robson.rbarreto at gmail.com>
* Skype:* *robson.rbarreto* <robson.rbarreto at gmail.com>
* Find me on:* [image: http://br.linkedin.com/in/robsonrbarreto/]
<http://br.linkedin.com/in/robsonrbarreto/>

2015-05-22 13:17 GMT-03:00 Robson Ramos Barreto <robson.rbarreto at gmail.com>:

> Hi
>
> The OVF file is the VM format that contain hardware parameters. So, you
> should not convert it.
>
> After you convert the XVA file to qcow2, you should create something like
> with virt:
>
> # virt-install --virt-type kvm --name centos-6.4 --ram 1024 \
> *--disk /tmp/centos-6.4.qcow2,format=qcow2 \*
> --network network=default \
> --graphics vnc,listen=0.0.0.0 --noautoconsole \
> --os-type=linux --os-variant=rhel6 \
> --extra-args="console=tty0 console=ttyS0,115200n8 serial" \
> --location=/data/isos/CentOS-6.4-x86_64-netinstall.iso
>
> Where the /tmp/centos-6.4.qcow2 file are you qcow2 file converted from XVA
>
> Regards
>
> Abs.
> *Robson Ramos Barreto*
> IT / INFRASTRUCTURE ANALYST
> *Phone:* *+55 11 95239-3299*
> * E-mail:* *robson.rbarreto at gmail.com* <robson.rbarreto at gmail.com>
> * Skype:* *robson.rbarreto* <robson.rbarreto at gmail.com>
> * Find me on:* [image: http://br.linkedin.com/in/robsonrbarreto/]
> <http://br.linkedin.com/in/robsonrbarreto/>
>
> 2015-05-22 3:09 GMT-03:00 Girija Sharan <girijasharansingh at gmail.com>:
>
> Hi,
>>
>> You are right Robson.
>> I tried to convert XVA to Qcow2, it was successful but when I launched VM
>> on KVM, it was not booting.
>> Then I converted OVF/OVA to Qcow2, and this time when I launched it in
>> KVM, it came up successfully.
>>
>> I don't have any clue why it didn't worked with XVA format ?
>>
>> On Fri, May 22, 2015 at 1:13 AM, Robson Ramos Barreto <
>> robson.rbarreto at gmail.com> wrote:
>>
>>> Sure
>>>
>>> But, The *qemu-img convert* command can do conversion between multiple
>>> formats, including qcow2, QED, raw, VDI (VirtualBox), VHD (Hyper-V), and
>>> VMDK (VMware).
>>> Table 7.1. qemu-img format strings Image format Argument to qemu-img qcow2
>>> (KVM, Xen) qcow2 QED (KVM) qed raw raw VDI (VirtualBox) vdi VHD
>>> (Hyper-V) vpc VMDK (VMware) vmdk
>>>
>>> This example will convert a VMDK image file to a qcow2 image file:
>>>
>>> $ qemu-img convert -f vmdk -O qcow2 centos7.vmdk centos7.qcow2
>>>
>>> You just need to change to XenServer format, right ?
>>>
>>> Regards
>>>
>>> Abs.
>>> *Robson Ramos Barreto*
>>> IT / INFRASTRUCTURE ANALYST
>>> *Phone:* *+55 11 95239-3299*
>>> * E-mail:* *robson.rbarreto at gmail.com* <robson.rbarreto at gmail.com>
>>> * Skype:* *robson.rbarreto* <robson.rbarreto at gmail.com>
>>> * Find me on:* [image: http://br.linkedin.com/in/robsonrbarreto/]
>>> <http://br.linkedin.com/in/robsonrbarreto/>
>>>
>>> 2015-05-21 16:14 GMT-03:00 Girija Sharan <girijasharansingh at gmail.com>:
>>>
>>> Hi Robson,
>>>>
>>>> Thank you for your pointers, but I have already explored them and this
>>>> is not what I am looking for.
>>>> To convert to qcow2 format using qemu-img convert, I have to have
>>>> corresponding .img files of each VM. But I have running Xen Server VMs but
>>>> not their .img files. Because of this how can I convert them to qcow2
>>>> format.
>>>> I believe the problem is clear to all else let me know if you need more
>>>> inputs.
>>>> On May 22, 2015 12:27 AM, "Robson Ramos Barreto" <
>>>> robson.rbarreto at gmail.com> wrote:
>>>>
>>>>> Hi Girija,
>>>>>
>>>>> I think that you can convert image files from XenServer to KVM (qcow2):
>>>>> http://docs.openstack.org/image-guide/content/ch_converting.html
>>>>>
>>>>> Then you can create the image manually:
>>>>>
>>>>> http://docs.openstack.org/image-guide/content/ch_creating_images_manually.html
>>>>>
>>>>> You can also looking at:
>>>>> https://wiki.openstack.org/wiki/XenServer
>>>>>
>>>>> Hope this help
>>>>>
>>>>> Regards
>>>>>
>>>>> Abs.
>>>>> *Robson Ramos Barreto*
>>>>> IT / INFRASTRUCTURE ANALYST
>>>>> *Phone:* *+55 11 95239-3299*
>>>>> * E-mail:* *robson.rbarreto at gmail.com* <robson.rbarreto at gmail.com>
>>>>> * Skype:* *robson.rbarreto* <robson.rbarreto at gmail.com>
>>>>> * Find me on:* [image: http://br.linkedin.com/in/robsonrbarreto/]
>>>>> <http://br.linkedin.com/in/robsonrbarreto/>
>>>>>
>>>>> 2015-05-21 15:17 GMT-03:00 Bob Ball <bob.ball at citrix.com>:
>>>>>
>>>>>>  Hi Girija,
>>>>>>
>>>>>>
>>>>>>
>>>>>> I can’t help with converting XenServer VMs to KVM but can I ask why
>>>>>> running XenServer under your OpenStack cloud isn’t considered an option?
>>>>>>
>>>>>>
>>>>>>
>>>>>> Clearly there are some differences with VM setup (e.g. the VM may be
>>>>>> set up to use a specific disk name which won’t be present if you move to
>>>>>> use the virtio interface) that might make it difficult to move an existing
>>>>>> VM between any two hypervisors.  As such it may well be easier to use
>>>>>> XenServer in your OpenStack infrastructure?
>>>>>>
>>>>>>
>>>>>>
>>>>>> You could also have a mixed-hypervisor environment if that would meet
>>>>>> your requirements.
>>>>>>
>>>>>>
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>>
>>>>>>
>>>>>> Bob
>>>>>>
>>>>>>
>>>>>>
>>>>>> *From:* Girija Sharan [mailto:girijasharansingh at gmail.com]
>>>>>> *Sent:* 21 May 2015 06:26
>>>>>> *To:* openstack at lists.openstack.org
>>>>>> *Subject:* [Openstack] Running Xen VMs on Openstack
>>>>>>
>>>>>>
>>>>>>
>>>>>> HI All,
>>>>>>
>>>>>> It's urgent and a interesting one too.
>>>>>>
>>>>>> I have to run VMs from Xen Server on Openstack (with KVM).
>>>>>>
>>>>>> In detail it is like this :
>>>>>>
>>>>>> 1. I have a Xen Server and couple of large VMs (with GBs of data) are
>>>>>> running on that.
>>>>>>
>>>>>> 2. I have a Openstack multi-node setup with Nova configured to use
>>>>>> KVM-Qemu as a hypervisor.
>>>>>>
>>>>>> 3. Now I have to run those Xen VMs (as it is, without loosing any
>>>>>> data) on this Openstack setup.
>>>>>>
>>>>>> 4. I don't want to change Openstack configuration to let Nova use Xen
>>>>>> hypervisor instead of KVM.
>>>>>>
>>>>>> 5. I tried launching VMs on Openstack using images of VMs running on
>>>>>> Xen Server, but that is failing.
>>>>>>
>>>>>> What is the way to run Xen server's VMs on KVM machine (basically on
>>>>>> Openstack) ?
>>>>>>
>>>>>> What all I have to do to acheive this?
>>>>>>
>>>>>> Any quick help or guidance or pointers will be really appreciated.
>>>>>>
>>>>>> Thanks in advance. Waiting for early replies.
>>>>>>
>>>>>>
>>>>>>
>>>>>> Thanks and Regards,
>>>>>>
>>>>>> Girija Sharan Singh
>>>>>>
>>>>>> _______________________________________________
>>>>>> Mailing list:
>>>>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>>>>> Post to     : openstack at lists.openstack.org
>>>>>> Unsubscribe :
>>>>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>>>>>
>>>>>>
>>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20150522/faa1acd7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 518 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20150522/faa1acd7/attachment.jpe>


More information about the Openstack mailing list