How do I boot Ubuntu Cloud images in vmware?
Posted
by
Graham
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Graham
Published on 2012-06-20T09:16:03Z
Indexed on
2012/06/20
9:24 UTC
Read the original article
Hit count: 359
I want to run an Ubuntu cloud image on on VMWare.
I've gotten pretty far but want to know how to set the OVF properties in a way that VMWare understands in order to pass parameters to cloud-init.
This is what I've done:
- Install VMWare Player 4.0.4, using the vmware workstation 8.0.2 / player 4.0.2 fix for linux 3.2+ patch to get around the compilation failure for virtual ethernet module.
- Download precise-server-cloudimg-amd64.ovf, and also the QCOW2 .img file (220MB)
- Run
qemu-img convert -O vmdk precise-server-cloudimg-amd64-disk1.img precise-server-cloudimg-amd64-disk1.vmdk
to convert the image from QCOW2 to VMDK - Edit the OVF to change the extension and ovf:size on the
<File>
element and setovf:format="http://www.vmware.com/interfaces/specifications/vmdk.html#sparse"
on the<Disk>
element. - Edit the OVF to remove all the
<Property>
elements because vmplayer was complaining about unrecognised elements. - Run the OVF in vmplayer. Alternatively, run ovftool to convert to vmx and run the vmx.
Unfortunately I can't log in as "ubuntu" at the prompt because the OVF properties haven't been provided to cloud-init. How should I do this?
© Ask Ubuntu or respective owner