Ask Your Question

vmware vmdk error "file not found" on NFS share

asked 2014-09-25 00:41:22 -0600

Qiang gravatar image

updated 2014-09-30 10:40:47 -0600

smaffulli gravatar image

We are using nova of ICEHOUSE on Ubuntu14.04 working with Vmware vCenter 5.5, when we tried to exec:

 root@compute-vmware:~#nova boot --flavor m1.small --image ubuntu-meeting-vmware --nic net-id=0125ea7e-9b7c-41e1-b808-f6e80b6f8339 --key-name demo-key --availability-zone az-vmware vmware-vm-vlan4-51

compute-vmware IP is, nfs- is our NFS server

We are facing following error in /var/log/nova/nova-compute.log:

2014-09-25 12:58:00.701 DEBUG nova.openstack.common.lockutils [req-88c46570-31b8-44d9-9d28-cd713a32befb demo demo] Got file lock "[nfs-]" at /var/lib/nova/nova-vmware-ts-[nfs-] lock /usr/lib/python2.7/dist-packages/nova/openstack/common/
2014-09-25 12:58:01.257 27013 WARNING nova.virt.vmwareapi.driver [-] Task [SearchDatastore_Task] (returnval){
   value = "session[b9c8b6c0-879d-f3a2-70b6-16bd320e7f82]52d1c9fc-e7ba-e1a4-893b-ba84a028ad95"
   _type = "Task"
 } status: error File [nfs-] was not found
2014-09-25 12:58:01.258 DEBUG nova.openstack.common.lockutils [req-88c46570-31b8-44d9-9d28-cd713a32befb demo demo] Released file lock "[nfs-]" at /var/lib/nova/nova-vmware-ts-[nfs-] lock /usr/lib/python2.7/dist-packages/nova/openstack/common/
2014-09-25 12:58:01.259 DEBUG nova.virt.vmwareapi.ds_util [req-88c46570-31b8-44d9-9d28-cd713a32befb demo demo] Creating directory with path [nfs-] mkdir /usr/lib/python2.7/dist-packages/nova/virt/vmwareapi/
2014-09-25 12:58:01.297 DEBUG nova.virt.vmwareapi.ds_util [req-88c46570-31b8-44d9-9d28-cd713a32befb demo demo] Created directory with path [nfs-] mkdir /usr/lib/python2.7/dist-packages/nova/virt/vmwareapi/

I am confused, why the image debian-2.6.32-i686.vmdk, cirros-0.3.1-i386-disk.vmdk can be used to create instance in vCenter of Vmware, others vmdk image can't?

That means that we can create instance with debian-2.6.32-i686.vmdk, cirros-0.3.1-i386-disk.vmdk, but can't with other images.

We tried upload the image into glance:

$ glance image-create name="ubuntu-thick-scsi" disk_format=vmdk \
container_format=bare is_public=true \
--property vmware_adaptertype="lsiLogic" \
--property vmware_disktype="preallocated" \
--property vmware_ostype="ubuntu64Guest" < ubuntuLTS-flat.vmdk

glance image-create --name ubuntu-meeting-vmware --container-format=bare --disk-format=vmdk \
--property vmware_disktype="thin" \
--property hypervisor_type="vmware" \
--property vmware_adaptertype="ide" \
--progress --is-public=True < ubuntu-meeting-flat.vmdk

glance image-create --name ubuntu12.04-i386-vmware  --is-public=True --container-format=bare --disk-format=vmdk --property vmware_disktype="preallocated" --property hypervisor_type="vmware" --progress < /root/images/ubuntu12.04-i386.vmdk

glance image-create --name cirros_vmdk_prop2 --container-format=bare \
--disk-format=vmdk --property vmware_disktype="sparse" \
--property hypervisor_type="vmware" \
--is-public=true --progress \
--property vmware_adaptertype="ide" < cirros-0.3.1-i386-disk.vmdk

glance image-create --name precise-server-vmware --container-format=bare \
--disk-format=vmdk --property vmware_disktype="sparse" \
--property hypervisor_type="vmware" \
--is-public=true --progress \
--property vmware_adaptertype="ide" < precise-server-cloudimg-i386.vmdk

glance image-create --name ubuntu12.04-i386-vmware --container-format=bare \
--disk-format=vmdk --property vmware_disktype="sparse" \
--property hypervisor_type="vmware" \
--is-public=true --progress \
--property vmware_adaptertype="ide" < /root/images/ubuntu12.04-i386.vmdk

glance image-create --name ubuntu12.04-i386-vmware --container-format=bare \
--disk-format=vmdk --property vmware_disktype="preallocated" \
--property hypervisor_type="vmware" \
--is-public=true --progress \
--property vmware_adaptertype="scsi" < /root/images/ubuntu12.04-i386.vmdk

Any tips would be appreciated.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-09-30 02:09:48 -0600

Vinoth gravatar image

updated 2014-09-30 10:07:45 -0600

smaffulli gravatar image

This command worked for me.

 $ glance image-create --name ubuntuqcow --is-public=True --container-format=bare --disk-format=vmdk --property vmware-disktype="sparse" --property vmware-adaptertype="ide" --property hypervisor_type="vmware"  < ubuntuqcow.vmdk

Here ubuntuqcow.vmdk is the image I created by my own using KVM which was in qcow2 format. Then I converted it into vmdk format using the following command:

$ qemu-img convert -f qcow2 ubuntuqcow2.img -O vmdk ubuntuqcow.vmdk
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


Asked: 2014-09-25 00:41:22 -0600

Seen: 687 times

Last updated: Sep 30 '14