-
Notifications
You must be signed in to change notification settings - Fork 452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: Customization of the guest operating system is not supported due to the given reason: Tools is not installed in the GuestOS. #2269
Comments
Hello, jbl9999! 🖐 Thank you for submitting an issue for this provider. The issue will now enter into the issue lifecycle. If you want to contribute to this project, please review the contributing guidelines and information on submitting pull requests. |
Is open-vm-tools running? |
Of course vmtoolsd service was running |
Since this is CentOS, is Perl installed along with open-vm-tools? Can you confirm that customization w/o Terraform works? |
Yes Perl is installed. |
See if you get the same error with the template using the vSphere UI. |
As explained in ticket : "If I use Vsphere UI to create VM from template, it works, and i can check that open-vm-tools is well installed" |
Mind confirming by using: resource "vsphere_virtual_machine" "vm" {
name = "terraform-test"
# ... other configuration ...
guest_id = data.vsphere_virtual_machine.template.guest_id
firmware = data.vsphere_virtual_machine.template.firmware
# ... other configuration ...
} |
I'll test it tomorrow, keep you informed |
It doesn' work with firmware option, same behavior. |
What about guest_id? I assume it's a match with the template? |
Yes it is guest_id = "centos7_64Guest" |
Community Guidelines
Terraform
1.9.6
Terraform Provider
2.9.2
VMware vSphere
7.0.3
Description
When using the vSphere Terraform provider (2.9.2) to deploy VM from template created by packer (1.11.2), i got the following error 👍
Customization of the guest operating system is not supported due to the given reason: Tools is not installed in the GuestOS. Please install the latest version of open-vm-tools or VMware Tools to enable GuestCustomization.
I use kickstart to build VM template and open-vm-tools has been added into, and it is the same behavior.
If I use Vsphere UI to create VM from template, it works, and i can check that open-vm-tools is well installed.
I also notice that perl package has been installed from kickstart.
Affected Resources or Data Sources
resource/vm
Terraform Configuration
Debug Output
I can't link the debug GitHub log since it's not connected to the internet, but the message is explained above :
Panic Output
No response
Expected Behavior
VM created as expected
Actual Behavior
VM destroyed
Steps to Reproduce
As mentionned.
Environment Details
No response
Screenshots
No response
References
No response
The text was updated successfully, but these errors were encountered: