Ask Your Question
0

Getting error when we create instance with VMDK file in ESXi hypervisor

asked 2014-02-14 09:34:34 -0600

anonymous user

Anonymous

Hi Guys,

we have successfully configured open stack controller with Hypervisor as ESXi and able to see hypervisor as below. root@controller:~/images# nova hypervisor-list +----+---------------------+ | ID | Hypervisor hostname | +----+---------------------+ | 4 | 10.37.39.46 | +----+---------------------+ root@controller:~/images#

when we create any instance with glance image RHEL vmdk file , we are getting error message in /var/log/nova/nova-compute.conf file;

2014-02-14 20:02:09.737 21400 AUDIT nova.compute.manager [req-d9e16955-13f0-464b-abab-0bd8c4e5b26d 4eb23b1eb90845e6a0f62ac1dafec739 57c7ad7709244d83b1b6b241140a88ff] [instance: 564e2398-a41c-449f-90a1-2d1120fc0316] Starting instance... 2014-02-14 20:02:10.071 21400 AUDIT nova.compute.claims [req-d9e16955-13f0-464b-abab-0bd8c4e5b26d 4eb23b1eb90845e6a0f62ac1dafec739 57c7ad7709244d83b1b6b241140a88ff] [instance: 564e2398-a41c-449f-90a1-2d1120fc0316] Attempting claim: memory 1024 MB, disk 10 GB, VCPUs 1 2014-02-14 20:02:10.071 21400 AUDIT nova.compute.claims [req-d9e16955-13f0-464b-abab-0bd8c4e5b26d 4eb23b1eb90845e6a0f62ac1dafec739 57c7ad7709244d83b1b6b241140a88ff] [instance: 564e2398-a41c-449f-90a1-2d1120fc0316] Total Memory: 4095 MB, used: 1536.00 MB 2014-02-14 20:02:10.072 21400 AUDIT nova.compute.claims [req-d9e16955-13f0-464b-abab-0bd8c4e5b26d 4eb23b1eb90845e6a0f62ac1dafec739 57c7ad7709244d83b1b6b241140a88ff] [instance: 564e2398-a41c-449f-90a1-2d1120fc0316] Memory limit: 6142.50 MB, free: 4606.50 MB 2014-02-14 20:02:10.072 21400 AUDIT nova.compute.claims [req-d9e16955-13f0-464b-abab-0bd8c4e5b26d 4eb23b1eb90845e6a0f62ac1dafec739 57c7ad7709244d83b1b6b241140a88ff] [instance: 564e2398-a41c-449f-90a1-2d1120fc0316] Total Disk: 94 GB, used: 10.00 GB 2014-02-14 20:02:10.073 21400 AUDIT nova.compute.claims [req-d9e16955-13f0-464b-abab-0bd8c4e5b26d 4eb23b1eb90845e6a0f62ac1dafec739 57c7ad7709244d83b1b6b241140a88ff] [instance: 564e2398-a41c-449f-90a1-2d1120fc0316] Disk limit not specified, defaulting to unlimited 2014-02-14 20:02:10.073 21400 AUDIT nova.compute.claims [req-d9e16955-13f0-464b-abab-0bd8c4e5b26d 4eb23b1eb90845e6a0f62ac1dafec739 57c7ad7709244d83b1b6b241140a88ff] [instance: 564e2398-a41c-449f-90a1-2d1120fc0316] Total CPU: 8 VCPUs, used: 1.00 VCPUs 2014-02-14 20:02:10.074 21400 AUDIT nova.compute.claims [req-d9e16955-13f0-464b-abab-0bd8c4e5b26d 4eb23b1eb90845e6a0f62ac1dafec739 57c7ad7709244d83b1b6b241140a88ff] [instance: 564e2398-a41c-449f-90a1-2d1120fc0316] CPU limit not specified, defaulting to unlimited 2014-02-14 20:02:10.074 21400 AUDIT nova.compute.claims [req-d9e16955-13f0-464b-abab-0bd8c4e5b26d 4eb23b1eb90845e6a0f62ac1dafec739 57c7ad7709244d83b1b6b241140a88ff] [instance: 564e2398-a41c-449f-90a1-2d1120fc0316] Claim successful 2014-02-14 20:02:12.850 21400 WARNING nova.virt.vmwareapi.driver [-] Task [CreateVM_Task] (returnval){ value = "haTask-ha-folder-vm-vim.Folder.createVm-487143598" _type = "Task" } status: error A specified parameter was not correct.

