MinhTech.com

Yet another technology tutorial blog.

Fedora Linux 16 Install VMware Tools

By • May 27th, 2010 • Category: Linux

Here is how to install vmware-tools on a Fedora Linux 13, 14, 15, or 16 guest.

First, Install the Dependencies:

> yum update
> shutdown -r now
> yum install gcc make kernel-devel perl

Perform an update to make sure you have the latest kernel, reboot Fedora, and then install the following packages: gcc, make, kernel-devel, and perl. Make sure the kernel and kernel-devel packages are the exact same version. If you are running 32-bit Fedora, install the kernel-PAE-devel package.

Next, Prepare the vmware-tools Installer:

> mkdir /mnt/cdrom
> mount /dev/cdrom /mnt/cdrom
> cd /tmp
> tar zxpf /mnt/cdrom/VMwareTools-8.4.6-385536.tar.gz
> umount /dev/cdrom

In the Virtual Machine menu, select Install VMware Tools. VMware Fusion will make an image appear to Fedora. Mount the image, uncompress the installer files to the temporary directory, and then unmount the image.

Finally, Execute the Installer:

> cd vmware-tools-distrib
> ./vmware-install.pl

Change to the vmware-tools-distrib directory and execute the Perl script, and then follow the prompts. As long as the dependencies were installed correctly, and the version of the kernel headers match the currently running kernel, the installer will automatically find all the directories that it needs.

is a technology junkie.
Email this author | All posts by

