How to install VMware Tools on Ubuntu

Source: Internet
Author: User

1. Start and enter the Linux system.
2. Then select "virtual machine/install vmware-Tools" in the Virtual Machine menu, then the vmware-tools file will be mirrored to the CD-ROM.
3rd, copy the vmwaretools-6.0.2-592.16.i386.rpm, vmwarls-ls-6.0.2-592.16.tar.gz files to your desired location, and then select an installation method. Here, I choose vmwarw.ls-6.0.2-592.16.tar.gz.
4. decompress the package
# Tar-zxvf VmwareTools-6.0.2-59824.tar.gz
5. Go to the/home/TSM/tools/vmware-tools-distrib directory,
CD/home/TSM/tools/vmware-tools-distrib
6, input./vmware-install.pl installation, in the installation process according to the prompts to choose, here I choose to press enter, detailed installation process is as follows:

At this time, it is best to use the root advanced user operation

Su
[Root @ tsnmvmware-tools-distrib] #./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?
[/Home/TSM/software]
What is the directory that contains the init directories (rc0.d/to rc6.d /)?
[/Etc/rc. d]
What is the directory that contains the init scripts?
[/Etc/rc. d/init. d]
In which directory do you want to install the daemon files?
[/Home/TSM/sbin]
The path "/home/TSM/sbin" does not exist currently. This program is going
Create it, including needed parent directories. Is this what you want?
[Yes]
In which directory do you want to install the library files?
[/Home/TSM/lib/vmware-tools]
The path "/home/TSM/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?
[/Home/TSM/doc/vmware-tools]
The path "/home/TSM/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 6.0.2 build-59824 for Linux completed
Successfully. You can decide to remove this software from your system at any
Time by invoking the following command:
"/Home/TSM/software/vmware-uninstall-tools.pl ".
Before Running VMware Tools for the first time, you need to configure it
Invoking the following command: "/home/TSM/software/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: [OK]
Trying to find a suitable vmmemctl module for your running kernel.
None of the pre-built vmmemctl modules for VMware Tools is suitable for your
Running kernel. Do you want this program to try to build the vmmemctl Module
For your system (you need to have a C compiler installed on your system )?
[Yes]
Using compiler "/usr/bin/GCC". Use environment variable CC to override.
What is the location of the directory of C header files that match your running
Kernel? [/Lib/modules/2.6.23.1-42. fc8/build/include]
Extracting the sources of the vmmemctl module.
Building the vmmemctl module.
Using 2.6.x kernel build system.
Make: Entering directory '/tmp/vmware-config0/vmmemctl-only'
Make-C/lib/modules/2.6.23.1-42. fc8/build/include/... subdirs = $ PWD srcroot = $ PWD/. Modules
Make [1]: Entering directory '/usr/src/kernels/2.6.23.1-42. fc8-i686'
CC [m]/tmp/vmware-config0/vmmemctl-only/OS. o
Shipped/tmp/vmware-config0/vmmemctl-only/vmmemctl1.o
LD [MB]/tmp/vmware-config0/vmmemctl-only/vmmemctl. o
Building modules, stage 2.
Modpost 1 modules
CC/tmp/vmware-config0/vmmemctl-only/vmmemctl. Mod. o
LD [MB]/tmp/vmware-config0/vmmemctl-only/vmmemctl. Ko
Make [1]: Leaving directory '/usr/src/kernels/2.6.23.1-42. fc8-i686'
CP-F vmmemctl. ko ../vmmemctl. o
Make: Leaving directory '/tmp/vmware-config0/vmmemctl-only'
The module loads perfectly in the running kernel.
Trying to find a suitable vmhgfs module for your running kernel.
None of the pre-built vmhgfs modules for VMware Tools is suitable for your
Running kernel. Do you want this program to try to build the vmhgfs module
Your system (you need to have a C compiler installed on your system )? [Yes]
Extracting the sources of the vmhgfs module.
Building the vmhgfs module.
Using 2.6.x kernel build system.
Make: Entering directory '/tmp/vmware-config0/vmhgfs-only'
Make-C/lib/modules/2.6.23.1-42. fc8/build/include/... subdirs = $ PWD srcroot = $ PWD/. Modules
Make [1]: Entering directory '/usr/src/kernels/2.6.23.1-42. fc8-i686'
CC [m]/tmp/vmware-config0/vmhgfs-only/backdoor. o
CC [m]/tmp/vmware-config0/vmhgfs-only/backdoorgcc32.o
CC [m]/tmp/vmware-config0/vmhgfs-only/bdhandler. o
CC [MB]/tmp/vmware-config0/vmhgfs-only/cpname. o
CC [m]/tmp/vmware-config0/vmhgfs-only/cpnamelinux. o
CC [m]/tmp/vmware-config0/vmhgfs-only/cpnamelite. o
CC [m]/tmp/vmware-config0/vmhgfs-only/dbllnklst. o
CC [MB]/tmp/vmware-config0/vmhgfs-only/dentry. o
CC [m]/tmp/vmware-config0/vmhgfs-only/Dir. o
CC [m]/tmp/vmware-config0/vmhgfs-only/eventmanager. o
CC [m]/tmp/vmware-config0/vmhgfs-only/file. o
CC [m]/tmp/vmware-config0/vmhgfs-only/filesystem. o
CC [m]/tmp/vmware-config0/vmhgfs-only/fsutil. o
CC [m]/tmp/vmware-config0/vmhgfs-only/hgfsbd. o
CC [m]/tmp/vmware-config0/vmhgfs-only/hgfsutil. o
CC [m]/tmp/vmware-config0/vmhgfs-only/inode. o
CC [m]/tmp/vmware-config0/vmhgfs-only/kernelstubslinux. o
CC [m]/tmp/vmware-config0/vmhgfs-only/link. o
CC [m]/tmp/vmware-config0/vmhgfs-only/message. o
CC [m]/tmp/vmware-config0/vmhgfs-only/module. o
CC [m]/tmp/vmware-config0/vmhgfs-only/page. o
CC [m]/tmp/vmware-config0/vmhgfs-only/request. o
CC [m]/tmp/vmware-config0/vmhgfs-only/rpcin. o
CC [m]/tmp/vmware-config0/vmhgfs-only/rpcout. o
CC [m]/tmp/vmware-config0/vmhgfs-only/staticescape. o
CC [m]/tmp/vmware-config0/vmhgfs-only/stubs. o
CC [MB]/tmp/vmware-config0/vmhgfs-only/super. o
LD [MB]/tmp/vmware-config0/vmhgfs-only/vmhgfs. o
Building modules, stage 2.
Modpost 1 modules
CC/tmp/vmware-config0/vmhgfs-only/vmhgfs. Mod. o
LD [m]/tmp/vmware-config0/vmhgfs-only/vmhgfs. Ko
Make [1]: Leaving directory '/usr/src/kernels/2.6.23.1-42. fc8-i686'
CP-F vmhgfs. ko ../vmhgfs. o
Make: Leaving directory '/tmp/vmware-config0/vmhgfs-only'
The module loads perfectly in the running kernel.
Pcnet32 31429 0
Unloading pcnet32 Module
Trying to find a suitable vmxnet module for your running kernel.
None of the pre-built vmxnet modules for VMware Tools is suitable for your
Running kernel. Do you want this program to try to build the vmxnet module
Your system (you need to have a C compiler installed on your system )? [Yes]
Extracting the sources of the vmxnet module.
Building the vmxnet module.
Using 2.6.x kernel build system.
Make: Entering directory '/tmp/vmware-config0/vmxnet-only'
Make-C/lib/modules/2.6.23.1-42. fc8/build/include/... subdirs = $ PWD srcroot = $ PWD/. Modules
Make [1]: Entering directory '/usr/src/kernels/2.6.23.1-42. fc8-i686'
CC [MB]/tmp/vmware-config0/vmxnet-only/vmxnet. o
Building modules, stage 2.
Modpost 1 modules
HTTP/tmp/vmware-config0/vmxnet-only/vmxnet. Mod. o
LD [m]/tmp/vmware-config0/vmxnet-only/vmxnet. Ko
Make [1]: Leaving directory '/usr/src/kernels/2.6.23.1-42. fc8-i686'
CP-F vmxnet. KO./../vmxnet. o
Make: Leaving directory '/tmp/vmware-config0/vmxnet-only'
The module loads perfectly in the running kernel.
Trying to find a suitable vmblock module for your running kernel.
None of the pre-built vmblock modules for VMware Tools is suitable for your
Running kernel. Do you want this program to try to build the vmblock Module
For your system (you need to have a C compiler installed on your system )?
[Yes]
Extracting the sources of the vmblock module.
Building the vmblock module.
Using 2.6.x kernel build system.
Make: Entering directory '/tmp/vmware-config0/vmblock-only'
Make-C/lib/modules/2.6.23.1-42. fc8/build/include/... subdirs = $ PWD srcroot = $ PWD/. Modules
Make [1]: Entering directory '/usr/src/kernels/2.6.23.1-42. fc8-i686'
CC [m]/tmp/vmware-config0/vmblock-only/Linux/block. o
CC [m]/tmp/vmware-config0/vmblock-only/Linux/control. o
CC [m]/tmp/vmware-config0/vmblock-only/Linux/dbllnklst. o
CC [m]/tmp/vmware-config0/vmblock-only/Linux/dentry. o
CC [m]/tmp/vmware-config0/vmblock-only/Linux/file. o
CC [m]/tmp/vmware-config0/vmblock-only/Linux/filesystem. o
CC [m]/tmp/vmware-config0/vmblock-only/Linux/inode. o
CC [m]/tmp/vmware-config0/vmblock-only/Linux/module. o
CC [m]/tmp/vmware-config0/vmblock-only/Linux/stubs. o
CC [m]/tmp/vmware-config0/vmblock-only/Linux/super. o
LD [m]/tmp/vmware-config0/vmblock-only/vmblock. o
Building modules, stage 2.
Modpost 1 modules
CC/tmp/vmware-config0/vmblock-only/vmblock. Mod. o
LD [m]/tmp/vmware-config0/vmblock-only/vmblock. Ko
Make [1]: Leaving directory '/usr/src/kernels/2.6.23.1-42. fc8-i686'
CP-F vmblock. ko ../vmblock. o
Make: Leaving directory '/tmp/vmware-config0/vmblock-only'
The module loads perfectly in the running kernel.
[Experimental] The Virtual Machine Communication Interface (VMCI) Service
Provides a new communication capability with the host, primarily
Development at the moment. wocould you like to enable this feature? [No]
Detected x.org version 1.3.
No drivers for x.org version: 1.3.
Please choose one of the following Display sizes that X will start with (1-
15 ):
[1] "640x480"
[2] <"800x600"
[3] "1024x768"
[4] "1152x864"
[5] "1280x800"
[6] "1152x900"
[7] "1280x1024"
[8] "1376x1032"
[9] "1400x900"
[10] "1400x1050"
[11] "1440x900"
[12] "1680x1050"
[13] "1600x1200"
[14] "1920x1200"
[15] "2364x1773"
Please enter a number between 1 and 15:
[2] 3
Starting VMware Tools Services in the virtual machine:
Switching to guest configuration: [OK]
Guest filesystem DRIVER: [OK]
Mounting HGFS shares: [failed]
Guest Memory Manager: [OK]
Guest vmxnet fast network device: [OK]
Blocking File System: [OK]
DMA setup: [OK]
Guest Operating System daemon: [OK]
/Etc/rc. d/init. d/vmware-tools: Line 822: vmware-guestd: Command not found
The configuration of VMware Tools 6.0.2 build-59824 for Linux 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:
"/Home/TSM/software/vmware-toolbox" during an X Server session.
To use the vmxnet driver, restart networking using the following commands:
/Etc/init. d/network stop
Rmmod pcnet32
Rmmod vmxnet
Modprobe vmxnet
/Etc/init. d/network start
To make use of the virtual printer, you will need to restart the CUPS service
Enjoy,
-- The VMware team

This is a method on the Internet. When the path "" is not valid appears in the installation process, and whether to change the path, press enter to keep repeating. solution:

There are two ways to choose from:
1. Run the su command on the terminal, enter the password as prompted, obtain the root permission, and then execute the following commands respectively:
(The kernel version number may be different here. Run uname-R on the terminal to view the current kernel version)
CD/usr/src/linux-headers-2.6.35-22-generic/include
CP-P generated/utsrelease. h Linux/utsrelease. h
CP-P generated/Autoconf. h Linux/Autoconf. h
Re-install VMware tools2, enter the terminal, and execute:
Sudo-S
CD/lib/modules/$ (uname-R)/build/include/Linux
Ln-S ../generated/utsrelease. h
Ln-S ../generated/Autoconf. h
Then reinstall VMware Tools.

The first method of installation appears.

Ubuntu VMware Tools make: *** [vsock. Ko] Error 2

No solution. Online conclusion about the VM version problem. You need to download the advanced version.]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.