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

poweroff-vm does not work: No argument supplied. #685

Open m4ih3i opened 1 year ago

m4ih3i commented 1 year ago

I run vmware-tools inside privileged container and stop VM command from vsphere portal is not working. obraz Sample log output:

chmod 0600 /var/log/vmware-network.log
date
echo Tue Aug 22 06:15:26 UTC 2023 : Executing '/etc/vmware-tools/scripts/vmware/network poweroff-vm'
Tue Aug 22 06:15:26 UTC 2023 : Executing '/etc/vmware-tools/scripts/vmware/network poweroff-vm'
echo

dirname /etc/vmware-tools/scripts/vmware/network
. /etc/vmware-tools/scripts/vmware/../../statechange.subr
main poweroff-vm
exitCode=0
activeList=/var/run/vmware-active-nics
echo No argument supplied.
No argument supplied.
return 0
date
echo Tue Aug 22 06:15:26 UTC 2023 : Finished '/etc/vmware-tools/scripts/vmware/network poweroff-vm'
Tue Aug 22 06:15:26 UTC 2023 : Finished '/etc/vmware-tools/scripts/vmware/network poweroff-vm'

Reproduction steps

  1. Hit the button to poweroff VM in vsphere portal

Expected behavior

VM is successfully turned off

jonathanvmw commented 1 year ago

@m4ih3i

Thank you for reporting the issue.

What Linux distro and version is this? What versions of VMTools, ESXi, and vCenter?

Regarding the repro steps: "Hit the button to poweroff VM in vsphere portal" - to clarify, are you trying to power off the VM or shut down the guest?

Thank you.