NIC does not connect when template is used #2581
-
Code of Conduct
Terraform3.2.4 Terraform Provider2.14.2 VMware vSphere7.0.3.01100 DescriptionThe network interface does not come up automatically when I try to create a VM via Terraform. Affected Resources or Data SourcesVersion vCenter 7.0.3.01100. The template itself definitely works and has the network adapter enabled—I verified this by cloning the VM manually through vCenter. Terraform Configurationmain.tf.txt Similar problem, but the solution below did not help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It turned out that Ubuntu 24.04 did not have the hwclock console utility. This is very strange and is not documented anywhere on the Internet. And also in the log /var/log/vmware-imc/toolsDeployPkg.log it is not even mentioned. In the template you need to run: After that, the network card comes up correctly. Question. How are we going to deal with this? Because this is not normal. In fact, this is a bug to some extent. |
Beta Was this translation helpful? Give feedback.
It turned out that Ubuntu 24.04 did not have the hwclock console utility.
Therefore, the script did not work and the network card did not come up.
This is very strange and is not documented anywhere on the Internet. And also in the log /var/log/vmware-imc/toolsDeployPkg.log it is not even mentioned.
In the template you need to run:
sudo apt update
sudo apt install -y util-linux-extra
After that, the network card comes up correctly.
Question. How are we going to deal with this? Because this is not normal. In fact, this is a bug to some extent.