VMware Cloud Community
tdubb123
Expert
Expert
Jump to solution

deployed VM from template but NIC is disconnected

I deployed a Vm from template using a customization template. I made sure the Vm deployed had NIC connected when i selected finished. But after the clone, the VM came up with nic disconnected

any idea?

1 Solution

Accepted Solutions
virtualg_uk
Leadership
Leadership
Jump to solution

Possibly a bug but to confirm, can you check the contents of the VMX file?

It should have something on the lines of:

ethernet0.startConnected = "TRUE"


Graham | User Moderator | https://virtualg.uk

View solution in original post

18 Replies
virtualg_uk
Leadership
Leadership
Jump to solution

Possibly a bug but to confirm, can you check the contents of the VMX file?

It should have something on the lines of:

ethernet0.startConnected = "TRUE"


Graham | User Moderator | https://virtualg.uk
RajeevVCP4
Expert
Expert
Jump to solution

what is NIC type in your template , is it vmxnet3 or e1000

Rajeev Chauhan
VCIX-DCV6.5/VSAN/VXRAIL
Please mark help full or correct if my answer is use full for you
Reply
0 Kudos
tdubb123
Expert
Expert
Jump to solution

did not see that in the vmx file

ethernet0.startConnected = "TRUE"

even tjhough connect at power on is checked

Reply
0 Kudos
tdubb123
Expert
Expert
Jump to solution

vmxnet3

Reply
0 Kudos
tdubb123
Expert
Expert
Jump to solution

I am on vm hardware 13 on esxi 6.5

Reply
0 Kudos
tdubb123
Expert
Expert
Jump to solution

added ethernet0.startConnected = "TRUE"

and seems to work.

so is it a bug with vcenter?

virtualg_uk
Leadership
Leadership
Jump to solution

Quite possibly. I've noticed a few bugs in the newer HTML5 client. Worth reporting those if you can.

Glad it's fixed!


Graham | User Moderator | https://virtualg.uk
Reply
0 Kudos
tdubb123
Expert
Expert
Jump to solution

not good. if I customize my virtual hardware. the network adapter connect check box goes back to off

Reply
0 Kudos
virtualg_uk
Leadership
Leadership
Jump to solution

Might be worth re-creating the template and attaching the original disks?


Graham | User Moderator | https://virtualg.uk
Reply
0 Kudos
tyron_scholem
Contributor
Contributor
Jump to solution

Can you add that to VMTX instead of VMX, to have all new machines already deployed with this parameter?

I'm on HW 13 on ESXi 6.5 also, so this is probably a bug indeed. HTML5 client.

ianfuller
Contributor
Contributor
Jump to solution

Do you mean the VMX of the deployed VM? Or the VMXT of the template? Or perhaps to convert the template back to VM, edit the VMX, then convert back to template?

The first won't solve the issue for future deployments and the latter two were not successful for me. I can confirm the check boxes for "Connected" and "connect at power on" are both enabled and ethernet0.startConnected = "TRUE" is present as a VM and VM template before deployment but during the deployment process they become unchecked.

vSphere 6.7.0.46000, ESXi 6.7.0 b17167734, VM version 14

athelas
Contributor
Contributor
Jump to solution

Hello, i have the same problem. After customization process ends, check box connected disappear. Did you find any solution of this problem?

Reply
0 Kudos
TomKalabis
Enthusiast
Enthusiast
Jump to solution

same problem here ! 

vSphere 7.0u2 

Reply
0 Kudos
Mattythefatty
Contributor
Contributor
Jump to solution

I also have the same problem.  

vCenter is at 7.0.3.00100

ESXi hosts are 7.0.2, 18538813

Adding the line to the vmx file did not solve it for me.   I've tried deploying to a VSS and VDS port group.   No luck.

Reply
0 Kudos
samgdsc
Contributor
Contributor
Jump to solution

I'm having the same problem when cloning a template with Packer. Haven't found a solution yet. How this is still an ongoing issue is crazy. Someone in another forum suggested it could be an issue with VMware Tools. I haven'ttested without.

Reply
0 Kudos
KharkivIT
Contributor
Contributor
Jump to solution

Good day, Guys!

Hope, my situation will help.

I had the next problem:
1. Deployed Linux VM from template with a customization.

2. Had the same problem with the network.

3. On VM checked the next log-files: /var/log/vmware-vmsvc-root.log and found that my customization failed:
    "DeployPkgInGuest failed, error=5"

4. To solve the problem I've added the next option:
    /etc/vmware-tools/tools.conf
    [deployPkg] enable-custom-scripts = true

5. The next time VM deployed from template with a customization went thru two reboots (automaticaly):
    - during 1st reboot network was disconnected, but changes to the network (at least hostname) changed;
    - during 2nd reboot network became connected and VM worked well with new hostname and other settings.

The easiest way to check if the problem with vCenter:
1. Deploy VM from template without any customization => check network;
2. Deploy VM from same template with OS customization => check network.

BR 🙂

Reply
0 Kudos
Tymarand
Contributor
Contributor
Jump to solution

Could you please explain where you made these changes to get it to work properly?  Was it in the VMX or in the template?  Thank you!

Reply
0 Kudos
navina
Enthusiast
Enthusiast
Jump to solution

Convert the Template back to VM
Make sure the "Connect at Power On" option is selected. Change it back to Template and give a try

Regards,
Navin A
Reply
0 Kudos