2014-02-14 20:02:12.851 21400 ERROR nova.compute.manager [req-d9e16955-13f0-464b-abab-0bd8c4e5b26d 4eb23b1eb90845e6a0f62ac1dafec739 57c7ad7709244d83b1b6b241140a88ff] [instance: 564e2398-a41c-449f-90a1-2d1120fc0316] Instance failed to spawn 2014-02-14 20:02:12.851 21400 TRACE nova.compute.manager [instance: 564e2398-a41c-449f-90a1-2d1120fc0316] Traceback (most recent call last): 2014-02-14 20:02:12.851 21400 TRACE nova.compute.manager [instance: 564e2398-a41c-449f-90a1-2d1120fc0316] File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1407, in _spawn 2014-02-14 20:02:12.851 21400 TRACE nova.compute.manager [instance: 564e2398-a41c-449f-90a1-2d1120fc0316] block_device_info) 2014-02-14 20:02:12.851 21400 TRACE nova.compute.manager [instance: 564e2398-a41c-449f-90a1-2d1120fc0316] File "/usr/lib/python2.7/dist-packages/nova/virt/vmwareapi/driver.py", line 186, in spawn 2014-02-14 20:02:12.851 21400 TRACE nova.compute.manager [instance: 564e2398-a41c-449f-90a1-2d1120fc0316] admin_password, network_info, block_device_info) 2014-02-14 20:02:12.851 21400 TRACE nova.compute.manager [instance: 564e2398-a41c-449f-90a1-2d1120fc0316] File "/usr/lib/python2.7/dist-packages/nova/virt/vmwareapi/vmops.py", line 261, in spawn 2014-02-14 20:02:12.851 21400 TRACE nova.compute.manager [instance: 564e2398-a41c-449f-90a1-2d1120fc0316] _execute_create_vm() 2014-02-14 20:02:12.851 21400 TRACE nova.compute.manager [instance: 564e2398-a41c-449f-90a1-2d1120fc0316] File "/usr/lib/python2.7/dist-packages/nova/virt/vmwareapi/vmops.py", line 257, in _execute_create_vm 2014-02-14 20:02:12.851 21400 TRACE nova.compute.manager [instance: 564e2398-a41c-449f-90a1-2d1120fc0316] self._session._wait_for_task(instance['uuid'], vm_create_task) 2014-02-14 20:02:12.851 21400 TRACE nova.compute.manager [instance: 564e2398-a41c-449f-90a1-2d1120fc0316] File "/usr/lib ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-02-14 11:34:43 -0600

I answered this question a while back ... here it is:

Starting at v0.12, Qemu-kvm has native support to VMware's disk images v6 (seems to be compatible with v7, used by VMware Server)

You will need to export as V7 or V6 then first to boot at the command line using KVM to test the image or you can directly upload it to OpenStack and try.

$ kvm -drive file=your_vmdk_filename_here.vmdk,boot=on

If that does not work look at the VMX config file and follow these instructions. http://www.linux-kvm.org/page/How_To_...

flat VMDK files should run fine I have version 7 running.

The other thing I would recommend is to convert it to QCOW2 Image, add the Cloud-Init drivers, Virt-IO drivers to make the Image cloud Aware for OpenStack. You have much more flexibility then.

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: 2014-02-14 09:34:34 -0600

Seen: 638 times

Last updated: Feb 14 '14