September 2012
Table Of Contents
- Installing and Configuring VMware Tools
- Contents
- About Installing and Configuring VMware Tools
- Components of VMware Tools
- Installing and Upgrading VMware Tools
- Installing VMware Tools
- Upgrading VMware Tools
- Manually Install or Upgrade VMware Tools in a Windows Virtual Machine
- Automate the Installation of VMware Tools in a Windows Virtual Machine
- Manually Install or Upgrade VMware Tools in a Linux Virtual Machine
- Manually Install or Upgrade VMware Tools in a Solaris Virtual Machine
- Manually Install or Upgrade VMware Tools in a FreeBSD Virtual Machine
- Manually Install or Upgrade VMware Tools in a NetWare Virtual Machine
- Manually Install or Upgrade VMware Tools in a Mac OS X Virtual Machine
- Repairing, Changing, and Uninstalling VMware Tools Components
- Using the VMware Tools Configuration Utility
- Using Other Methods to Configure VMware Tools
- Security Considerations for Configuring VMware Tools
- Index
n
On Windows guests, log in as an administrator.
n
Verify that the host has free disk space equal to the size of the virtual disk that you plan to shrink.
Procedure
1 Open a command prompt or terminal in the guest operating system.
2 Change to the VMware Tools installation directory.
Operating System Default Path
Windows
C:\Program Files\VMware\VMware Tools
Linux and Solaris
/usr/sbin
FreeBSD
/usr/local/sbin
Mac OS X
/Library/Application Support/VMware Tools
3 Enter the command to list available mount points.
utility-name
disk list
For utility-name use the guest-specific program name.
Operating System Utility Name
Windows
VMwareToolboxCmd.exe
Linux, Solaris, and FreeBSD
vmware-toolbox-cmd
4 Enter the command to shrink the disk at a specified mount point.
utility-name
disk
mount-point
For mount-point, use one of the mount points displayed when you used the list subcommand.
Using Custom VMware Tools Scripts
You can associate custom scripts with power operations.
When VMware Tools is installed, one or more default scripts run on the guest whenever you change the power
state of the virtual machine. You change the power state by using menu commands or by clicking the
Suspend, Resume, Power On, and Power Off buttons. For example, when you power off a virtual machine,
by default the poweroff-vm-default script runs.
For Windows guest operating systems, you can write new scripts or modify default scripts and save them with
new names and then configure VMware Tools to use your custom script instead of the default script.
For Linux, Mac OS X, Solaris, and FreeBSD guests, you can write scripts and place them in a certain directory,
and then VMware Tools runs your scripts in addition to the default scripts. For power-on and resume
operations, the default scripts run before the custom scripts. For suspend and power-off, the default scripts
run after the custom scripts. This way, VMware Tools stops services only after the custom scripts finish their
work and, conversely, restores the same services before the custom scripts attempt to use the services.)
Use Custom VMware Tools Scripts in Windows Guests
On Windows guest operating systems, you can write scripts to automate guest operating system operations
when you change the power state of a virtual machine.
For Windows guest operating systems, you can write new scripts or modify default scripts and save them with
new names and then configure VMware Tools to use your custom script instead of the default script.
The default scripts are located in the Program Files\VMware\VMware Tools directory.
Installing and Configuring VMware Tools
36 VMware, Inc.