Search the VMware Knowledge Base (KB)
View by Article ID

VIO meta-data of vmware:hw_version on flavor or vmware_hw_version on images fails with "A component of the virtual machine is not accessible on the host" (2150711)

  • 0 Ratings

Symptoms

Specifying the hardware version in either the flavor with vmware:hw_version or in the image with vmware_hw_version succeeds but the resulting instance deployment fails.The meta-data of vmware:hw_version on flavor or vmware_hw_version on images fails with "A component of the virtual machine is not accessible on the host"

e.g.
glance image-create --name cirroshw10 --disk-format=vmdk --container-format=bare --property vmware_hw_version=10 < ./cirros.raw


When trying to create the instance it fails with the following error in the controller /var/log/nova/nova-scheduler logs:
 
2017-06-30 09:42:19.377 1949 ERROR nova.scheduler.utils [req-699f9c78-2f37-48d5-b7ce-84d262dac638 user c575b13d15f24e4381fa7fb173375e43 - - -] [instance: dd5d1252-be06-4c2a-95c4-b90c117c8847] Error from last host: compute01 (node domain-c247.71be5830-4385-4d3a-824f-fba4c5ce81cd): [u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2287, in _do_build_and_run_instance\n    filter_properties)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2434, in _build_and_run_instance\n    instance_uuid=instance.uuid, reason=six.text_type(e))\n', u"RescheduledException: Build of instance dd5d1252-be06-4c2a-95c4-b90c117c8847 was re-scheduled: A component of the virtual machine is not accessible on the host.\nFaults: ['Text']\n"]


At the same time in the /var/log/nova/nova-compute log node you see the following (shortened stack trace shown here):

2017-06-30 09:42:19.377 1298 ERROR nova.compute.manager [req-699f9c78-2f37-48d5-b7ce-84d262dac638 user c575b13d15f24e4381fa7fb173375e43 - - -] [instance: dd5d1252-be06-4c2a-95c4-b90c117c8847] Instance failed to spawn
2017-06-30 09:42:19.377 1298 TRACE nova.compute.manager [instance: dd5d1252-be06-4c2a-95c4-b90c117c8847] Traceback (most recent call last):

2017-06-30 09:42:19.377 1298 TRACE nova.compute.manager [instance: dd5d1252-be06-4c2a-95c4-b90c117c8847] raise task_ex
2017-06-30 09:42:19.377 1298 TRACE nova.compute.manager [instance: dd5d1252-be06-4c2a-95c4-b90c117c8847] VimFaultException: A component of the virtual machine is not accessible on the host.


While at the same time in the /etc/vmware/vpxd log on the vCenter Server you see the following error (shortened Args):

2017-06-21T09:42:15.777Z info vpxd[7FE77CB00700] [Originator@6876 sub=vpxLro opID=6bb83fe2] [VpxLRO] -- BEGIN task-2031589 -- group-v153021 -- vim.Folder.createVm -- 41b2df01-fbd4-3f94-713d-4f4ee6895986(413874c3-4d71-609d-d8ba-850499ccb1d7)
2017-06-21T09:42:15.777Z warning vpxd[7FE77CB00700] [Originator@6876 sub=MoEnvBrowser opID=6bb83fe2] [EnvBrowserMo::QueryConfigOption]: can not find option descriptor for key 10
2017-06-21T09:42:15.778Z warning vpxd[7FE77CB00700] [Originator@6876 sub=MoEnvBrowser opID=6bb83fe2] [EnvBrowserMo::QueryConfigOption]: can not find option descriptor for key 10
2017-06-21T09:42:15.778Z warning vpxd[7FE77CB00700] [Originator@6876 sub=MoEnvBrowser opID=6bb83fe2] [EnvBrowserMo::QueryConfigOption]: can not find option descriptor for key 10
2017-06-21T09:42:15.784Z info vpxd[7FE77CB00700] [Originator@6876 sub=vpxLro opID=6bb83fe2] [VpxLRO] -- FINISH task-2031589
2017-06-21T09:42:15.784Z info vpxd[7FE77CB00700] [Originator@6876 sub=Default opID=6bb83fe2] [VpxLRO] -- ERROR task-2031589 -- group-v153021 -- vim.Folder.createVm: vim.fault.CannotAccessVmComponent:
--> Result:
--> (vim.fault.CannotAccessVmComponent) {
--> faultCause = (vmodl.MethodFault) null,
--> msg = ""
--> }
--> Args:
-->
--> Arg config:
--> (vim.vm.ConfigSpec) {
--> changeVersion = ,
--> name = "dd5d1252-be06-4c2a-95c4-b90c117c8847",
--> version = "10",
--> uuid = ,
--> instanceUuid = "dd5d1252-be06-4c2a-95c4-b90c117c8847",



Cause

This occurs if you have only entered "10" for the hardware version.

Resolution

VIO is working as designed and error is encountered due to incorrect syntax. The correct syntax for the flavor 'vmware:hw_version' and image 'vmware_hw_version' is "vmx-10"

e.g. glance image-create --name cirroshw10 --disk-format=vmdk --container-format=bare --property vmware_hw_version=vmx-10 < ./cirros.raw

Additional Information

If you are using a mixture of older ESXi versions e.g. ESXi 5.5 you may also be encounter the issue outlined in the 3.1 release notes if you attempt to use images with vmx version less than 10:
https://docs.vmware.com/en/VMware-Integrated-OpenStack/3.1/rn/vmware-integrated-openstack-31-release-notes.html
"Images must be VMX version 10 or greater."

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.

Feedback

  • 0 Ratings

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.

What can we do to improve this information? (4000 or fewer characters)




Please enter the Captcha code before clicking Submit.
  • 0 Ratings
Actions
KB: