Install VMware-tools In Debian

Source: Internet
Author: User
Install VMware-tools-Linux Release Technology-Debian In Debian. For details, refer to the following section. I have been trying to develop the S1mp3 project in Linux recently. However, after I installed Debian/Linux in VMware, I could not install VMware-tools. I collected some information on the Internet, but none of the materials were suitable for me, I can't help but start by myself. After several hours of hard work, I have finally solved the problem. Now I want to publish my methods to everyone to avoid detours.

The following commands are used: apt-get, apt-cache, and uname-.

First, check that when Debian is installed, there is no gcc or kernel header file installed.

Perform the following steps:

1. Select Vm> install vmware-tools from the vmware menu. At this time, vmware maps the installation file to your cdrom.

2. Enter your cdrom, right-click and copy vmwarw.ls-5.0-18463.tar.gz to the/tmp directory, right-click and choose extract. Of course, you can also use the command line method in these two steps. I am not familiar with the command line. Detailed command line methods can be found on the Internet.

3. Install the c compiler. (If gcc is not installed, run the which gcc command to check whether it has been installed ).

A. in the command line, type su (enter root for program installation, and normal users cannot use apt-get install). Enter the root password and then run the command line from qinfengling @ debian: $ change to debian:/home/qinfengling #

B: Then type apt-get install gcc in the command line. By default, the famous gcc compiler can be installed successfully.

4. Install kernel-header (mainly to solve What is the location of the directory of C header files that match your running kernel? The steps are as follows:

A. Type "uname-a" in the command line to view the version. My version is Linux debian 2.6.18-4-686.

B. Enter apt-cache search headers 2.6.18-4-686 (then search for the header file of the kernel)

C. Type the command to install: apt-get install Linux hearders-2.6.18-2-686

5. then you can proceed smoothly. first enter the/tmp/vmware-tools-distrib folder in the command line, and then enter. /vmware-install.pl, select the default installation on the line, encounter [yes] Input yes or y.

The following prompt appears:

A previous installation of VMware software has been detected.
The previous installation was made by the tar installer (version 3 ).
Keeping the tar3 installer database format.
Uninstalling the tar installation of VMware Tools.
Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: [OK]
File/etc/X11/xorg. conf is backed up to/etc/X11/xorg. conf. old.0.
File/etc/modprobe. conf is backed up to/etc/modprobe. conf. old.0.
The removal of VMware Tools 5.5.3 build-34685 for Linux completed successfully.
Thank you for having tried this software.
Installing the content of the package.
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/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?
[/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 5.5.3 build-34685 for Linux 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
Invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
This program to invoke the command for you now? [Yes] (run vmware-config-tools to configure)

Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: [OK]
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]
Using compiler "/usr/bin/gcc". Use environment variable CC to override.
9. Until this step is completed, copy and paste the path in step 1, and press enter until the screen resolution is selected.
What is the location of the directory of C header files that match your running
Kernel? [/Usr/src/kernels/2.6.18-1.2849.fc6-i686/include]
Extracting the sources of the vmhgfs module.
Building the vmhgfs module.
Using 2.6.x kernel build system.
Make: Entering directory '/tmp/vmware-config3/vmhgfs-only'
Make-C/usr/src/kernels/2.6.18-1.2849.fc6-i686/include/... SUBDIRS = $ pwd srcroot = $ PWD/. modules
Make [1]: Entering directory '/usr/src/kernels/2.6.18-1.2849.fc6-i686'
CC [MB]/tmp/vmware-config3/vmhgfs-only/cpName. o
CC [M]/tmp/vmware-config3/vmhgfs-only/cpNameLinux. o
CC [M]/tmp/vmware-config3/vmhgfs-only/dev. o
CC [M]/tmp/vmware-config3/vmhgfs-only/driver. o
CC [M]/tmp/vmware-config3/vmhgfs-only/hgfsUtil. o
CC [M]/tmp/vmware-config3/vmhgfs-only/main. o
CC [M]/tmp/vmware-config3/vmhgfs-only/staticEscape. o
LD [MB]/tmp/vmware-config3/vmhgfs-only/vmhgfs. o
Building modules, stage 2.
MODPOST
CC/tmp/vmware-config3/vmhgfs-only/vmhgfs. mod. o
LD [M]/tmp/vmware-config3/vmhgfs-only/vmhgfs. ko
Make [1]: Leaving directory '/usr/src/kernels/2.6.18-1.2849.fc6-i686'
Cp-f vmhgfs. ko ../vmhgfs. o
Make: Leaving directory '/tmp/vmware-config3/vmhgfs-only'
Unable to make a vmhgfs module that can be loaded in the running kernel:
Insmod: error inserting '/tmp/vmware-config3/vmhgfs. o':-1 Invalid module format
There is probably a slight difference in the kernel configuration between
Set of C header files you specified and your running kernel. You may want
Rebuild a kernel based on that directory, or specify another directory.
The filesystem driver (vmhgfs module) is used only for the shared folder
Feature. The rest of the software provided by VMware Tools is designed to work
Independently of this feature.
If you wish to have the shared folders feature, you can install the driver
Running vmware-config-tools.pl again after making sure that gcc, binutils, make
And the kernel sources for your running kernel are installed on your machine.
These packages are available on your distribution's installation CD.
[Press Enter key to continue]
Pcnet32 38085 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-config4/vmxnet-only'
Make-C/usr/src/kernels/2.6.18-1.2849.fc6-i686/include/... SUBDIRS = $ pwd srcroot = $ PWD/. modules
Make [1]: Entering directory '/usr/src/kernels/2.6.18-1.2849.fc6-i686'
CC [MB]/tmp/vmware-config4/vmxnet-only/vmxnet. o
Building modules, stage 2.
MODPOST
HTTP/tmp/vmware-config4/vmxnet-only/vmxnet. mod. o
LD [M]/tmp/vmware-config4/vmxnet-only/vmxnet. ko
Make [1]: Leaving directory '/usr/src/kernels/2.6.18-1.2849.fc6-i686'
Cp-f vmxnet. ko./../vmxnet. o
Make: Leaving directory '/tmp/vmware-config4/vmxnet-only'
Unable to make a vmxnet module that can be loaded in the running kernel:
Insmod: error inserting '/tmp/vmware-config4/vmxnet. o':-1 Invalid module format
There is probably a slight difference in the kernel configuration between
Set of C header files you specified and your running kernel. You may want
Rebuild a kernel based on that directory, or specify another directory.
The fast network device driver (vmxnet module) is used only for our fast
Networking interface. The rest of the software provided by VMware Tools is
Designed to work independently of this feature.
If you wish to have the fast network driver enabled, you can install the driver
By running vmware-config-tools.pl again after making sure that gcc, binutils,
Make and the kernel sources for your running kernel are installed on your
Machine. These packages are available on your distribution's installation CD.

Thank you for your success.
Related Article

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.