<div dir="ltr"><p>Sure<br></p><p>But, The <span><b>qemu-img convert</b></span> command can do conversion between multiple
formats, including qcow2, QED, raw, VDI (VirtualBox), VHD (Hyper-V), and VMDK (VMware).</p><table rules="all"><caption>Table 7.1. qemu-img format strings</caption><thead><tr>
<th>Image format</th>
<th>Argument to qemu-img</th>
</tr></thead><tbody><tr>
<td>qcow2 (KVM, Xen)</td>
<td><code>qcow2</code></td>
</tr><tr>
<td>QED (KVM)</td>
<td><code>qed</code></td>
</tr><tr>
<td>raw</td>
<td><code>raw</code></td>
</tr><tr>
<td>VDI (VirtualBox)</td>
<td><code>vdi</code></td>
</tr><tr>
<td>VHD (Hyper-V)</td>
<td><code>vpc</code></td>
</tr><tr>
<td>VMDK (VMware)</td>
<td><code>vmdk</code></td>
</tr></tbody></table><div class="gmail_extra"><br><p>This example will convert a VMDK image file to a qcow2 image file:
</p><pre class="">$ qemu-img convert -f vmdk -O qcow2 centos7.vmdk centos7.qcow2</pre>You just need to change to XenServer format, right ?<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Regards<br clear="all"></div><div class="gmail_extra"><div><div><div dir="ltr"><div><div dir="ltr"><p style="color:rgb(0,0,0);font-family:"Lucida Grande",Verdana,Arial,Helvetica,sans-serif;font-size:12px">
Abs.</p></div></div>
<div dir="ltr"><b style="color:rgb(143,143,143);font-family:Arial">Robson Ramos Barreto</b><font face="Arial" color="#4181c0" size="1"><b><br></b></font></div><div><span style="color:rgb(80,0,80);font-family:Arial;font-size:x-small">IT / INFRASTRUCTURE ANALYST</span></div>
<div dir="ltr"><font face="Arial" color="#4181c0" size="1"><b>Phone:</b></font><font face="Arial" color="#5f5f5f" size="1"> </font><font style="font-family:arial,sans-serif;font-size:13px" color="blue"><u><a value="+5511952393299">+55 11 95239-3299</a></u></font><font face="Arial" color="#4181c0" size="1"><b><br>
E-mail:</b></font><font face="Arial" color="#5f5f5f" size="1"> </font><a href="mailto:robson.rbarreto@gmail.com" style="font-family:arial,sans-serif;font-size:13px" target="_blank"><font face="Arial" color="#5f5f5f" size="1"><u>robson.rbarreto@gmail.com</u></font></a><font face="Arial" color="#4181c0" size="1"><b><br>
Skype:</b></font><font face="Arial" color="#5f5f5f" size="1"> </font><a href="mailto:robson.rbarreto@gmail.com" style="font-family:arial,sans-serif;font-size:13px" target="_blank"><font face="Arial" color="blue" size="1"><u>robson.rbarreto</u></font></a><font face="Arial" color="#5f5f5f" size="1"> </font><font face="Arial" color="#4181c0" size="1"><b><br>
Find me on:</b></font><font face="Arial" color="#5f5f5f" size="1"> </font><a href="http://br.linkedin.com/in/robsonrbarreto/" style="font-family:arial,sans-serif;font-size:13px" target="_blank"><img src="cid:_2_0E4E0BFC0E4DFE90006C3EE283257CA9" alt="http://br.linkedin.com/in/robsonrbarreto/" style="border: 0px solid;" height="16" width="16"></a><font face="Arial" color="#5f5f5f" size="1"> <br></font></div></div></div></div>
<br><div class="gmail_quote">2015-05-21 16:14 GMT-03:00 Girija Sharan <span dir="ltr"><<a href="mailto:girijasharansingh@gmail.com" target="_blank">girijasharansingh@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p dir="ltr">Hi Robson,</p>
<p dir="ltr">Thank you for your pointers, but I have already explored them and this is not what I am looking for.<br>
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.<br>
I believe the problem is clear to all else let me know if you need more inputs.</p><div><div>
<div class="gmail_quote">On May 22, 2015 12:27 AM, "Robson Ramos Barreto" <<a href="mailto:robson.rbarreto@gmail.com" target="_blank">robson.rbarreto@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Girija,<br><br>I think that you can convert image files from XenServer to KVM (qcow2):<br><a href="http://docs.openstack.org/image-guide/content/ch_converting.html" target="_blank">http://docs.openstack.org/image-guide/content/ch_converting.html</a><br><br>Then you can create the image manually:<br><a href="http://docs.openstack.org/image-guide/content/ch_creating_images_manually.html" target="_blank">http://docs.openstack.org/image-guide/content/ch_creating_images_manually.html</a><br><br>You can also looking at:<br><a href="https://wiki.openstack.org/wiki/XenServer" target="_blank">https://wiki.openstack.org/wiki/XenServer</a><br><br>Hope this help<br><br>Regards<br><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)"></span><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)"></span><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr"><div><div dir="ltr"><p style="color:rgb(0,0,0);font-family:"Lucida Grande",Verdana,Arial,Helvetica,sans-serif;font-size:12px">
Abs.</p></div></div>
<div dir="ltr"><b style="color:rgb(143,143,143);font-family:Arial">Robson Ramos Barreto</b><font face="Arial" color="#4181c0" size="1"><b><br></b></font></div><div><span style="color:rgb(80,0,80);font-family:Arial;font-size:x-small">IT / INFRASTRUCTURE ANALYST</span></div>
<div dir="ltr"><font face="Arial" color="#4181c0" size="1"><b>Phone:</b></font><font face="Arial" color="#5f5f5f" size="1"> </font><font style="font-family:arial,sans-serif;font-size:13px" color="blue"><u><a value="+5511952393299">+55 11 95239-3299</a></u></font><font face="Arial" color="#4181c0" size="1"><b><br>
E-mail:</b></font><font face="Arial" color="#5f5f5f" size="1"> </font><a href="mailto:robson.rbarreto@gmail.com" style="font-family:arial,sans-serif;font-size:13px" target="_blank"><font face="Arial" color="#5f5f5f" size="1"><u>robson.rbarreto@gmail.com</u></font></a><font face="Arial" color="#4181c0" size="1"><b><br>
Skype:</b></font><font face="Arial" color="#5f5f5f" size="1"> </font><a href="mailto:robson.rbarreto@gmail.com" style="font-family:arial,sans-serif;font-size:13px" target="_blank"><font face="Arial" color="blue" size="1"><u>robson.rbarreto</u></font></a><font face="Arial" color="#5f5f5f" size="1"> </font><font face="Arial" color="#4181c0" size="1"><b><br>
Find me on:</b></font><font face="Arial" color="#5f5f5f" size="1"> </font><a href="http://br.linkedin.com/in/robsonrbarreto/" style="font-family:arial,sans-serif;font-size:13px" target="_blank"><img src="cid:_2_0E4E0BFC0E4DFE90006C3EE283257CA9" alt="http://br.linkedin.com/in/robsonrbarreto/" style="border: 0px solid;" height="16" width="16"></a><font face="Arial" color="#5f5f5f" size="1"> <br></font></div></div></div></div>
<br><div class="gmail_quote">2015-05-21 15:17 GMT-03:00 Bob Ball <span dir="ltr"><<a href="mailto:bob.ball@citrix.com" target="_blank">bob.ball@citrix.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div link="#0563C1" vlink="#954F72" lang="EN-GB">
<div>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)">Hi Girija,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)">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?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)">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?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)">You could also have a mixed-hypervisor environment if that would meet your requirements.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)">Thanks,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)">Bob<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11pt;font-family:"Calibri",sans-serif" lang="EN-US">From:</span></b><span style="font-size:11pt;font-family:"Calibri",sans-serif" lang="EN-US"> Girija Sharan [mailto:<a href="mailto:girijasharansingh@gmail.com" target="_blank">girijasharansingh@gmail.com</a>]
<br>
<b>Sent:</b> 21 May 2015 06:26<br>
<b>To:</b> <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
<b>Subject:</b> [Openstack] Running Xen VMs on Openstack<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12pt">HI All,<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12pt">It's urgent and a interesting one too.<u></u><u></u></p>
</div>
<p class="MsoNormal">I have to run VMs from Xen Server on Openstack (with KVM).<u></u><u></u></p>
</div>
<p class="MsoNormal">In detail it is like this :<u></u><u></u></p>
</div>
<p class="MsoNormal">1. I have a Xen Server and couple of large VMs (with GBs of data) are running on that.<u></u><u></u></p>
</div>
<p class="MsoNormal">2. I have a Openstack multi-node setup with Nova configured to use KVM-Qemu as a hypervisor.<u></u><u></u></p>
</div>
<p class="MsoNormal">3. Now I have to run those Xen VMs (as it is, without loosing any data) on this Openstack setup.<u></u><u></u></p>
</div>
<p class="MsoNormal">4. I don't want to change Openstack configuration to let Nova use Xen hypervisor instead of KVM.<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12pt">5. I tried launching VMs on Openstack using images of VMs running on Xen Server, but that is failing.<u></u><u></u></p>
</div>
<p class="MsoNormal">What is the way to run Xen server's VMs on KVM machine (basically on Openstack) ?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12pt">What all I have to do to acheive this?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Any quick help or guidance or pointers will be really appreciated.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks in advance. Waiting for early replies.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks and Regards,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Girija Sharan Singh<u></u><u></u></p>
</div>
</div>
</div>
</div>
<br>_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div><br></div></div>
</blockquote></div>
</div></div></blockquote></div><br></div></div>