38 Responses »

  1. thanks, very usefull for newbie..

  2. Awesome! Worked a treat, thanks for the well compiled directions!! I appreciate it!

  3. This worked great for VMWare Fusion 3.1 running Fedora 13 64-bit. Thank you for the help!

  4. [...] me know if this method is useful for you or any difficulties.I got this idea originally from this post. [...]

  5. Thanks for this helpful info about installing vmware tools for Fedora Linux. Actually, I am using this method for the Fedora Linux 14 and found your written article very useful.
    I wish you a very happy, healthy, wealthy, and prosperous life.

  6. Thaks a lot, Muchas gracias.

  7. I follows all the steps described here, but I encountered compiling errors at the last step, error:
    /tmp/vmware-root/modules/vmhgfs-only/request.c:45:32 error: ‘SPIN_LOCK_UNLOCKED’ undeclared here
    And, there are other compiling errors in other c files in other vm modules, if I continue the process.

    My guest OS is Fedora 15 (kernel version, 2.6.40.3-0.fc15.i686), and I am using VMWare Player 3.1.4 build-385536.

    Thanks in advanced for your advices.

  8. From Mexico thank you very much, although I make my comment in the Google translator for not knowing English. The steps are very easy to understand. Thank you very much …

    Desde México muchas gracias, a pesar de que realice mi comentario en el traductor de Google por no saber ingles. Los pasos descritos son muy faciles de entender. Muchas gracias…

  9. Perfect, it also works for Fedora 16.

  10. thanks a lot! it is very useful. Fedora 16 has something different to the former version,, and you blog help me very much!

  11. Followed to the letter and worked a treat. Thank you for publishing this HOWTo for all us newbies!

  12. 谢谢!很好的方法。

  13. great help on Fedora 16.
    thanks

  14. Worked great. Thanks
    Fedora guest.
    Debian host.

  15. it helps a lot, thank you so much!

  16. I have access only to the guest. I has update the kernel (yum update). Is there a way to configure the vmxnet for new kernel before you reboot? Otherwise, the node becomes unavailable.

  17. Appreciated for the instruction. Good Job Minh!

  18. I hate to be the bearer of bad news. It did not work for me.

    Running VMWare Workstation 8.0.2 with Fedora 16 32Bit.

    I got as far as: mkdir /mnt/cdrom

    That’s it, I can’t do the next step, telling me there is no such directory. By reading again above, it says to install the kernel-PAE developer tools which I am not sure how to perform this step.

    Any help would greatly be appreciated.

    Thanks

  19. Rick, did you get successful prompt when you type the “yum install gcc make kernel-devel perl” command on the terminal as root user? If so then I assumed that your CD-ROM is mount to a different name instead of cdrom.
    When you type the “mount /dev/cdrom1 /mnt/cdrom” command, try to type “mount /dev/cdrom” and press tap key.
    I am running Fedora 16 on VMware 8.0 and instead of typing cdrom, I type cdrom1 as “mount /dev/cdrom1 /mnt/cdrom” and it work great for me.

  20. The installation says “Make sure the kernel and kernel-devel packages are the exact same version”. Can you please tell me how i can determine this?

  21. uname -r
    rpm -qa | grep kernel-devel

    The first command will list the kernel currently running. The second will list the kernel-devel packages installed. Make sure you have a kernel-devel package with the same version number as the running kernel. For example, those commands on my server output 2.6.32-220.7.1.el6.x86_64 and kernel-devel-2.6.32-220.7.1.el6.x86_64.

  22. Don’t know how it works for others, It never (f) works for me. Those are errors from the package itself

    CC [M] /tmp/vmware-root/modules/vmhgfs-only/kernelStubsLinux.o
    /tmp/vmware-root/modules/vmhgfs-only/fsutil.c: In function ‘HgfsChangeFileAttributes’:
    /tmp/vmware-root/modules/vmhgfs-only/fsutil.c:610:4: error: assignment of read-only member ‘i_nlink’
    /tmp/vmware-root/modules/vmhgfs-only/file.c:128:4: warning: initialization from incompatible pointer type [enabled by default]
    /tmp/vmware-root/modules/vmhgfs-only/file.c:128:4: warning: (near initialization for ‘HgfsFileFileOperations.fsync’) [enabled by default]
    make[2]: *** [/tmp/vmware-root/modules/vmhgfs-only/fsutil.o] Error 1
    make[2]: *** Waiting for unfinished jobs….
    /tmp/vmware-root/modules/vmhgfs-only/inode.c:121:4: warning: initialization from incompatible pointer type [enabled by default]
    /tmp/vmware-root/modules/vmhgfs-only/inode.c:121:4: warning: (near initialization for ‘HgfsDirInodeOperations.create’) [enabled by default]
    /tmp/vmware-root/modules/vmhgfs-only/inode.c:124:4: warning: initialization from incompatible pointer type [enabled by default]
    /tmp/vmware-root/modules/vmhgfs-only/inode.c:124:4: warning: (near initialization for ‘HgfsDirInodeOperations.mkdir’) [enabled by default]
    /tmp/vmware-root/modules/vmhgfs-only/tcp.c:53:30: error: expected ‘)’ before numeric constant
    /tmp/vmware-root/modules/vmhgfs-only/tcp.c:56:25: error: expected ‘)’ before ‘int’
    /tmp/vmware-root/modules/vmhgfs-only/tcp.c:59:33: error: expected ‘)’ before ‘int’
    make[2]: *** [/tmp/vmware-root/modules/vmhgfs-only/tcp.o] Error 1
    make[1]: *** [_module_/tmp/vmware-root/modules/vmhgfs-only] Error 2
    make[1]: Leaving directory `/usr/src/kernels/3.3.5-2.fc16.x86_64′
    make: *** [vmhgfs.ko] Error 2
    make: Leaving directory `/tmp/vmware-root/modules/vmhgfs-only’

  23. Thanks!!!Youre help was very usefull!!!

  24. I test this.. and works..after some days searching on webs..
    Install software needed by VMware Tools
    1. Install packages to build the kernel modules
    # yum install gcc kernel-PAE-devel // Yes.. “PAE”
    2. Reboot
    3. Try again install wmware tools.

  25. PD… In Fedora 17.

  26. It worked for me, thank you!

  27. I downloaded a VMware image of Fedora 16 at http://www.trendsigma.net/vmware/fedora16.html.

    I’m following instructions here but when I get to the step “mount /dev/cdrom /mnt/cdrom” I get a message that says “mount: special device /dev/cdrom does not exist”.

    Do you know what I should do to get /dev/cdrom installed?

  28. In VMware, did you go into the “Virtual Machine” menu and select “Install VMware Tools”?

  29. No, I had not reached that point in your instructions. I have now selected “Install VMware Tools” and was able to complete the mount step. But now for the tar step … I must have to get an ISO file which contains the VMware Tools. I checked the VMware web site and didn’t see an ISO for that. Any ideas?

  30. I was able to get past that problem … apparently earlier tries had left something messed up. Since I had made a snapshot before I started, I reverted to that and now I ran into the next problem:

    It says “What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include”. I found the source here /usr/src/kernels/3.6.6-1.fc16.i686/include/ and gave it that but it just gives the same question.

    Do you have any ideas?

  31. If you installed gcc, make, kernel-devel and perl, then the installer should be able to find the directories it needs automatically.

  32. I re-ran the procedure but end up with the same problem. A “uname -r” shows 3.6.6-1.fc16.i686 and the folder I give it is /usr/src/kernels/3.6.6-1.fc16.i686/include/

  33. I’m wondering if the wrong linux source is installed. uname -r shows 3.6.6-1.fc16.i686. The folder I have is /usr/src/kernels/3.6.6-1.fc16.8686/include but the perl script doesn’t like that. An ls of that folder shows lots of .h files.

  34. Is there a solution to my problem?

  35. Again, the procedure executes fine up to the point of building the vmmemctl module. The message I get is:

    “None of the pre-build 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”

    I answer “yes” and it then says:
    “Using compiler “/usr/bin/gcc”. Use environment variable CC to override.
    What is the location of the directory of the C header files that match your running kernel? [/usr/src/linux/include]”

    I press and it says:
    “The path “/usr/src/linux/include” is not an existing directory.”

    So I ran “uname -r” which gave me 3.6.7-4.fc16.i686 so I searched and found the includes and give it this:
    /usr/src/kernels/3.6.7-4.fc16.i686/include

    But after I enter that it just asks me the question again:

    Has anyone tried this lately? I think the update brought in a kernel that is not compatible with the VMwareTools-7.8.8-328052.i386. Does anyone know what I should try?

  36. Maybe this is a hint, when I run “rpm -aq | grep kernel-devel” I get two versions:
    kernel-devel-3.6.7-4.fc16.i686
    kernel-devel-3.6.6-1.fc16.i686

    uname -r shows
    3.6.7-4.fc16.i686

    and my prompts show the same thing.

  37. Another bit of information. ls /usr/src/kernels shows this:
    3.6.6-1.fc16.i686 3.6.7-4.fc16.i686
    3.6.6-1.fc16.i686.PAE 3.6.7-4.fc16.i686.PAE

    So I tried both 3.6.7′s and both were unacceptable as described in one of my above posts.

  38. What I really need most is to be able to use the VM/Settings/Options/Shared Folders and as far as I can tell I need the VMware tools to do that. If anyone knows different then please let me know how to use that feature.

Leave a Reply