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
Can't set static IP address in vsphere_virtual_machine #228
Comments
Hey @mas9612, sorry for the delay in getting back to you. To help troubleshoot customization issues, you can check the following file: Thanks! |
Thank you, I checked
It seems that network configuration by VMWare Tools is working (I think). I'll continue to investigate this issue. Thank you, |
Thanks @mas9612, We have a new version of the resource going in that makes customization a lot more explicit and might help with this. Also, if you are still having issues, you might want to check for CentOS related issues on open-vm-tools and see if any of those match the problem you are experiencing. If you have any updates let me know! |
This is likely resolved with the new |
Hello,
I'm using Terraform and vSphere provider to create virtual machine on ESXi.
I want to set static IP address to created machine, but it seems that my config is not working.
Please help me!
Used VM Template
yum install open-vm-tools
)(I'm new to Terraform, I'm sorry if I missed past issue related this problem)
Terraform Version
Terraform v0.10.8
vSphere Provider Version
v0.4.2
Affected Resource(s)
vsphere_virtual_machine
Terraform Configuration Files
Expected Behavior
Created VM IP address is set to
10.1.240.123
(as same as I set in tf)Similarly, in terraform.tfstate,
network_interface.0.ipv4_address
will be set to10.1.240.123
terraform.tfstate
Actual Behavior
VM IP address is different in tf (it seems address is served by DHCP)
terraform.tfstate
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: