Ask Your Question
0

VMWare vCenter: glance / nova and thin provisioning

asked 2015-04-23 15:28:14 -0500

manuelfelipe gravatar image

Hi,

I'm still trying to figure out if thin provisioning is actually supported or not when using OpenStack (Juno or Kilo, tried both) and the VMWare drivers pointing to vCenter. All my attempts of creating a Glance image end up with a new VM (functional) but with a Tick provisioned lazy zeroed instead of thin which is what i'm trying to get.

A summary of what I'm doing:

$ wget https://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img
$ qemu-img convert -f qcow2 -O vmdk trusty-server-cloudimg-amd64-disk1.img trusty-server.vmdk

My first attempt just after the qemu convertion:

glance image-create --name trusty-server-amd64-converted --progress --is-public True \
--container-format bare --disk-format vmdk --property hypervisor_type="vmware" \
--property vmware_disktype="thin" --property vmware_adaptertype="lsiLogic" \
--property vmware_linked_clone="true" < trusty-server.vmdk

Creating a new instance with Nova works fine, but I get the thick provisioned drive.

Tried Also converting the (already converted) vmdk using vmkfstoolsas suggested in https://wiki.openstack.org/wiki/NovaVMware/DeveloperGuide (https://wiki.openstack.org/wiki/NovaV...)

vmkfstools -i trusty-server.vmdk converted.vmdk 
# copied again the converted-flat.vmdk back to my client
glance image-create --name trusty-server-amd64-converted --progress --is-public True \
--container-format bare --disk-format vmdk --property hypervisor_type="vmware" \
--property vmware_disktype="thin" --property vmware_adaptertype="lsiLogic" \
--property vmware_linked_clone="true" < converted-flat.vmdk

Tried again creating the instance, but still getting the same result.

Don't know what I'm missing here.

Does someone actually have this working with thin provisioned instances ? or the only functional option for now is tick provisioning ?

Thanks for your help

edit retag flag offensive close merge delete

Comments

No, thin provisioning of instances in OS VMware driver is not supported yet.

acbharadwaj gravatar imageacbharadwaj ( 2016-07-27 05:04:02 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-05-09 05:28:37 -0500

sunnyarora gravatar image

Can you check with below two different approach by adding properties for same image, these can have two tests for the same image and may be able to boot in thin provisioning.

glance image-update --property vmware_adaptertype="ide" --property vmware_ostype="ubuntu64Guest" <image-id>

and also check with

glance image-update --property vmware_adaptertype="lsiLogicsas" --property vmware_ostype="ubuntu64Guest" <image-id>

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-04-23 15:28:14 -0500

Seen: 424 times

Last updated: Apr 23 '15