<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div apple-content-edited="true"><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">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 class="Apple-interchange-newline">
</div>
<br><div><div>On Apr 16, 2014, at 6:36 PM, Jay Lau <<a href="mailto:jay.lau.513@gmail.com">jay.lau.513@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<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 class=""><font color="#888888"><br></font></span></pre></div>-- <br><div dir="ltr"><div>Thanks,<br><br></div>Jay<br></div>
</div>
_______________________________________________<br>OpenStack-dev mailing list<br><a href="mailto:OpenStack-dev@lists.openstack.org">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">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></body></html>