You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vote on this issue by adding a 👍 reaction to the original issue initial description to help the maintainers prioritize.
Do not leave "+1" or other comments that do not add relevant information or questions.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
Terraform
1.6.3
Terraform Provider
2.9.2
VMware vSphere
8.0.3
Description
I have a terraform script that performs a clone operation on a VMware template created with packer. In the terraform script I add two NICs to the existing VM (for a total of 3) and then configure IP information on all three.
What I see is that the new NICs in Rocky Linux are configured but duplicated:
I am running openvmtools on the system. It seems like network connections are getting created in two places:
The ens connections are created in /etc/sysconfig/network-scripts, and the "Vmware Customizations" connections are created in /etc/Network-Manager/system-connections
I don't think connections are supposed to be created in both locations and obviously, we don't want our NIC/connections named "VMware customization xxxx"
Is this a bug in the VMware terraform provider, openvmtools, Rocky Linux?
Affected Resources or Data Sources
resource/vsphere_virtual_machine
Terraform Configuration
Variable file:
variable "vsphere_user" {
type = string
default = "[email protected]"
}
variable "vsphere_password" {
type = string
description = "Terraform AD password"
}
variable "vm_template_name" {
type = string
description = "The template to clone to create the VM"
default = "ROCKY9"
}
variable "root_password" {
type = string
description = "Local linux root password"
}
variable vsphere_server {
type = string
description = "VMware Server DNS Name"
}
variable vsphere_datacenter {
type = string
description = "VMware Datacenter"
}
variable "vsphere_networks" {
type = map(string)
description = "A map of VM Networks for different NICs (e.g., nic1, nic2, nic3)"
}
variable vmware-hostnames {
type = map(string)
description = "List of VM Names"
}
variable datastores {
type = map(string)
description = "List of datastores"
}
variable vm_ips {
type = map(map(string))
description = "List of VM IPs"
}
variable vm-count {
description = "Number of VMs to create"
type = number
}
variable vsphere_resource_pool {
description = "VMware Resource Pool"
type = string
}
variable ipv4_netmasks {
description = "IPv4 Netmask"
type = map(number)
}
variable dns_server_list {
description = "DNS Server List"
type = list(string)
}
variable ipv4_gateway {
description = "IPv4 Gateway"
type = string
}
variable firmware {
description = "EFI or BIOS"
type = string
}
variable dns_domain {
description = "DNS Domain"
type = string
}
I am happy to provide this privately but not post debug output with sensitive information about our environment in a public place. Please let me know how I send this safely/securely.
Panic Output
No response
Expected Behavior
A single set of interfaces are connected and configured.
Actual Behavior
Multiple nics show up in nmtui or nmcli with different names but identical configs.
Steps to Reproduce
Run the above scripts
Environment Details
Rocky Linux 9.4
Open-VM-Tools 12.3.5
Screenshots
References
No response
The text was updated successfully, but these errors were encountered:
Community Guidelines
Terraform
1.6.3
Terraform Provider
2.9.2
VMware vSphere
8.0.3
Description
I have a terraform script that performs a clone operation on a VMware template created with packer. In the terraform script I add two NICs to the existing VM (for a total of 3) and then configure IP information on all three.
What I see is that the new NICs in Rocky Linux are configured but duplicated:
ens256
VMware customization ens256
ens224
VMware customization ens224
ens192
VMware customization ens192
I am running openvmtools on the system. It seems like network connections are getting created in two places:
The ens connections are created in /etc/sysconfig/network-scripts, and the "Vmware Customizations" connections are created in /etc/Network-Manager/system-connections
I don't think connections are supposed to be created in both locations and obviously, we don't want our NIC/connections named "VMware customization xxxx"
Is this a bug in the VMware terraform provider, openvmtools, Rocky Linux?
Affected Resources or Data Sources
resource/vsphere_virtual_machine
Terraform Configuration
Variable file:
Terraform script
Debug Output
I am happy to provide this privately but not post debug output with sensitive information about our environment in a public place. Please let me know how I send this safely/securely.
Panic Output
No response
Expected Behavior
A single set of interfaces are connected and configured.
Actual Behavior
Multiple nics show up in nmtui or nmcli with different names but identical configs.
Steps to Reproduce
Run the above scripts
Environment Details
Rocky Linux 9.4
Open-VM-Tools 12.3.5
Screenshots
References
No response
The text was updated successfully, but these errors were encountered: