Quick Guide: Installing VMware Tools with Fedora 12

Posted by Kevin Hanson | Posted in Linux, Technology | Posted on 25-01-2010-05-2008

33

After installing Fedora 12 on a new virtual machine with VMware (I use Fusion on the Mac), the first thing you’ll likely want to do is install VMware tools. You need to install a few packages in order to make the installation seamless, however. There are countless posts around the internet with people looking for help with this. Here’s a quick 15 step guide to getting up and running.

  1. Download Fedora 12.
  2. Install the OS.
  3. Boot up the virtual machine.
  4. Open up the Terminal.
  5. Run “su” and type your root password to gain administrative control.
  6. Run “yum update” to update all the packages to the newest version.
  7. Reboot.
  8. Open up the Terminal.
  9. Run “yum install kernel-devel kernel-headers gcc mkinitrd”
  10. Reboot.
  11. Click the menu option in your VMware application to install VMware tools. This should put a compressed folder on the desktop.
  12. Expand the zip file and using the terminal, navigate into the newly created directory.
  13. As the root user, type “./vmware-install.pl”
  14. When it asks you questions and prompts you for a response, just hit enter. Everything should be properly configured at this point.
  15. Reboot when the script finishes. That’s it!

Once the machine reboots, you should be able to immediately play with some of the more useful features of vmware-tools. For example, you’ll notice that if you drag the edges of the window to resize it, the resolution of the Guest OS will automatically adjust on the fly. If you drag files from your Host OS into the window of the desktop OS, they will copy over. Additionally, you should be able to copy and paste between the two systems. Enjoy!

Comments posted (33)

[...] you need to update and configure Fedora 12, you can find a good tutorial for this here which details how to install vmware-tools.  I have reproduced it below with some extra steps [...]

This worked so well. Thanks a bunch.
I’ve attempted to use vmware tools with several distros and this was not only one of the easiest installs but the steps worked perfectly. This will make my first try at Fedora much more pleasent.

Not sure what the problem is, but I am still not able to install Vmware Tools on my Fedora 12. I think the kernel version is more recent that the installer script. I have tried many solutions posted on various websites, but here is where it is failing every time:

Searching for a valid kernel header path…
The path “” is not valid.
Would you like to change it? [yes]

I cannot figure out what the correct path is. Can somebody please help?

@Albert Roman
Albert,
are you being sure to reboot when i mention to reboot? After you install the proper packages, you’ll need to restart in order for the installer to detect the location of the files. Hope that helps!

@Barry Ritter
Glad it worked!!!

@Kevin Hanson
Kevin,

First of all, thank you for the help and for the follow-up. I was not 100% sure if I had rebooted before, so i went ahead and did it all over again, this time rebooting as you indicated. I am still getting the exact same error as before. What do you think?

AR

Excelent!
Used with Fedora12 (2.6.31.12-174.2.22) on VMWare7 running on Windows7.
thank you!

Does not work with kernel 2.6.31.12-174.2.22.fc12.i686.PAE

Leo,

That explains it. I am running kernel 2.6.31.12-174.2.22.fc12.i686.PAE. It clearly does not work. At least, there is an explanation. I will open a ticket with Vmware to see if they have an updated version of vmwaretools.

Thanks.

AR

I’m running kernel 2.6.32.9-70.fc12.i686 . After following the above instructions carefully, vmware claims that I need to run vmware-config-tools.pl again 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 distributions installation CD”

However, when I run yum install of : gcc , binutils, make, and kernel-devel ,
each time I get that it’s already installed and the latest version (nothing to do). Do I need more than kernel-devel to have the “sources for your running kernel”?

Despite getting the errors I described above, many of the VMWARE tools features seem to be working decently. I’m not sure if this helped, but I also ran

yum -y install gcc kernel-devel patch make

before re-running vmware-config-tools.pl, as described in one of the links (“with people looking for help with this”). After vmware-config-tools.pl I ran vmware-user manually and things like drag & drop file transfer and resolution reset on window resize began working.

thanks that worked for me.just after last step if the size look likes same just drag and drop a small file or folder from desktop to fedora12 machine and it will work fine.well done linux communities

Nice guide. It was pretty straightforward and easy to follow.

Albert,
Ran into the same problem but found the solution was to do this as root:
yum install kernel-PAE-devel
That will give you the headers for the PAE kernel and let VMware Tools compile all need modules.
Hope this helps.

That worked for me. Many thanks.

