open-vm-tools icon indicating copy to clipboard operation
open-vm-tools copied to clipboard

poweroff-vm does not work: No argument supplied.

Open m4ih3i opened this issue 2 years ago • 1 comments

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

m4ih3i avatar Aug 28 '23 10:08 m4ih3i

@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.

jonathanvmw avatar Aug 28 '23 18:08 jonathanvmw