VMware

VMware GSX Server 2.5.2


Features | Documentation | Knowledge Base | Discussion Forums

previous Prev   Contents   Last   Next next

Configuring VMware Tools in a Linux or FreeBSD Virtual Machine

Configuring VMware Tools in a Linux or FreeBSD Virtual Machine

This section shows the options available in a Linux or FreeBSD guest operating system.

To open the VMware Tools control panel, at a command prompt, type:

vmware-toolbox &

You may run VMware Tools as root or as a normal user. To shrink virtual disks, you should run VMware Tools as root (su -).

Connecting Devices with VMware Tools

Connecting Devices with VMware Tools

The Devices tab allows you to enable or disable removable devices. Removable devices include the floppy and CD-ROM drives and the virtual network adapter.

Click to see full-size image

To connect a device, check the check box next to the device. To disconnect the device, uncheck the check box next to the device.

Note: You can also set these options from the Devices menu in the virtual machine window.

Choosing Scripts for VMware Tools to Run During Power State Changes

Choosing Scripts for VMware Tools to Run During Power State Changes

Through VMware Tools, you can run scripts that execute when you power on, power off, suspend or resume the virtual machine. For more information, see Executing Scripts When the Virtual Machine's Power State Changes.

Note: Scripts cannot be run in a FreeBSD guest operating system.

Click to see full-size image

A default script for each power operation is included in VMware Tools. These scripts are located in the guest operating system in /etc/vmware-tools.

 When You ...
 This Default Script Runs
 Suspend the guest operating system
 suspend-vm-default
 Resume the guest operating system
 resume-vm-default
 Power off the guest operating system
 poweroff-vm-default
 Power on the guest operating system
 poweron-vm-default

For each power state, you can use the default script or you can substitute a script you created. In addition, if you are logged in as root, you can test a script or disable the running of a script. Complete the following steps.

  1. Select the appropriate power operation. Uncheck Use default script to suspend guest operating system, Use default script to resume guest operating system, Use default script to shut down guest operating system or Use default script to power on guest operating system.

  2. Do one of the following:

    • To select a different script, click Browse and select the new script.
    • To edit a script, click Edit. The script opens in your default editor. Make your changes there.
    • To test a script, click Test.

      Note: If you plan to test scripts in a Turbolinux 7.0 guest operating system, you need to update the Turbolinux guest operating system. This is a known issue with Turbolinux. Go to ftp://ftp.turbolinux.com/pub/turbolinux-updates/7.0/RPMS/initscripts-7.0.0-18.i586.rpm.

    • To disable a script, select the path to the script and delete it.
  3. Click Apply to save your settings.

Setting Options with VMware Tools

Setting Options with VMware Tools

The Options tab shows one miscellaneous option.

Click to see full-size image

  • Time synchronization between the virtual machine and the host operating system

    This option lets you synchronize the time in the guest operating system with the time in the host operating system.

    Note: You can synchronize the time in the guest operating system with the time in the host operating system only when the time in the guest is earlier than the time in the host.

Shrinking Virtual Disks with VMware Tools

Shrinking Virtual Disks with VMware Tools

The Shrink tab gives you access to the controls you need if you wish to reclaim unused space in a virtual disk.

Click to see full-size image

To shrink virtual disks, you should run VMware Tools as the root user (su -). This way, you ensure the whole virtual disk is shrunk. Otherwise, if you shrink the virtual disk as a non-root user, you cannot prepare to shrink the parts of the virtual disk that require root-level permissions.

For more information about shrinking virtual disks, see Defragmenting and Shrinking Virtual Disks.

previous Prev   Contents   Last   Next next