I’m sorry to bother you but I have no choice in the matter. While installing the tools according to the very clear specification above(thanks !!!), the system keeps requesting the location of the directory where the C-headers that match my running kernel. Neither “enter” nor /usr/src/2.6 …./include/linux/ (if that is indeed the right directory) does not resolve this problem.

I’ll be most thankful if you could help me.

Thanks a lot

Arik

how to navigate into new directory in terminal..im a nub..know nothing about fedora

@Arik – You need to run

yum install kernel-devel

That should resolve your issues.

[...] こちらを参考にしました。Quick Guide: Installing VMware Tools with Fedora 12 Tags: Fedora, Linux, VMware [...]

Hi great advice.

I run into the PAE kernel issue. For me the solution was to go to System->Administration->Bootloader and choose the non-PAE kernel for which the sources in /usr/src are installed.

I suppose there might be kernel-devel-pae packages that one needs to install otherwise.

Thanks for the post, it’s really accurate and helpful, appreciate your hardwork.

Yeah Maracuyeah! it did for me. Although i didnt need to download all the packages in the command yum update, i just ran it and then quit before updating.

Hello,

me to facing the same issue, am running PAE version of Kernel 2.6.32.16-150.fc12.i686,

install kernel-header, kernel -pae-dev, patch, make, gcc

But still am unable to solve the vmware tools installation issue

Whether this guild works or not depends not only on what version of the kernel you have, but also what version of VMware! If you have VMware 7 it works fine, if you have VMware 5 it doesn’t work at all.

Kevin,

First, thanks for taking the time to document this. I was having problems and this definitely put me on the right path. However, I’m still having problems and I’m hoping someone here can help.

I’m trying to run FC12 as a guest under ESX 3.5. I can’t upgrade to ESX 4.0 due to hardware compatibility issues.

I follow the steps above (yum update and installing the PAE kernel headers/etc). When I try to run the configure script, I get output like this for almost every piece it tries to build:

[root@localhost bin]# ./vmware-config-tools.pl

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.32.21-168.fc12.i686.PAE/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-config4/vmmemctl-only’
make -C /lib/modules/2.6.32.21-168.fc12.i686.PAE/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.32.21-168.fc12.i686.PAE’
CC [M] /tmp/vmware-config4/vmmemctl-only/backdoorGcc32.o
In file included from /tmp/vmware-config4/vmmemctl-only/backdoor.h:29,
from /tmp/vmware-config4/vmmemctl-only/backdoorGcc32.c:45:
/tmp/vmware-config4/vmmemctl-only/vm_basic_types.h:119:7: warning: “__FreeBSD__” is not defined
CC [M] /tmp/vmware-config4/vmmemctl-only/os.o
In file included from /tmp/vmware-config4/vmmemctl-only/os.c:51:
/tmp/vmware-config4/vmmemctl-only/compat_wait.h:78: error: conflicting types for ‘poll_initwait’
include/linux/poll.h:70: note: previous declaration of ‘poll_initwait’ was here
make[2]: *** [/tmp/vmware-config4/vmmemctl-only/os.o] Error 1
make[1]: *** [_module_/tmp/vmware-config4/vmmemctl-only] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.32.21-168.fc12.i686.PAE’
make: *** [vmmemctl.ko] Error 2
make: Leaving directory `/tmp/vmware-config4/vmmemctl-only’
Unable to build the vmmemctl module.

Can someone point me in the right direction?

[...] I searched and searched online but could not find a solution that worked for me, until I came across this site, which I followed and it worked perfectly! http://www.crazyhawt.com/2010/01/25/quick-guide-installing-vmware-tools-with-fedora-12/ [...]

[...] Quick Guide: Installing VMware Tools with Fedora 12 | Crazy Hawt (tags: fedora linux vmware virtualization) [...]

the different versions of kernel and kernel-devel will also caused this issue.

yum upgrade kernel kernel-devel -y

reinstall vm-tools.

you should reboot to make them valid.

Thanks man !! It really works !!! Great.. thanks a million !!

Wouldn’t you think that a company like VMWare would have a Yum Repo for these tools?

I don’t have access to the “VMware application” that you mention in step 11. I have both root access to the VM instance and access to vSpere.

Is there another way to get this installed, preferably an rpm via a yum repo?

mrdvt92

I got this to work – thanks! – but when I reboot my virtual machine, my shared folder is gone from mnt/hgfs and I have to reinstall the VMware Tools. Anything I can do to not have to reinstall them every time I reboot?

Write a comment