<div dir="ltr"><div><div>Thanks Brown, I was using same way as you did but always failed, not sure if it is caused by my image but the image does work for KVM before convert.<br><br></div>I will try your image later.<br><br>
</div>Thanks!<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-04-17 11:04 GMT+08:00 Eric Brown <span dir="ltr"><<a href="mailto:browne@vmware.com" target="_blank">browne@vmware.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><p>Good timing.  I just tried this today for the first time.</p><div>Here's what worked for me:</div>
<div><br></div><div><div style="font-size:14px">wget <a href="http://cloud-images.ubuntu.com/saucy/current/saucy-server-cloudimg-i386-disk1.img" target="_blank">http://cloud-images.ubuntu.com/saucy/current/saucy-server-cloudimg-i386-disk1.img</a></div>
<div style="font-size:14px"><br></div><div style="font-size:14px">qemu-img convert -f qcow2 saucy-server-cloudimg-i386-disk1.img -O vmdk saucy-server-cloudimg-i386-disk1.vmdk</div><div style="font-size:14px"><br></div><div style="font-size:14px">
glance image-create --name precise-cloud --is-public=True --container-format=bare --disk-format=vmdk --property vmware_disktype="sparse" --property vmware_adaptertype="ide" < saucy-server-cloudimg-i386-disk1.vmdk</div>
<div style="font-size:14px"><br></div><div style="font-size:14px">nova boot --config-drive=true --image saucy-cloud --flavor m1.small --poll saucy</div></div><br>
</div>
<br><div><div><div class="h5"><div>On Apr 16, 2014, at 6:36 PM, Jay Lau <<a href="mailto:jay.lau.513@gmail.com" target="_blank">jay.lau.513@gmail.com</a>> wrote:</div><br></div></div><blockquote type="cite"><div><div class="h5">

<div dir="ltr"><div><div>Hi,<br><br></div>Does anyone ever create VMWare image using 
"qemu-img convert" from a QCOW2 image? I did some test according to the 
following guide but the VM creation always failed.<br><br>
</div>I tried to logon to the console of the VM and found the console is reporting the VM was boot from PXE and no operating systems.<br><br>==============================<div>=<br><p style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;background-color:inherit;font-weight:normal;line-height:normal;text-transform:none;font-size:14px;white-space:normal;margin:5px 0px;font-family:微软雅黑;word-spacing:0px">


Using the<span> </span><code style="font-family:Monaco,Consolas,Courier,'Lucida Console',monospace;font-size:12px;line-height:16px;font-style:normal;background-color:inherit">qemu-img</code><span> </span>utility, disk images in several formats (such as, qcow2) can be converted to the VMDK format.</p>
<p style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;background-color:inherit;font-weight:normal;line-height:normal;text-transform:none;font-size:14px;white-space:normal;margin:5px 0px;font-family:微软雅黑;word-spacing:0px">


For example, the following command can be used to convert a<span> </span><a href="https://urldefense.proofpoint.com/v1/url?u=http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-amd64-disk1.img&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=2CQc966BQ6s3Cdd6nQ79uvWP17nF9g%2FX4m3XppGg1xQ%3D%0A&m=OuyW8RHPj7QHpDd93d%2FQQwJNpI%2F4XdkhvUGKMXnbw%2Bg%3D%0A&s=eb589ffb27d6ccf66a79f2ade5db63415db32882d1aa7392812035a6d3aa0a22" style="background-color:inherit" target="_blank">qcow2 Ubuntu Precise cloud image</a>:</p>


<pre style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;background-color:inherit;font-weight:normal;line-height:16px;text-transform:none;font-size:12px;font-family:Monaco,Consolas,Courier,'Lucida Console',monospace;word-spacing:0px">
$ qemu-img convert -f qcow2 ~/Downloads/precise-server-cloudimg-amd64-disk1.img \
-O vmdk precise-server-cloudimg-amd64-disk1.vmdk</pre><p style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;background-color:inherit;font-weight:normal;line-height:normal;text-transform:none;font-size:14px;white-space:normal;margin:5px 0px;font-family:微软雅黑;word-spacing:0px">


VMDK disks converted through<span> </span><code style="font-family:Monaco,Consolas,Courier,'Lucida Console',monospace;font-size:12px;line-height:16px;font-style:normal;background-color:inherit">qemu-img</code><span> </span>are
 always monolithic sparse VMDK disks with an IDE adapter type. Using the
 previous example of the Precise Ubuntu image after the<span> </span><code style="font-family:Monaco,Consolas,Courier,'Lucida Console',monospace;font-size:12px;line-height:16px;font-style:normal;background-color:inherit">qemu-img</code><span> </span>conversion, the command to upload the VMDK disk should be something like:</p>


<pre style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;background-color:inherit;font-weight:normal;line-height:16px;text-transform:none;font-size:12px;font-family:Monaco,Consolas,Courier,'Lucida Console',monospace;word-spacing:0px">
$ glance image-create --name precise-cloud --is-public=True \
--container-format=bare --disk-format=vmdk \
--property vmware_disktype="sparse" \
--property vmware_adaptertype="ide" < \
precise-server-cloudimg-amd64-disk1.vmdk<br><br>===============================<span><font color="#888888"><br></font></span></pre></div>-- <br><div dir="ltr"><div>Thanks,<br><br></div>Jay<br></div>
</div></div></div>
_______________________________________________<br>OpenStack-dev mailing list<br><a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.org</a><br><a href="https://urldefense.proofpoint.com/v1/url?u=http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=2CQc966BQ6s3Cdd6nQ79uvWP17nF9g%2FX4m3XppGg1xQ%3D%0A&m=OuyW8RHPj7QHpDd93d%2FQQwJNpI%2F4XdkhvUGKMXnbw%2Bg%3D%0A&s=f9ff1b7ad27552da9560a5d008cf6c5ad005402826712e2d477e3dc687044174" target="_blank">https://urldefense.proofpoint.com/v1/url?u=http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=2CQc966BQ6s3Cdd6nQ79uvWP17nF9g%2FX4m3XppGg1xQ%3D%0A&m=OuyW8RHPj7QHpDd93d%2FQQwJNpI%2F4XdkhvUGKMXnbw%2Bg%3D%0A&s=f9ff1b7ad27552da9560a5d008cf6c5ad005402826712e2d477e3dc687044174</a><br>
</blockquote></div><br></div><br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><div>Thanks,<br><br></div>Jay<br></div>
</div>