Knowledge Base
The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides

|
Compiling and deploying VMware Tools in virtual machines without GCC
Details
Solution
To compile and deploy VMware Tools in virtual machines without GCC:
- Find or create a virtual machine with GCC installed, running the kernel to which you want to deploy.
- Untar the VMware Tools installer tarball in that virtual machine and run the installer from the vmware-tools-distrib directory to generate the correct modules. Run config.pl from the installer or manually, and let it build the modules for the running kernel.
- Collect the generated modules from /lib/modules/<kernel>/misc, where <kernel> is the kernel version you are using.
Note: To find your exact kernel version, run the commanduname -r.
Example: In a 32-bit Ubuntu 10.10 virtual machine, this command returns2.6.35-28-generic. Your results may vary, even in a similar virtual machine, so be sure to check your own kernel version.
- Create a directory in vmware-tools-distrib/lib/modules/binary/<kernel> for the kernel you are running.
Example: In a 32-bit Ubuntu 10.10 virtual machine, running kernel version 2.6.35-28-generic, create a directory called2.6.35-28-generic.
- Create an objects directory under the directory created in step 4. Copy the module binary files you collected in step 3 into the objects directory.
- Create a file named properties under the directory created in step 4. Write the following lines in this file:
- UtsRelease <kernel>
Note: <kernel> must match the output of uname -r on the build system.
-
ModVersion <yes or no>
Note: ModVersion is yes if the kernel supports versioned modules, or no if the kernel does not support versioned modules. If the kernel has CONFIG_MODVERSIONS defined, set ModVersion to yes. - SMP <yes or no>
Note: SMP is yes if the running kernel is an SMP kernel, or no if the running kernel is not an SMP kernel.
-
PageOffset <C0000000 or 0000010000000000>
Note: PageOffset is C0000000 for 32-bit kernels, or 0000010000000000 for 64-bit kernels. - Comment <Any comment you want to enter>
Example: In the same Ubuntu 10.10 virtual machine, the file looks like this:UtsRelease 2.6.35-28-generic
ModVersion yes
SMP yes
PageOffset C0000000
Comment 2.6.35-28-generic Ubuntu 10.10
- UtsRelease <kernel>
- Run tar to create a new tarball from the vmware-tools-distrib directory (which now includes the modules you want).
- Distribute the tarball you just created to the virtual machines that you want to deploy.
Tags
Keywords
Update History
Request a Product Feature
To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.
Actions
- KB Article:
- Updated:
- Categories:
- Product Family:
- Products:
- Product Versions:

