Difference between revisions of "Install VMWare-Tools Linux VM"
Jump to navigation
Jump to search
(60 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | = How to Install | + | = How to Install VMware Tools on a Freshly Installed Linux VM = |
− | + | Here are detailed instructions on how to install VMware Tools on a freshly installed Linux VM. | |
+ | <br> | ||
+ | If you find this useful, please let Jamie know via email at [mailto:jamie@dawgland.com jamie@dawgland.com]. | ||
+ | <br> | ||
+ | <br> | ||
+ | |||
+ | = 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. | ||
− | * Current version of | + | * Current version of Perl is required. |
* Kernel headers for your running version of Linux must be installed. | * Kernel headers for your running version of Linux must be installed. | ||
− | * Familiarity of the usage of the command prompt, as all commands will be | + | * Familiarity of the usage of the command prompt, as all commands will be entered from the command line. |
+ | * Root, aka "Super User", access to the virtual machine, either from VMWare or via SSH ([http://en.wikipedia.org/wiki/Secure_Shell Secure Shell]) | ||
<br> | <br> | ||
<br> | <br> | ||
− | + | = Get the VMware Tools Files = | |
− | # Mount the VMWare Tools partition so you can copy to your hard drive | + | # Start the process: |
− | ## This MUST be done as the "root" super user! | + | ## 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> |
− | <br> | + | # Mount the VMWare Tools partition so you can copy to your hard drive: |
− | Use the first command if you haven't setup sudoers. | + | ## This MUST be done as the "root" super user!<br>Use the first command if you haven't setup sudoers.<br>Use the second command if you have already set yourself up in sudoers.<pre style="color:blue">$ su - root</pre>OR:<br><pre style="color:blue">$ sudo su - root</pre>Your command prompt should now have a # in it instead of a $, indicating you are now the root super user.<br><br> |
− | <br> | + | ## If you are running a terminal in within an Xwindows GUI,<br>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.<br><br>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.<br>There are two methods of I know if to determine what device VMware is providing to mount which has the vmware-tools archive:<pre style="color:blue"># dmesg</pre>This might give you a clue.<br><br>OR:<br><pre style="color:blue"># cat /proc/diskstats</pre>and look for sr0, sdb, etc. It's usually sr0.<br><br> |
− | Use the second command if you have already set yourself up in sudoers. | + | ## Do the actual commands to mount the "device" that the "Install VMware Tools" selection should now be providing:<br><br>Create a "mount point":<pre style="color:blue"># mkdir /mnt/vmware</pre><br>Assuming the previously discovered device is "sr0", mount the VMware Tools device:<pre style="color:blue"># mount /dev/sr0 /mnt/vmware</pre><br>Unmount the VMware Tools device:<pre style="color:blue"># umount /mnt/vmware</pre><br><br> |
− | < | + | # Copy the VMware-X.X.X-XXX.tar.gz file to the root user's home directory (since we're doing this as "root"):<pre style="color:blue"># cp /mnt/vmware /root</pre> |
− | + | <br><br> | |
− | + | ||
− | <br> | + | = Extract the Archive = |
− | ## If you are running a terminal in within an Xwindows GUI | + | # If not already in the "/root" home directory, type this to get there:<pre style="color:blue"># cd /root</pre><br> |
− | a window usually pops up after you tell VMWare to install the tools. | + | # 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><br> |
+ | |||
+ | = Run the VMware Tools installation script = | ||
+ | # Again from the command line, make sure you in the correct directory:<pre style="color:blue"># cd /root/vmware-tools-distrib</pre><br> | ||
+ | # Start the installation script:<pre style="color:blue">./vmware-install.pl</pre><br> | ||
+ | # Follow all prompts, accepting the defaults.<br><br> | ||
+ | # When prompted for the path to the kernel headers, type:<pre style="color:blue"> /usr/include/linux</pre><br> | ||
+ | # Continue installation script accepting defaults and ignoring any errors, as this is normal.<br><br><br> | ||
+ | |||
+ | = Reboot & Enjoy! = | ||
+ | # At completion, reboot your VM and enjoy the new higher resolution and ability to<br>copy and paste between virtual machine and physical host machine!<br><br> | ||
+ | # Note: You may have to shrink the VM window, not minimize it, and then maximize it to enable full screen mode.<br> | ||
<br> | <br> | ||
<br> | <br> |
Latest revision as of 07:17, 19 December 2012
How to Install VMware Tools on a Freshly Installed Linux VM
Here are detailed instructions on how to install VMware Tools on a freshly installed Linux VM.
If you find this useful, please let Jamie know via email at jamie@dawgland.com.
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 entered 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
- Start the process:
- 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.
- Within your VM (Virtual Machine),
- Mount the VMWare Tools partition so you can copy to your hard drive:
- 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. - 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
This might give you a clue.
OR:# cat /proc/diskstats
and look for sr0, sdb, etc. It's usually sr0. - 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
- This MUST be done as the "root" super user!
- 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
- If not already in the "/root" home directory, type this to get there:
# cd /root
- Extract the archive, replacing the X's with the actual archive numbers:
# tar -xvzf VMwareTools-X.X.X-XXX.tar.gz
Run the VMware Tools installation script
- Again from the command line, make sure you in the correct directory:
# cd /root/vmware-tools-distrib
- Start the installation script:
./vmware-install.pl
- Follow all prompts, accepting the defaults.
- When prompted for the path to the kernel headers, type:
/usr/include/linux
- Continue installation script accepting defaults and ignoring any errors, as this is normal.
Reboot & Enjoy!
- At completion, reboot your VM and enjoy the new higher resolution and ability to
copy and paste between virtual machine and physical host machine! - Note: You may have to shrink the VM window, not minimize it, and then maximize it to enable full screen mode.