Difference between revisions of "Install VMWare-Tools Linux VM"

From TheBestLinux.com
Jump to navigation Jump to search
Line 1: Line 1:
 
= How to Install VMWare Tools on a Freshly Installed Linux VM =
 
= How to Install VMWare Tools on a Freshly Installed Linux VM =
== Prerequisits ==
+
= Prerequisits =
 
* All development libraries need to be installed.
 
* All development libraries need to be installed.
 
* Development tools such as g++, gcc, make, cmake, etc. must be installed.
 
* Development tools such as g++, gcc, make, cmake, etc. must be installed.
Line 10: Line 10:
 
<br>
 
<br>
  
== Get the VMware Tools Files ==
+
= Get the VMware Tools Files =
 
# Start the process:
 
# Start the process:
 
## Within your VM ([http://en.wikipedia.org/wiki/Virtual_machine Virtual Machine])<br>move your mouse to the very top of your screen. If it's not already there, a toolbar will pull down.<br>Click "Virtual Machine", and then click "Install VMware Tools".<br>If you are in an Xwindows GUI (Graphical User Interface), a window usually pops up showing the contents of the device VMware is providing with the VMware tools archive.<br><br>
 
## Within your VM ([http://en.wikipedia.org/wiki/Virtual_machine Virtual Machine])<br>move your mouse to the very top of your screen. If it's not already there, a toolbar will pull down.<br>Click "Virtual Machine", and then click "Install VMware Tools".<br>If you are in an Xwindows GUI (Graphical User Interface), a window usually pops up showing the contents of the device VMware is providing with the VMware tools archive.<br><br>
Line 20: Line 20:
 
<br><br>
 
<br><br>
  
== Extract the Archive ==
+
= Extract the Archive =
 
# If not already in the "/root" home directory, type this to get there:<pre style="color:blue"># cd /root</pre><br>
 
# If not already in the "/root" home directory, type this to get there:<pre style="color:blue"># cd /root</pre><br>
 
# Extract the archive, replacing the X's with the actual archive numbers:<pre style="color:blue"># tar -xvzf VMwareTools-X.X.X-XXX.tar.gz</pre><br>
 
# Extract the archive, replacing the X's with the actual archive numbers:<pre style="color:blue"># tar -xvzf VMwareTools-X.X.X-XXX.tar.gz</pre><br>

Revision as of 00:02, 9 November 2011

How to Install VMWare Tools on a Freshly Installed Linux VM

Prerequisits

  • All development libraries need to be installed.
  • Development tools such as g++, gcc, make, cmake, etc. must be installed.
  • Current version of perl is required.
  • Kernel headers for your running version of Linux must be installed.
  • Familiarity of the usage of the command prompt, as all commands will be enter from the command line.
  • Root, aka "Super User", access to the virtual machine, either from VMWare or via SSH (Secure Shell)



Get the VMware Tools Files

  1. Start the process:
    1. Within your VM (Virtual Machine)
      move your mouse to the very top of your screen. If it's not already there, a toolbar will pull down.
      Click "Virtual Machine", and then click "Install VMware Tools".
      If you are in an Xwindows GUI (Graphical User Interface), a window usually pops up showing the contents of the device VMware is providing with the VMware tools archive.

  2. Mount the VMWare Tools partition so you can copy to your hard drive:
    1. This MUST be done as the "root" super user!
      Use the first command if you haven't setup sudoers.
      Use the second command if you have already set yourself up in sudoers.
      $ su - root OR # sudo su - root
      Your command prompt should now have a # in it instead of a $, indicating you are now the root super user.

    2. If you are running a terminal in within an Xwindows GUI,
      a window usually pops up after you tell VMWare to install the tools, which means the system automatically mounted the partition containing the VMware Tools archive.

      If not, and you are in a command prompt only, you will need to find out what to mount and decide where to mount it.
      There are two methods of I know if to determine what device VMware is providing to mount which has the vmware-tools archive:

      # dmesg
      from the command line might give you a clue.

      OR
      # cat /proc/diskstats
      and look for sr0, sdb, etc. It's usually sr0.

    3. Do the actual commands to mount the "device" that the "Install VMware Tools" selection should now be providing:

      Create a "mount point":
      # mkdir /mnt/vmware

      Assuming the previously discovered device is "sr0", mount the VMware Tools device:
      # mount /dev/sr0 /mnt/vmware


      Unmount the VMware Tools device:
      # umount /mnt/vmware


  3. Copy the VMware-X.X.X-XXX.tar.gz file to the root user's home directory (since we're doing this as "root"):
    # cp /mnt/vmware /root



Extract the Archive

  1. If not already in the "/root" home directory, type this to get there:
    # cd /root

  2. Extract the archive, replacing the X's with the actual archive numbers:
    # tar -xvzf VMwareTools-X.X.X-XXX.tar.gz