Conquering the Top 5 Enterprise Data Protection Challenges

Today's datacenters face a gauntlet of challenges including protection of physical and virtual environments, fast recovery of data, reducing backup times and storage requirements, server consolidation, and disaster recovery..

Find out how savvy CIO's are conquering these types of challenges in this WHITE PAPER by vExpert, David Davis

Thursday, 13 September 2012

Best Practices- Installing CentOS VM on VMware Workstation - Part 2

Best Practices- Installing CentOS VM on

VMware Workstation

- Part 2


INSTALLING VMware Tools in CentOS VM



In this series of blogs I am going to share my experiences and few best practices when it comes to installing and configuring a LINUX, in this case, a CentOS VM using VMware Workstation 8.

NOTE that these steps can well be used to install any LINUX VM on vSphere platforms as well... just the tuning with respect to the class of OS changes then.. like Debian, or Red-Hat..

In our EARLIER POST, we installed and configured CentOS 6.3 as a VM on VMware Workstation.

In this tutorial, we are going to install VMware Tools in that VM.


NOTE: If you had selected Easy Install during the install process from Workstation, then this step can be avoided as Easy Install installs VMware-Tools automatically.. still if you ever want, you can install VMware-Tools anytime you want...

Benefits of VMware Tools

The followings are benefits of VMware Tools on your Guest OS:


A set of VMware device drivers include:

  • Graphics Performance: VMware Tools installs a SVGA driver that increases vide0 refresh.
  • Efficient Memory Allocation: A memory control driver that is installed with  VMware Tools provides increased efficiency in memory allocation.
  • Accelerated Mouse Driver: For increased mouse responsiveness.
  • Optimized SCSI Driver: A Bus Logic SCSI driver provides faster I/O performance for some guest OS.

 VMware Tools control panel:

The Tools control panel lets you modify settings.

  • Run Scripts: Scripts can be defined to run after particular events such as the VM starting up or shutting down.

  • Shrink the Virtual Disk: By reducing the amount of disk space a VM’s virtual disk takes up by removing empty unused space will lead to more usable storage on your hosts volume.

Connect External Devices
:


You can connect external media devices such as a floppy (who uses those anymore)  or CD/DVD drive. These appear as a virtual device when presented within the guest

To summarize,Installing VMware Tools eliminates or improves the following issues
:


  • Low video resolution
  • Inadequate color depth
  • Incorrect display of network speed
  • Restricted movement of the mouse
  • Inability to copy and paste and drag-and-drop files
  • Missing sound

Installing VMware Tools within X 

Select VM > Install VMware Tools in your Workstation menu as shown:

NOTE: You need to run these steps as "root" user


The VMware Tools ISO is mounted to your VM. Launch the VMware Tools CD Icon.
Right Click on the VMwareTools.tar.gz file and select Extract to option as shown

Note: In some Linux distributions, the VMware Tools CD icon may fail to appear when you install VMware Tools within an X windows session on a guest.


In the Extraction wizard, select Desktop and click Extract


Once the extraction completes, you will see the VMware-tools-distrib folder on your desktop


Open up a Terminal Window and browse to the vmware-tools-distrib directory as shown below. Once in this directory, run the vmware-install.pl file

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


Respond to the questions the installer displays on the screen. Press Enter to accept the default value.


Be sure to respond yes when the installer offers to run the configuration program (vmware-config-tools.pl).


Depending on the features you use, these instructions can include restarting the X session, restarting networking, logging in again, and starting the VMware User process.



You can alternatively reboot the guest operating system to accomplish all these tasks. 


That's it !! You should now have VMware Tools installed successfully on your CentOS 6.3 VM.


To Install Vmware Tools in a non X- Window system

1-- In the virtual machine, log in to the guest operating system as root and open a terminal window. 

2-- Run the mount command with no arguments to determine whether your Linux distribution automatically mounted the VMware Tools virtual CD-ROM image.

# mount


If the CD-ROM device is mounted, the CD-ROM device and its mount point are listed as something like this:

/dev/cdrom on /mnt/cdrom type iso9660 (ro,nosuid,nodev)


3-- If the VMware Tools virtual CD-ROM image is not mounted, mount the CD-ROM drive.
 

       a) If mount point directory does not already exist, create it.

       # mkdir /mnt/cdrom


Some Linux distributions use different mount point names. For example, on some distributions the mount point is /media/VMware Tools rather than /mnt/cdrom. Modify the command to reflect the conventions that your distribution uses.

       b) Mount the CD-ROM drive.


       # mount /dev/cdrom /mnt/cdrom


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 command to reflect the conventions that your distribution uses.

4-- Change to a working directory (for example, /tmp).

# cd /tmp


5-- Delete any previous vmware-tools-distrib directory before you install VMware Tools.


The location of this directory depends on where you placed it during the previous installation. Often this directory is placed in /tmp/vmware-tools-distrib.

6-- List the contents of the mount point directory and note the filename of the VMware Tools tar installer.


# ls mount-point


7-- Uncompress the installer.

# tar zxpf /mnt/cdrom/VMwareTools-x.x.x-yyyy.tar.gz


The value x.x.x is the product version number, and yyyy is the build number of the product release. If you attempt to install a tar installation over an RPM installation, or the reverse, the installer detects the previous installation and must convert the installer database format before continuing.

8-- If necessary, unmount the CD-ROM image.

# umount /dev/cdrom


If your Linux distribution automatically mounted the CD-ROM, you do not need to unmount the image.


9-- Run the installer and configure VMware Tools.


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


Usually, the vmware-config-tools.pl configuration file runs after the installer file finishes running.

10-- Respond to the prompts by pressing Enter to accept the default values, if appropriate for your configuration.


11-- Follow the instructions at the end of the script.
Depending on the features you use, these instructions can include restarting the X session, restarting networking, logging in again, and starting the VMware User process. You can alternatively reboot the guest operating system to accomplish all these tasks.