VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
6 Replies Last post: Nov 6, 2009 12:03 PM by guyrleech  

Shutting down a guest when closing the console. posted: Nov 5, 2009 8:44 PM

Click to view ejkruse's profile Lurker 4 posts since
Nov 5, 2009
When working on a guest console session and clicking the "X" on the window it suspends the guest. Is there any way to set it up so that clicking on the "X" will power off the guest? (The host is not being shut down)

Re: Shutting down a guest when closing the console.

1. Nov 6, 2009 12:55 AM in response to: ejkruse
Click to view AWo's profile Champion 3,658 posts since
Nov 27, 2003
Which VMware product do you use?


AWo
VCP / VMware vEXPERT 2009
=Due to lack of employees, human beings work here. - Treat them carefully, they are rare.=

Re: Shutting down a guest when closing the console.

3. Nov 6, 2009 7:26 AM in response to: ejkruse
Click to view AWo's profile Champion 3,658 posts since
Nov 27, 2003
Read Page 116/117 of this document: http://www.vmware.com/pdf/vmserver2.pdf for automatic guest startup.


AWo
VCP / VMware vEXPERT 2009
[:o]===[o:]
=Due to lack of employees, human beings work here. - Treat them carefully, they are rare.=

Re: Shutting down a guest when closing the console.

5. Nov 6, 2009 7:38 AM in response to: ejkruse
Click to view AWo's profile Champion 3,658 posts since
Nov 27, 2003
Sorry, but I don't know about a mechanism to achieve what you need.


AWo
VCP / VMware vEXPERT 2009
[:o]===[o:]
=Due to lack of employees, human beings work here. - Treat them carefully, they are rare.=

Re: Shutting down a guest when closing the console.

6. Nov 6, 2009 12:03 PM in response to: ejkruse
Click to view guyrleech's profile Virtuoso 1,814 posts since
Mar 6, 2006

I've not seen the act of quitting a console window cause a guest to suspend but I'm not saying I don't believe you!

What OS are the users running the console on? I'm thinking here of a script that watches for the disappearance of the vmware-vmrc process (are they going to run more than a single console as this will complicate things?) (probably also have some fun waiting for the process to first appear) and then uses the vmrun command to restart the VM, if it is indeed suspended, and then power it off.

Guy Leech
VMware vExpert 2009

---
If you found this or any other answer useful please consider the use of the Helpful or Correct buttons to award points.

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities