[CentOS] Shutdown CentOS VM when closing VMWare Workstation

Brian Mathis brian.mathis at gmail.com
Thu Sep 9 09:42:44 EDT 2010


Auto shutdown is controlled by the VMware host, not inside the guest
OS.  I haven't done this in Workstation, but in VMware Server there
are host options where you set the auto start/shutdown preferences.
Upon shutdown, VMware will just send an ACPI shutdown signal to the
VM, and it will act as if someone pressed the power button (soft
shutdown).

Google probably knows more.  This is a VMware question, not specific to CentOS.


On Thu, Sep 9, 2010 at 8:34 AM, Alexander Farber
<alexander.farber at gmail.com> wrote:
> Hello,
>
> I'm using CentOS 5.5 / 16bit as a virtual machine in VMWare Workstation
> and have installed the "VMWare Tools" by running vmware-install.pl and
> vmware-config-tools.pl but can't figure out how to make the VM shutdown,
> when I shutdown the Windows PC hosting it.
>
> Does anybody please have any hints or scripts?
>
> Do I need to use any VMWare modules if I just want to shutdown the VM?
>
> Surprisingly I haven't found any good starters on the web yet
>
> Thank you
> Alex
>
> PS: Here is what I have in /usr/local
>
> # ls /usr/local/bin/
> vm-support              vmware-toolbox             vmware-user
> vmware-config-tools.pl  vmware-toolbox-cmd         vmware-user-wrapper
> vmware-hgfsclient       vmware-uninstall-tools.pl  vmware-xferlogs
>
> # ls /usr/local/sbin/
> vmtoolsd  vmware-checkvm  vmware-rpctool  vmware-tools-upgrader
>
> #  ls /usr/local/lib/vmware-tools/modules/binary/bld-2.6.18-8.el5-i686PAE-RHEL5/objects/
> pvscsi.o  vmblock.o  vmci.o  vmhgfs.o  vmmemctl.o  vmsync.o  vmxnet3.o
>  vmxnet.o  vsock.o
>
> ( <--- not sure if that's the relevant dir)
>
> # rpm -qa | grep kernel
> kernel-2.6.18-194.3.1.el5
> kernel-2.6.18-194.11.3.el5
> kernel-headers-2.6.18-194.11.3.el5
> kernel-2.6.18-194.11.1.el5
>
> #  /sbin/chkconfig --list | grep -i vmware
> vmware-tools    0:off   1:off   2:on    3:on    4:off   5:on    6:off
>
> #  sudo lsmod | grep vm
> vmblock                20512  3
> vmmemctl               16956  0
> vmci                   38308  1 vsock
> vmxnet3                37764  0
> vmxnet                 24836  0
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>


More information about the CentOS mailing list