vmware / open-vm-tools

Official repository of VMware open-vm-tools project
http://sourceforge.net/projects/open-vm-tools/
2.26k stars 427 forks source link

After deploy a customized VM, network start disconnected #261

Open coom opened 6 years ago

coom commented 6 years ago

Hello,

As I describe in this issue : https://github.com/ansible/ansible/issues/42064 I am using Ansible to customize my new VMs.

When I use open-vm-tools and a french configured locale (inside my template) : network start disconnected. Both case "Connected" and "Connect At Power On".

If I convert my template to a VM, then did a "dpkg-reconfigure locales" and use the en.US locale : everything works fine. If I came back to the french locale : nothing works.

coom commented 6 years ago

Now it doesn't work even if I configure my VMs in en.US locale .. Please help !!

jvdbeemt commented 6 years ago

We have the same issue here. Please look into this:)

sn0wf4ke commented 6 years ago

Same issue here. ansible 2.6.2 open-vm-tools from Ubuntu 18.04 in template

hassenius commented 6 years ago

Same issue here. Ubuntu 16.04 open-vm-tools 10.2.0.1608 (build-7253323) 18.3-9-g2e62cb8a-0ubuntu1~16.04.2

Strange thing is: When we provision with terraform, the network is disconnected but when we provision manually from console the network does connect.

However, when I look at toolsDeployPkg.log on the terraform provisioned VM, it doesn't appear that any attempts has been made to enable net network interface toolsDeployPkg.log

qwrobins commented 5 years ago

Running into this same issue using terraform. Is there any eta on a fix?

StrangeWill commented 4 years ago

Running into the same issue with TeamCity, tried installing the included VMware tools version 10 ISO that comes with ESXi but VMware tools will not start and open-vm-tools is broken.

Kind of at a loss right now.

xiaofengw-vmware commented 4 years ago

Running into the same issue with TeamCity, tried installing the included VMware tools version 10 ISO that comes with ESXi but VMware tools will not start and open-vm-tools is broken.

Kind of at a loss right now.

Could you share us the ESXi build, tools version, and upload the /var/log/vmare-imc/toolsDeployPkg.log and /var/log/cloud-init.log( if cloud-init is enabled). Thanks.

StrangeWill commented 4 years ago

@xiaofengw-vmware

After some digging I found this out:

Because open-vm-tools was being installed by Ubuntu by default it was not allowing vmware tools to install properly even when uninstalled, I had to modify the vmware-install.pl script to disable the check, vmware tools is now properly running.

HOWEVER

The network disconnection issue still persists, the VM boots and just waits forever for the network to come up.

@xiaofengw-vmware do you want the debug dump from vmware-tools or open-vm-tools? Ideally I'd like to see open-vm-tools fixed so that it works across Ansible too (plus Linux hasn't gotten a VMware tools 11.x release so I'm guessing open-vm-tools is the go-to now?).

oliverkurth commented 4 years ago

You need to use the --purge option to uninstall open-vm-tools before installing VMware Tools.

Note that we do not support the VMware Tools tar installer for Ubuntu 18.04. So this may work as a workaround for this issue, but you may run into other issues.

StrangeWill commented 4 years ago

Ah duh, that does make sense.

However the issue with open-vm-tools seems to be a pretty big one -- breaking a lot of automation frameworks, do we know when this will be looked at?

oliverkurth commented 4 years ago

Yes, our guest customization team is looking into it.

xiaofengw-vmware commented 4 years ago

@xiaofengw-vmware

  • ESXi: VMware ESXi, 6.7.0, 15160138
  • Tools:

    • open-vm-tools: 2:11.0.1-2ubuntu0.18.04.2 (runs, but has issue #261)
    • vmware-tools: 10.3.21-14772444

After some digging I found this out:

Because open-vm-tools was being installed by Ubuntu by default it was not allowing vmware tools to install properly even when uninstalled, I had to modify the vmware-install.pl script to disable the check, vmware tools is now properly running.

HOWEVER

The network disconnection issue still persists, the VM boots and just waits forever for the network to come up.

@xiaofengw-vmware do you want the debug dump from vmware-tools or open-vm-tools? Ideally I'd like to see open-vm-tools fixed so that it works across Ansible too (plus Linux hasn't gotten a VMware tools 11.x release so I'm guessing open-vm-tools is the go-to now?).

Hi Strange, I couldn't reproduce this issue locally, I wonder whether this issue is 100% reproduced? Could you help to collect below logs for my investigation? Thanks.

  1. From inside Ubuntu VM, /var/log/vmware-imc/*.log /var/log/cloud-init.log <=== Cloud-init customization only
  2. ESXi logs
StrangeWill commented 4 years ago

OK, so this newer VM running on a non-LVM setup eventually connects the network (a bit delayed but fine by me), I'll re-update this if I can reproduce.

warmfusion commented 4 years ago

We're seeing the same issue with

We don't see this issue when using the VMWare Tools issued from the CDRom mount which is Version 10346 (10.3.10)

And we haven't tested a Debian Buster version just yet.

xiaofengw-vmware commented 4 years ago

Hi Toby, If this issue occurs only in old version of VM Tools, and couldn't reproduce from 10.2, then this is a known issue.When we are customizing lots of VMs simultaneously, this issue could reproduce on some of VMs, please upgrade VM Tools later than 10.2. Thanks.

Robonglious commented 3 years ago

I'm getting the issue on Open-vm-tools 11.0.5. I've tried all workarounds that I could find.

Is there any way I can script vmtoolsd to edit the VMX file?

bhundven commented 2 years ago

https://bugzilla.redhat.com/show_bug.cgi?id=1358108