VMware Communities
Tex-Twil
Contributor
Contributor

vmware tools in a Ubuntu Gusty guest (2.6.22)

Hi,

I'm trying to install vmware tools on a guest Gusty distribution. I have a problem with the vmware-config-tools.pl phase. It says that the headers of my kernel are different from the kernel I'm running.

Unable to make a vmhgfs module that can be loaded in the running kernel:

insmod: error inserting '/tmp/vmware-config0/vmhgfs.o': -1 File exists

There is probably a slight difference in the kernel configuration between the

set of C header files you specified and your running kernel. You may want to

rebuild a kernel based on that directory, or specify another directory.

I did install the headers

sudo aptitude install linux-headers-$(uname -r)

I've seen some discussion about this problem here but none of them helped me to find the solution. There is the "any-to-any" patch but this is for the host and I'm having this troubles in a guest

thanks.

0 Kudos
7 Replies
Noel
Expert
Expert

Not that this is what you want to hear, but I'm running Gutsy in a guest, and had zero problem with what you describe. I did have to fix the one file in the vmhgfs tar before building, but other than that it has been good.

What are your packages? I have:

ii linux-headers-2.6.22-14 2.6.22-14.46 Header files related to Linux kernel version

ii linux-headers-2.6.22-14-generic 2.6.22-14.46 Linux kernel headers for version 2.6.22 on x

ii linux-headers-generic 2.6.22.14.21 Generic Linux kernel headers

ii linux-image-2.6.22-14-generic 2.6.22-14.46 Linux kernel image for version 2.6.22 on x86

ii linux-image-generic 2.6.22.14.21 Generic Linux kernel image

By any chance, have you updated to Gutsy from Feisty, and not rebooted yet, so you are running on an older kernel?

--- Noel

0 Kudos
duckolay
Contributor
Contributor

I have the same problem with Ubuntu Gusty guest (2.6.22) and VMware Workstation 6.02 b59824 , host XP sp2 (

Noel, glad it worked for you, but could you tell us what exactly you did?

thanks

0 Kudos
Tex-Twil
Contributor
Contributor

Hi,

It's a fresh install of Gusty in Vmware 6.0.2 host running in Vista. The kernel I'm running is 2.6.22.14-generic.

0 Kudos
Noel
Expert
Expert

  1. Updated from Feisty to Gutsy.

  2. Unpacked the vmware tools tar under /tmp.

  3. Unpacked vmware-tools-distrib/lib/modules/source/vmhgfs.tar

  4. Fixed compat_slab.h

  5. Re-rolled vmhgfs.tar

  6. Ran the install script.

  7. Fixed vmware-config-tools.pl for the XOrg 7.2 reporting as 1.3 fix.

  8. Ran vmware-config-tools.pl

0 Kudos
Tex-Twil
Contributor
Contributor

Hi,

and what are the fixes you are talking about ? What do they consist of ? where have you found them ?

thanks

0 Kudos
Noel
Expert
Expert

Please note that the fix for the second one needs to be understood, not performed by rote, since the file in VMware Tools Build 59824 does not match exactly what is described in the post for VMware Fusion.

0 Kudos
Tex-Twil
Contributor
Contributor

Hi,

thank you it worked perfectly Smiley Wink

cheers

0 Kudos