open-vm-tools
open-vm-tools copied to clipboard
poweroff-vm does not work: No argument supplied.
I run vmware-tools inside privileged container and stop VM command from vsphere portal is not working.
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
- Hit the button to poweroff VM in vsphere portal
Expected behavior
VM is successfully turned off
@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.