To be able to use vSphere advanced options in VIO, we have to modify glance image metadata or flavor extra_specs before launching instance.
Depending on the VIO version, some configuration may be possible by using Horizon or CLI tools as well as API calls.
Options available in the vSphere extra_config can be configured in VIO.
Examples of vSphere VM Options that can be used:
- IOPS Limit
- disk.EnableUUID
- Cores per socket
- HT operation
- CPU or Memory reservation
- CPU or Memory Limit
- Latency sensitivity
Use of options may vary depending on version of vSphere and of the configuration of VM itself. Please, for additional details on available options and their usage consult documentation relative to your applicable vSphere version.
Options can be configured in nova flavor metadata or in glance image metadata. Please be aware that any Properties defined in an Glance image take precedence.
Nova flavor examples:
nova flavor-key pub1.small set vmware:extra_config='{"disk.EnableUUID":"TRUE"}'
nova flavor-key ########-####-####-####-############ set vmware:extra_config='{"numa.vcpu.preferHT": "TRUE", "cpuid.coresPerSocket": "2"}'
Important: The value of extra_config (for example {"disk.EnableUUID":"TRUE"}) has to be in json format. If unsure of the formatting use json validator to verify before configuring the option.
To verify the config of flavor in command line run command:
nova flavor-list --extra-specs
The output for flavors with extra_config parameter should look like this:
| 2 | m1.small | 2048 | 20 | 0 | | 1 | 1.0 | True | {u'vmware:extra_config': u'{"disk.EnableUUID":"TRUE"}'} |
Glance image examples:
The value has to be the json in this case.
openstack image set --property vmware_extra_config='{"disk.EnableUUID":"TRUE"}'
glance image-update --property vmware_adaptertype=lsiLogicsas
glance image-update --property hw_vif_model=VirtualVmxnet3
To verify glance image metadata configuration run command:
glance image-show ########-####-####-####-############
Where ########-####-####-####-############ is ID of the image.