Home > VMware, vSphere > Shutdown Guest does not work on Citrix Servers with an M: drive

Shutdown Guest does not work on Citrix Servers with an M: drive

As soon as you do a drive remapping of your C: drive to something else (let’s use M:), the Shutdown Guest/Suspend Guest features do not work any longer.

When you look at the vmware.log of the VM, it also already gives you some extra clues… The VMware Tools script did not run successfully.

Sep 30 10:34:54.989: vmx| TOOLS sending 'OS_Halt' (1) state change request
Sep 30 10:34:55.081: vcpu-0| Msg_Post: Error
Sep 30 10:34:55.081: vcpu-0| [msg.tools.haltFailed] The request to halt this virtual machine failed because the corresponding VMware Tools script did not run successfully. If you have configured a custom halt script in this virtual machine, please inspect it for errors; otherwise, please submit a support request.
Sep 30 10:34:55.081: vcpu-0|
Sep 30 10:34:55.081: vcpu-0| The script can be deactivated on the Power page of the virtual machine settings by unchecking "Before powering off" in the Run VMware Tools Scripts section.----------------------------------------

Let’s check these scripts by double-clicking the VMware Tools icon.  Click on the Scripts tab.

image

As you can see, these are set to a Custom Script which points to the C:\… drive, which is off course no longer present.

Either replace C: with M: or simply check Default Script.  Make sure to do this for every Script Event (Suspend, Resume, Shut Down, Power On).

Initiate another Shut Down Guest and it will work as expected!

Advertisements
Categories: VMware, vSphere
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: