VMware Communities
emfh7
Contributor
Contributor

Problem compiling vmmemctl module after hitting Fedora 8 update button

This worked before the kernel update. But now I have:

# uname -a

Linux localhost.localdomain 2.6.24.3-12.fc8 #1 SMP Tue Feb 26 14:21:30 EST 2008 x86_64 x86_64 x86_64 GNU/Linux

# vmware-config-tools.pl

Stopping VMware Tools services in the virtual machine:

Guest operating system daemon:

Blocking file system:

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)?

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?

Extracting the sources of the vmmemctl module.

Building the vmmemctl module.

Using 2.6.x kernel build system.

make: Entering directory `/tmp/vmware-config18/vmmemctl-only'

make -C /lib/modules/2.6.24.3-12.fc8/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules

make[1]: Entering directory `/usr/src/kernels/2.6.24.3-12.fc8-x86_64'

CC /tmp/vmware-config18/vmmemctl-only/os.o

In file included from /tmp/vmware-config18/vmmemctl-only/os.c:40:

/tmp/vmware-config18/vmmemctl-only/compat_wait.h:37:5: warning: "VMW_HAVE_EPOLL" is not defined

/tmp/vmware-config18/vmmemctl-only/compat_wait.h:43:5: warning: "VMW_HAVE_EPOLL" is not defined

In file included from /tmp/vmware-config18/vmmemctl-only/os.c:40:

/tmp/vmware-config18/vmmemctl-only/compat_wait.h:60: error: conflicting types for ‘poll_initwait’

include/linux/poll.h:65: error: previous declaration of ‘poll_initwait’ was here

make[2]: *** Error 1

make[1]: *** Error 2

make[1]: Leaving directory `/usr/src/kernels/2.6.24.3-12.fc8-x86_64'

make: *** http://vmmemctl.ko Error 2

make: Leaving directory `/tmp/vmware-config18/vmmemctl-only'

Unable to build the vmmemctl module.

Similar for vmhgfs so no more file sharing.

Is there a newer vmware tools I can download?

Any advice is much appreciated!

Thanks, Erwin

Reply
0 Kudos
10 Replies
EBeyer
Contributor
Contributor

I am running into the same/similiar issue when trying to run vmware-config-tools.pl on Ubuntu 8.0.4 alpha 6

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.24-11-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules

make[1]: Entering directory `/usr/src/linux-headers-2.6.24-11-generic'

CC /tmp/vmware-config4/vmmemctl-only/os.o

In file included from /tmp/vmware-config4/vmmemctl-only/os.c:40:

/tmp/vmware-config4/vmmemctl-only/compat_wait.h:37:5: warning: "VMW_HAVE_EPOLL" is not defined

/tmp/vmware-config4/vmmemctl-only/compat_wait.h:43:5: warning: "VMW_HAVE_EPOLL" is not defined

In file included from /tmp/vmware-config4/vmmemctl-only/os.c:40:

/tmp/vmware-config4/vmmemctl-only/compat_wait.h:60: error: conflicting types for âpoll_initwaitâ

include/linux/poll.h:65: error: previous declaration of âpoll_initwaitâ was here

make[2]: *** Error 1

make[1]: *** Error 2

make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-11-generic'

make: *** http://vmmemctl.ko Error 2

make: Leaving directory `/tmp/vmware-config4/vmmemctl-only'

Unable to build the vmmemctl module.

Building the vmhgfs module.

Using 2.6.x kernel build system.

make: Entering directory `/tmp/vmware-config5/vmhgfs-only'

make -C /lib/modules/2.6.24-11-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules

make[1]: Entering directory `/usr/src/linux-headers-2.6.24-11-generic'

CC /tmp/vmware-config5/vmhgfs-only/backdoor.o

CC /tmp/vmware-config5/vmhgfs-only/backdoorGcc64.o

CC /tmp/vmware-config5/vmhgfs-only/bdhandler.o

In file included from /tmp/vmware-config5/vmhgfs-only/dbllnklst.h:14,

from /tmp/vmware-config5/vmhgfs-only/vmrpc.h:17,

from /tmp/vmware-config5/vmhgfs-only/hgfsBd.h:14,

from /tmp/vmware-config5/vmhgfs-only/bdhandler.c:29:

/tmp/vmware-config5/vmhgfs-only/vm_basic_types.h:168: error: redefinition of typedef âuintptr_tâ

include/linux/types.h:40: error: previous declaration of âuintptr_tâ was here

In file included from /tmp/vmware-config5/vmhgfs-only/request.h:21,

from /tmp/vmware-config5/vmhgfs-only/bdhandler.c:34:

/tmp/vmware-config5/vmhgfs-only/compat_wait.h:37:5: warning: "VMW_HAVE_EPOLL" is not defined

/tmp/vmware-config5/vmhgfs-only/compat_wait.h:43:5: warning: "VMW_HAVE_EPOLL" is not defined

In file included from /tmp/vmware-config5/vmhgfs-only/request.h:21,

from /tmp/vmware-config5/vmhgfs-only/bdhandler.c:34:

/tmp/vmware-config5/vmhgfs-only/compat_wait.h:60: error: conflicting types for âpoll_initwaitâ

include/linux/poll.h:65: error: previous declaration of âpoll_initwaitâ was here

make[2]: *** Error 1

make[1]: *** Error 2

make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-11-generic'

make: *** http://vmhgfs.ko Error 2

make: Leaving directory `/tmp/vmware-config5/vmhgfs-only'

Unable to build the vmhgfs module.

The vmblock module also failed by default but the update in vmware-any-any-update115a.tgz resolved the issue when building vmblock.

I hope someone has an answer either before or shortly after 8.04 is released.

Cheers,

Eric

Reply
0 Kudos
DeafMCSA
Enthusiast
Enthusiast

try this vmware-any-any-update116: http://vmkernelnewbies.googlegroups.com/web/vmware-any-any-update-116.tgz?gda=2v9KT04AAAAGlSSxO40Vbd...

That may resolve the issue you may be having.

Reply
0 Kudos
uy
Enthusiast
Enthusiast

http://communities.vmware.com/message/882446?tstart=15#882446

There are several similar reports here. And accordingly 32 bit hosts can be solved by vmware-any-any-update116 but not the 64 bit.

u.y.

u.y.
Reply
0 Kudos
DeafMCSA
Enthusiast
Enthusiast

I am running Fedora 64 and VMware workstation 6.x. You may have to uninstall Workstation and reinstall workstation and then run ./runme.pl from vmware-any-any-update116. This had resolved the issue after the new kernel update that Fedora released. I have no issue after this method.

Reply
0 Kudos
anti_scsi
Contributor
Contributor

Feedback:

with FC8_x86_64 STILL CAN NOT get success. kernel is :

# cat /proc/version
Linux version 2.6.24.3-12.fc8 (mockbuild@xenbuilder2.fedora.redhat.com)
(gcc version 4.1.2 20070925 (Red Hat 4.1.2-33)) #1 SMP Tue Feb 26
14:21:30 EST 2008

I have done complete UNINSTALL of VMWARE:

sudo rpm -e VMwareWorkstation-6.0.2-59824

then reinstalled VM WS6 using the same 59824 build, then use vmware-any-any-update116

cd 'vmware-any-any-update116'
./runme.pl

I will not post the complete output again because it is the same, which failed at:

Unable to build the vmmon module

When the perl script aborted.

:-Z

Reply
0 Kudos
Mufassa
Contributor
Contributor

Hi,

An interesting problem this one. Having just spent 2 hours trying to resolve it (especially after I made the mistake of upgrading all 30 of my dev VM's to the latest FC8 kernel before trying vmware tools), I cracked it I think. The solution, however, is messy and only for the people having the vmware-tools problems above. I am no expert, this might be completely wrong, rubbish, against every best practice known to man, so use at your own risk - and chances are vmware will fix the official tools soon I would have thought so you might be best waiting.

In essence, I stumbled across open-vm-tools, what appears to be the open source version of the vmware-tools. Finding no way to install the open source version directly (and not being one to read documentation or work out how to package it myself), I played about and realised you can copy each of the (tared) modules out of the open-vm-tools and into the vmware tools distribution. Since the open-vm-tools build easily with a ./configure, make and 'make modules', this should be quite easy.

Here is the general gist I got to work:

  1. Download the latest open-vm-tools tar from and extract it (tar -xvf)

  2. Follow the open-vm-tools INSTALL document, just to check these actually build. If they don't, it's a no-go and not going to be a solution for you.

  3. Grab the latest VMWare Tools (i.e. mount it using the "Install VMware Tools" option in Vmware Workstation, or wherever)

  4. Grab the VMWare tools tar, and extract it to a seperate directory (you now have two directories - one with the official tools, one with the open-vm-tools)

  5. Goto the open-vm-tools/modules/linux directory. For each directory:
    a) Rename it to xxx-only (i.e. vmmemctl becomes vmmemctl-only)
    b) Then, tar each directory as follows: "tar -cf xxx.tar xxx-only". For example, "tar -cf vmmemctl.tar vmmemctl-only"

  6. Once each directory is tarred, copy the tars overwriting the existing vmware-tools official ones. The official tars are located in vmware-tools-distrib/lib/modules/source. So, for example, do a: "cp open-vm-tools/modules/linux/.tar vmware-tools-distrib/lib/modules/source/", and overwrite each one.

  7. Re-run vmware-config-tools.pl, and build each module. Do not say yes to the experimental option (might work, but have not tested it - can't see the matching open source modules tho...).

  8. Poof - should all work. Test a shared folder appears under /mnt/hgfs/ to make sure things are working for you.

In essence, you end up using the open source versions of vmxnet, vmmemctl, vmhgfs and vmblock. This might be a useful fix in the future too - since vmware tools seem to break regularly when some new kernel comes out... the open source version seems to be updated more frequently.

Of course, this might be fluke - so feel free to let me know :smileycool:

Dan

Reply
0 Kudos
R_Michel
Contributor
Contributor

Hi,

Will this also fix the problem with the xorg driver?

At the moment My VM refuses to play mplayer -vo Xv, and instead only works using x11 (which doesn't fullscreen movies).

Thanks,

Robbert

Reply
0 Kudos
salzhering
Contributor
Contributor

The solution of Mufassa is still valid today. I spent some time to find out myswlf and came to a similar solution for Ubuntu 8.04 before i accidentially found this post. See my approach at: http://100days.de/serendipity/archives/46-vmware-tools-on-ubuntu-8.04.html

Reply
0 Kudos
nextech
Enthusiast
Enthusiast

Mufasa,

I stumbled across your post while trying to figure out a fix for getting VMWare Tools to work on Ubuntu 8.10 Guest OS. Your post was extremely helpful in finding a solution.

For anyone looking for a solution for installing VMWare Tools under Ubuntu 8.10 guest OS (32-bit or 64-bit) the solution can be found here:

http://communities.vmware.com/message/1129103

Reply
0 Kudos
Jamin
Contributor
Contributor

I have a related issue with Mandriva Linux. If I use Workstation to build a VM, I don't suppose I can move that VM to ESX or ESXi without changing out the VMware Tools. Pity.

Reply
0 Kudos