Installing VMware Tools in a Solaris VM

This section explains how to install VMware Tools in a Solaris virtual machine.

1. Install VMware Tools. On the console window click “VM” > “Install VMware Tools“. A virtual CDrom will be activated with the vmware tools ISO.

2. Using the console, or a terminal window. As Root do the following commands:

# mount -rF hsfs /dev/dsk/c0t0d0s2 /mnt
# cd /tmp
# gunzip -c /mnt/vmwaretools/vmware-solaris-tools.tar.gz | tar xf –
# umount /mnt
# cd vmware-tools-distrib

3. Run the VMware Tools Installer:

# ./vmware-install.pl
Creating a new VMware Tools installer database using the tar4 format.

Installing VMware Tools.

In which directory do you want to install the binary files?
[/usr/bin]

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc]

What is the directory that contains the init scripts?
[/etc/init.d]

In which directory do you want to install the daemon files?
[/usr/sbin]

In which directory do you want to install the library files?
[/usr/lib/vmware-tools]

The path “/usr/lib/vmware-tools” does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes]

In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]

The path “/usr/share/doc/vmware-tools” does not exist currently. This program
is going to create it, including needed parent directories. Is this what you
want? [yes]

The installation of VMware Tools 7.8.6 build-185404 for Solaris completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: “/usr/bin/vmware-uninstall-tools.pl”.

Before running VMware Tools for the first time, you need to configure it by
invoking the following command: “/usr/bin/vmware-config-tools.pl”.
Do you want this program to invoke the command for you now? [yes]

Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: done

Detected X.org version 7.2.0.

Please choose one of the following display sizes that X will start with (1 -15):

[1] “640×480”
[2] “800×600”
[3] “1024×768”
[4] “1152×864”
[5] “1280×800”
[6] “1152×900”
[7] “1400×900”
[8] “1440×900”
[9] “1280×1024”
[10] “1376×1032”
[11] “1400×1050”
[12]< "1680x1050" [13] "1600x1200" [14] "1920x1200" [15] "2364x1773" Please enter a number between 1 and 15:

[12] 3

Starting VMware Tools services in the virtual machine:
Switching to guest configuration: done
Guest memory manager: done
Guest operating system daemon: done

The configuration of VMware Tools 7.8.6 build-185404 for Solaris for this
running kernel completed successfully.

You must restart your X session before any mouse or graphics changes take effect.

You can now run VMware Tools by invoking the following command:
“/usr/bin/vmware-toolbox” during an X server session.

4. To enable advanced X features (e.g., guest resolution fit, drag and drop, and file and text copy/paste), you will need to do one (or more) of the following:

1. Manually start /usr/bin/vmware-user
2. Log out and log back into your desktop session; and,
3. Restart your X session.

The installed vmxnet driver will be used for all vlance and vmxnet network
devices on this system. Existing vlance devices will transition from the pcn
driver to the vmxnet driver on the next reconfiguration reboot. You will need
to verify your network settings accordingly.

If you have configured a pcn interface, the corresponding files are now renamed
to use the vmxnet device name to ensure the interface will be brought up
properly upon reboot. For example, the following commands were performed:
# mv /etc/hostname.pcn0 /etc/hostname.vmxnet0
# mv /etc/hostname6.pcn0 /etc/hostname6.vmxnet0
# mv /etc/dhcp.pcn0 /etc/dhcp.vmxnet0

and will cause the Solaris Service Management Facility to bring up the first
vmxnetX interface using the configuration of your current pcnX interface.

Installing VMware Tools in a Linux Virtual Machine

This section explains how to install VMware Tools in a Linux virtual machine.

To install VMware Tools in a Linux, FreeBSD, or Solaris Virtual Machine

1. Power on the virtual machine.

2. After the guest operating system has started, prepare your virtual machine to install
VMware Tools.

Choose VM > Install VMware Tools.

The remaining steps take place inside the virtual machine.
Note: You can install VMware Tools either from a terminal in an X window session
or in text mode.

3. As root (su -), mount the VMware Tools virtual CD-ROM image, change to a working
directory (for example, /tmp), uncompress the installer, and unmount the CD-ROM image.

Note You do not use an actual CD-ROM to install VMware Tools, and you do not need
to download the CD-ROM image or burn a physical CD-ROM of this image file.
The VMware Server software contains an ISO image that looks like a CD-ROM to
your guest operating system. This image contains all the files needed to
install VMware Tools in your guest operating system.

a) Using the Tar Installer on Linux Guests: Some Linux distributions use different device
names or organize the /dev directory differently. If your CD-ROM drive is not
/dev/cdrom or if the mount point for a CD-ROM is not /mnt/cdrom, modify the following
commands to reflect the conventions used by your distribution.

Also, some Linux distributions automatically mount CD-ROMs. If your distribution uses
automounting, do not use the mount and umount commands below. You still must untar the
VMware Tools installer to /tmp.

mount /dev/cdrom /mnt/cdrom
cd /tmp
tar zxf /mnt/cdrom/vmware-linux-tools.tar.gz
umount /mnt/cdrom
Go to step 4.

b) Using the RPM Installer on Linux Guests: Some Linux distributions use different device
names or organize the /dev directory differently. If your CD-ROM drive is not /dev/cdrom
or if the mount point for a CD-ROM is not /mnt/cdrom, modify the following commands to
reflect the conventions used by your distribution.

Also, some Linux distributions automatically mount CD-ROMs. If your distribution uses
automounting, do not use the mount and umount commands below.

mount /dev/cdrom /mnt/cdrom
cp /mnt/cdrom/vmware-linux-tools-.i386.rpm
/tmp rpm -Uhv /tmp/vmware-linux-tools-.i386.rpm
umount /mnt/cdrom

where is the build number of the VMware Server release.
Go to step 6.

c) Solaris Guests: The Solaris volume manager—vold—mounts the CD-ROM under /cdrom/vmwaretools.
If the CD-ROM is not mounted, restart the volume manager using the following commands:

/etc/init.d/volmgt stop
/etc/init.d/volmgt start

After the CD-ROM is mounted, use the following commands to extract VMware Tools.

cd /tmp
gunzip -c /cdrom/vmwaretools/vmware-solaris-tools.tar.gz | tar xf –Go to step 4.

d) FreeBSD Guests: Some FreeBSD distributions automatically mount CD-ROMs. If your distribution
uses automounting, do not use the mount and umount commands below. You still must untar the
VMware Tools installer to /tmp.

mount /cdrom
cd /tmp
tar zxf /cdrom/vmware-freebsd-tools.tar.gz
umount /cdrom

4. Run the VMware Tools installer.

cd vmware-tools-distrib
./vmware-install.pl

5. Answer the questions about default directories.

6. Run the configuration program.

vmware-config-tools.pl

7. To change your virtual machine’s display resolution, answer yes, and enter the number that
corresponds to the desired resolution.

8. Log off of the root account.

exit

9. Start X and your graphical environment. If you installed VMware Tools in an X windows session, restart X windows.

10. In an X terminal, launch the VMware Tools background application.

vmware-toolbox &

You can run VMware Tools as root or as a normal user. To shrink virtual disks or to change any VMware Tools scripts, you must run VMware Tools as root (su -).

Note: Always run vmware-toolbox in the guest operating system to ensure you have access to all VMware Tools features, such as copy and paste and mouse ungrab for operating systems for which X display driver is not available.