Failed to create virtual machine... guest operating not supported

Hi All,

I’m using the role vmware_guest to create virtual machine in both vCenter environments: a Test and a Prod. This role use a template with CentOS 8 and it is the same on both vCenters.

All is running fine in Test but not in Prod.
I recevied the following error:

fatal: [x.x.x.x]: FAILED! => {“changed”: false, “msg”: “Failed to create a virtual machine : Customization of the guest operating system ‘otherGuest64’ is not supported in this configuration. Microsoft Vista ™ and Linux guests with Logical Volume Manager are supported only for recent ESX host and VMware Tools versions. Refer to vCenter documentation for supported configurations.”}

vCenter Version: 6.7.0.45000
Ansible Version: 2.9.10

I’ve tried to use the vmware_guest_id but nothing changed.

How can I troubleshooting this issue? In logs nothing special appends.
As someone seen already this problem?

Best regard,
H

Looks pretty much like your environments are not equal after all.
As the error says, it may be down to the ESX version and/tools version(s).
Are those recent enough in both environments?

Thanks for your reply. The vmware guy told me that both ESX are identical. Version 6.7
The error message show that: …the guest operating system ‘otherGuest64’ is wrong.
Do you know where this value is configured? I can’t find it in ESX or in template?

Best regards,
H

No, but it seems a VMware/ESX/etc configuration issue, and not an ansible one.
Just to make sure - what does your ansible playbook look like?

guest_id defines this value. You can check the documentation here - https://github.com/ansible-collections/community.vmware/blob/main/docs/community.vmware.vmware_guest_module.rst.

Also, like Dick said please share your playbook.

Thanks for your help. You’ll right the issue was on ESX. After some research I’ve seen that an option was not configured in ESX CentOS template. Now, it’s fine and running well.

Thanks and best regards,
H