Vmware will create vm with disk image *.vmdk , first locate the file (you can do this by selecting the setting of corresponding vm and select "Hard Disk(scsi) or usualy it will be in "Virtual Machine" folder created during vmware installation)
Then copy the file in to your openstack cloud system (you can use scp for this).
glance add -A <admin_password> name="<image name>" is_public=true container_format=bare disk_format=vmdk < myvm.vmdk
NOTE : change
<admin_password> = your glance admin password
<image name> = name of image , this name will be shown in your dashboard after you upload
myvm.vmdk = your virtual machine name .vmdk(the file which you coppied)
Another method you may think of is using ova and ovf which you can create by using vmware export option . But you can not add .ova file in your openstack cloud since it is not support by glance. And you can not add *.ovf which is created by vmware because current vmwareapi driver of nova supports only thick flat vmdk disk so you can only add *.vmdk file
(I conformed by asking it in openstack group at launchpad.net https://answers.launchpad.net/glance/+question/178944 )
In case of VirtualBox it create vm with disk image *.vdi as default. Locate it and copy to your openstack cloud system
glance add -A <admin_password> name="<image name>" is_public=true container_format=bare disk_formate=vdi < myvm.vdi
NOTE : change
<admin_password> - your glance admin password
<image name> - name of image , this name will be shown your dashboard after you apploaded
myvm.vdi - your virtual machine name .vmdk(the file which you coppied)
Thank you all..