vmware / open-vm-tools

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

Invoke-VMScript hangs while configuring firewalld with CentOS7 open-vm-tools 10.2.5 #322

Open vfuyong opened 5 years ago

vfuyong commented 5 years ago

Hi,

I have seen a problem that Invoke-VMScript hangs forever while triggering an ansible playbook to configure firewalld in CentOS7 with open-vm-tools 10.2.5 (latest from repo). The problem disappears once I switched to VMware Tools 10.2.5 or 10.3.5.

I suspect open-vm-tools might be affected by the change of firewalld. Has anyone seen this problem before? Is it a bug?

vfuyong commented 5 years ago

Just to add that Invoke-VMScript is a PowerCLI command that uses guest operations API and vmtools to run commands in guest.

lemke1458 commented 5 years ago

A few questions:

We've recently found that the VMware Tools shipped by Redhat doesn't have a full set of SE Linux rules to allow everything to run, while the VMWare version of Tools does. This showed up doing network configuration as part of suspend/resume, but it could also apply to firewalld.

vmtocloud commented 4 years ago

Confirmed this is an issue, posted workaround here -> http://www.vmtocloud.com/powercli-invoke-vmscript-firewalld-gotcha-and-workaroud/