VMware tools and kernel 2.6.25

This section covers everything that is related to VMware on Linux hosts and VMs with Linux as guest OS

VMware tools and kernel 2.6.25

Postby BeGe » Mon Apr 21, 2008 6:04 pm

Hello,
I followed the latest version of your patch for vmware tools (3.5.0-64607) on a new 2.6.25-1.fc9.i686 from FEDORA core 9 but got a problem.
First i am a little bit amazed of the vmware tools version as i have xen 3.1.2-2 and the original vmware tools versions is 1.0.5-80187. The the numbering is strange.
I followed your method step by step and when Building the vmhgfs module, i got the following error:
Code: Select all
Using 2.6.x kernel build system.
make: entrant dans le répertoire « /tmp/vmware-config10/vmhgfs-only »
make -C /lib/modules/2.6.25-1.fc9.i686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: entrant dans le répertoire « /usr/src/kernels/2.6.25-1.fc9.i686 »
  CC [M]  /tmp/vmware-config10/vmhgfs-only/backdoor.o
  CC [M]  /tmp/vmware-config10/vmhgfs-only/backdoorGcc32.o
  CC [M]  /tmp/vmware-config10/vmhgfs-only/bdhandler.o
Dans le fichier inclus à partir de /tmp/vmware-config10/vmhgfs-only/request.h:35,
          à partir de /tmp/vmware-config10/vmhgfs-only/bdhandler.c:48:
/tmp/vmware-config10/vmhgfs-only/compat_wait.h:55:5: attention : « VMW_HAVE_EPOLL » n'est pas défini
/tmp/vmware-config10/vmhgfs-only/compat_wait.h:61:5: attention : « VMW_HAVE_EPOLL » n'est pas défini
In file included from /tmp/vmware-config10/vmhgfs-only/request.h:35,
                 from /tmp/vmware-config10/vmhgfs-only/bdhandler.c:48:
/tmp/vmware-config10/vmhgfs-only/compat_wait.h:78: erreur: conflicting types for ‘poll_initwait’
include/linux/poll.h:65: erreur: previous declaration of ‘poll_initwait’ was here
make[2]: *** [/tmp/vmware-config10/vmhgfs-only/bdhandler.o] Erreur 1
make[1]: *** [_module_/tmp/vmware-config10/vmhgfs-only] Erreur 2
make[1]: quittant le répertoire « /usr/src/kernels/2.6.25-1.fc9.i686 »
make: *** [vmhgfs.ko] Erreur 2
make: quittant le répertoire « /tmp/vmware-config10/vmhgfs-only »
Unable to build the vmhgfs module.


Apparently things go right for the rest as at the end of compilation i have:
Code: Select all
Starting VMware Tools services in the virtual machine:
   Switching to guest configuration:                       [  OK  ]
   Guest vmxnet fast network device:                       [  OK  ]
   DMA setup:                                              [  OK  ]
   Guest operating system daemon:                          [  OK  ]


Do you think its the new version of the kernel that creates the problem ? I have seen that you have different patch version depending on the kernel.

Thanks to have a look.
BeGe
Private
Private
 
Posts: 4
Joined: Mon Apr 21, 2008 5:47 pm

Re: VMware tools and kernel 2.6.25

Postby tuxx-home.at » Mon Apr 21, 2008 7:44 pm

No, this is an error in the build system (especially the Makefile). It uses scripts to determine wheter your system has EPOLL defined or not and it fails doing this and therefore assumes that your system doesn't have polling support enabled. That's the reason why you're getting this error.

The following patch I previously created for such issues should help you out:

[http://projects.tuxx-home.at/vmware/tools/3.5.0-64607/Makefile.kernel-VMW_HAVE_EPOLL-fix.diff]

the original vmware tools versions is 1.0.5-80187


Hmm... that's strange. What VMware Product is this? VMware Player maybe?

The reason why the above mentioned patch isn't integrated in my patched tar-balls is that you never know if a system needs this fix or not and therefore I've come up with a different fix for that in the source-code of vmhgfs, trying to determine wheter polling is enabled in the kernel directly and if it is, omit the re-definition of this symbols.
As I've never seen your tools version I probably haven't prepared tar-balls available for this version, so you now have two options:

1. Send me the VMware-tools-*.tar.gz package and I'll fix that for you
2. Go and do it yourself with the following instructions

Code: Select all
# Change to the modules source of your VMware Tools installation
cd /usr/lib/vmware-tools/modules/source    # don't know out of mind if this directory is correct, it should contain the tar-balls vmhgfs.tar, etc.

# Backup the original vmhgfs.tar file
cp vmhgfs.tar vmhgfs.tar.orig

# Extract vmhgfs.tar to a temporary location
tar xf vmhgfs.tar

# Change to the extracted directory
cd vmhgfs-only

# Apply the patch
patch </path/to/downloaded/Makefile.kernel-VMW_HAVE_EPOLL-fix.diff

# Re-tar it
cd ..
tar cf vmhgfs.tar vmhgfs-only

# Rerun vmware-config-tools.pl
vmware-config-tools.pl


This should work and if it doesn't, follow up here again :)
User avatar
tuxx-home.at
Supreme Commander
Supreme Commander
 
Posts: 2199
Joined: Mon Jan 01, 2007 12:51 pm
Location: Vassach - Austria - Europe

Re: VMware tools and kernel 2.6.25

Postby sunspots » Tue Apr 22, 2008 10:52 am

I also have the tools 1.0.5-80187 and getting the error of conflicting types for 'uintptr_t

This was before and after deleting the files and replacing them with your versions.

My vmWare & Linux guest are:
- vmWare Server 1.0.5 build 80187
- kubuntu 8.04 RC Linux version 2.6.24-12 (maybe now 16-generic)

I'll have a look at your suggestion for the changes.

Thanks for assistance.

Edited: added linux version
sunspots
Private
Private
 
Posts: 4
Joined: Tue Apr 22, 2008 10:44 am

Re: VMware tools and kernel 2.6.25

Postby tuxx-home.at » Tue Apr 22, 2008 11:01 am

Oh, ok, the tools are from VMware Server. I've installed it on my notebook, so I'll have a look at this tools-version in a few minutes.
User avatar
tuxx-home.at
Supreme Commander
Supreme Commander
 
Posts: 2199
Joined: Mon Jan 01, 2007 12:51 pm
Location: Vassach - Austria - Europe

Re: VMware tools and kernel 2.6.25

Postby tuxx-home.at » Tue Apr 22, 2008 3:14 pm

OK, I uploaded the patches and modified tarballs, please try them and report back whether they worked.

[http://projects.tuxx-home.at/vmware/tools/1.0.5-80187/]

vmhgfs, vmmemctl and vmxnet needed changes, vmdesched compiled without problems on 2.6.24.3.
User avatar
tuxx-home.at
Supreme Commander
Supreme Commander
 
Posts: 2199
Joined: Mon Jan 01, 2007 12:51 pm
Location: Vassach - Austria - Europe

Re: VMware tools and kernel 2.6.25

Postby sunspots » Tue Apr 22, 2008 5:44 pm

Hi
Thanks for producing the replacement tar files.

I copied the files from the link and replaced the ones in "vmware-tools-distrib / lib / module / source". Re-executed the vmware-config-tools.pl but received the errors shown below.

Was there something else that needs to happen with those files?
Thanks

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmhgfs-only'
make -C /lib/modules/2.6.24-16-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-16-generic'
CC [M] /tmp/vmware-config0/vmhgfs-only/cpName.o
In file included from include/linux/string.h:11,
from /tmp/vmware-config0/vmhgfs-only/cpName.h:18,
from /tmp/vmware-config0/vmhgfs-only/cpName.c:18:
include/linux/types.h:40: error: conflicting types for ‘uintptr_t’
/tmp/vmware-config0/vmhgfs-only/vm_basic_types.h:161: error: previous declaration of ‘uintptr_t’ was here
make[2]: *** [/tmp/vmware-config0/vmhgfs-only/cpName.o] Error 1
make[1]: *** [_module_/tmp/vmware-config0/vmhgfs-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-16-generic'
make: *** [vmhgfs.ko] Error 2
make: Leaving directory `/tmp/vmware-config0/vmhgfs-only'
Unable to build the vmhgfs module.

The filesystem driver (vmhgfs module) is used only for the shared folder
feature. The rest of the software provided by VMware Tools is designed to work
independently of this feature.
If you wish to have the shared folders feature, you can install the driver by
running vmware-config-tools.pl again after 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 distribution's installation CD.
[ Press Enter key to continue ]

pcnet32 34820 0
Unloading pcnet32 module

Trying to find a suitable vmxnet module for your running kernel.

None of the pre-built vmxnet modules for VMware Tools is suitable for your
running kernel. Do you want this program to try to build the vmxnet module for
your system (you need to have a C compiler installed on your system)? [yes]

Extracting the sources of the vmxnet module.

Building the vmxnet module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config1/vmxnet-only'
make -C /lib/modules/2.6.24-16-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-16-generic'
CC [M] /tmp/vmware-config1/vmxnet-only/vmxnet.o
In file included from /tmp/vmware-config1/vmxnet-only/vmxnet.c:36:
/tmp/vmware-config1/vmxnet-only/vm_basic_types.h:161: error: conflicting types for ‘uintptr_t’
include/linux/types.h:40: error: previous declaration of ‘uintptr_t’ was here
/tmp/vmware-config1/vmxnet-only/vmxnet.c: In function ‘vmxnet_probe_device’:
/tmp/vmware-config1/vmxnet-only/vmxnet.c:473: error: implicit declaration of function ‘SET_MODULE_OWNER’
/tmp/vmware-config1/vmxnet-only/vmxnet.c: In function ‘vmxnet_open’:
/tmp/vmware-config1/vmxnet-only/vmxnet.c:671: error: ‘SA_SHIRQ’ undeclared (first use in this function)
/tmp/vmware-config1/vmxnet-only/vmxnet.c:671: error: (Each undeclared identifier is reported only once
/tmp/vmware-config1/vmxnet-only/vmxnet.c:671: error: for each function it appears in.)
/tmp/vmware-config1/vmxnet-only/vmxnet.c:671: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
make[2]: *** [/tmp/vmware-config1/vmxnet-only/vmxnet.o] Error 1
make[1]: *** [_module_/tmp/vmware-config1/vmxnet-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-16-generic'
make: *** [vmxnet.ko] Error 2
make: Leaving directory `/tmp/vmware-config1/vmxnet-only'
Unable to build the vmxnet module.

The fast network device driver (vmxnet module) is used only for our fast
networking interface. The rest of the software provided by VMware Tools is
designed to work independently of this feature.
If you wish to have the fast network driver enabled, you can install the driver
by running vmware-config-tools.pl again after 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 distribution's installation CD.
[ Press Enter key to continue ]



Detected X.org version 0.0.0.



No drivers for X.org version: 0.0.0.



Do you want to change your guest X resolution? (yes/no) [no]

Starting VMware Tools services in the virtual machine:
Switching to guest configuration:-ne done

DMA setup:-ne done

Guest operating system daemon:-ne done


The configuration of VMware Tools 1.0.5 build-80187 for Linux for this running
kernel completed successfully.

You must restart your X session before any mouse or graphics changes take
effect.

You can now run VMware Tools by invoking the following command:
"/usr/bin/vmware-toolbox" during an X session.

Enjoy,

--the VMware team
sunspots
Private
Private
 
Posts: 4
Joined: Tue Apr 22, 2008 10:44 am

Re: VMware tools and kernel 2.6.25

Postby tuxx-home.at » Tue Apr 22, 2008 5:48 pm

I copied the files from the link and replaced the ones in "vmware-tools-distrib / lib / module / source".


That was the wrong directory.
If you gonna replace the files in the distrib directory, you need to reinstall (not just reconfigure) the vmware tools because the distrib folder is only used during installation of the VMware tools.

You should replace the tarballs in /usr/lib/vmware-tools/lib/modules/source (or something like this, don't know the name of the directory exactly out of memory).
That's the location where `vmware-config-tools.pl` is looking for the tar-files.
User avatar
tuxx-home.at
Supreme Commander
Supreme Commander
 
Posts: 2199
Joined: Mon Jan 01, 2007 12:51 pm
Location: Vassach - Austria - Europe

Re: VMware tools and kernel 2.6.25

Postby BeGe » Tue Apr 22, 2008 6:04 pm

Hello Guys,
I have tried your patch proposed in post 2 and get a little further (i think a lot further) but still get an error in compiling vmhgfs. here is the console:
Code: Select all
Building the vmhgfs module.

Using 2.6.x kernel build system.
make: entrant dans le répertoire « /tmp/vmware-config12/vmhgfs-only »
make -C /lib/modules/2.6.25-1.fc9.i686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: entrant dans le répertoire « /usr/src/kernels/2.6.25-1.fc9.i686 »
  CC [M]  /tmp/vmware-config12/vmhgfs-only/backdoor.o
  CC [M]  /tmp/vmware-config12/vmhgfs-only/backdoorGcc32.o
  CC [M]  /tmp/vmware-config12/vmhgfs-only/bdhandler.o
  CC [M]  /tmp/vmware-config12/vmhgfs-only/cpName.o
  CC [M]  /tmp/vmware-config12/vmhgfs-only/cpNameLinux.o
  CC [M]  /tmp/vmware-config12/vmhgfs-only/cpNameLite.o
  CC [M]  /tmp/vmware-config12/vmhgfs-only/dbllnklst.o
  CC [M]  /tmp/vmware-config12/vmhgfs-only/dentry.o
  CC [M]  /tmp/vmware-config12/vmhgfs-only/dir.o
  CC [M]  /tmp/vmware-config12/vmhgfs-only/eventManager.o
  CC [M]  /tmp/vmware-config12/vmhgfs-only/file.o
  CC [M]  /tmp/vmware-config12/vmhgfs-only/filesystem.o
/tmp/vmware-config12/vmhgfs-only/filesystem.c: In function ‘HgfsInitFileSystem’:
/tmp/vmware-config12/vmhgfs-only/filesystem.c:592: attention : passing argument5 of ‘kmem_cache_create’ from incompatible pointer type
  CC [M]  /tmp/vmware-config12/vmhgfs-only/fsutil.o
/tmp/vmware-config12/vmhgfs-only/fsutil.c: In function ‘HgfsIget’:
/tmp/vmware-config12/vmhgfs-only/fsutil.c:1017: erreur: implicit declaration offunction ‘iget’
/tmp/vmware-config12/vmhgfs-only/fsutil.c:1017: attention : assignment makes pointer from integer without a cast
make[2]: *** [/tmp/vmware-config12/vmhgfs-only/fsutil.o] Erreur 1
make[1]: *** [_module_/tmp/vmware-config12/vmhgfs-only] Erreur 2
make[1]: quittant le répertoire « /usr/src/kernels/2.6.25-1.fc9.i686 »
make: *** [vmhgfs.ko] Erreur 2
make: quittant le répertoire « /tmp/vmware-config12/vmhgfs-only »
Unable to build the vmhgfs module. 
BeGe
Private
Private
 
Posts: 4
Joined: Mon Apr 21, 2008 5:47 pm

Re: VMware tools and kernel 2.6.25

Postby tuxx-home.at » Tue Apr 22, 2008 6:22 pm

OK, I should have tried to compile the tools on 2.6.25 before posting them here :)
2.6.25 is downloading now on my notebook, expect results in at least one hour.
User avatar
tuxx-home.at
Supreme Commander
Supreme Commander
 
Posts: 2199
Joined: Mon Jan 01, 2007 12:51 pm
Location: Vassach - Austria - Europe

Re: VMware tools and kernel 2.6.25

Postby tuxx-home.at » Tue Apr 22, 2008 6:33 pm

BeGe, your VMware Tools definetly don't match mine. I have no filesystem.c or fsutil.c files in vmhgfs-only, so please could you mail me (or upload it anywhere) your VMwareTools-1.0.5-80187.tar.gz file?
User avatar
tuxx-home.at
Supreme Commander
Supreme Commander
 
Posts: 2199
Joined: Mon Jan 01, 2007 12:51 pm
Location: Vassach - Austria - Europe

Re: VMware tools and kernel 2.6.25

Postby sunspots » Tue Apr 22, 2008 6:39 pm

Hi
Thanks for that tip. It compiled okay this time.

I tried making a change to the screen resolution but I don't see it changing. I ran vmware-toolbox.

I tried to re-run the config but it told me it couldn't stop the services for vmware-tools
sunspots
Private
Private
 
Posts: 4
Joined: Tue Apr 22, 2008 10:44 am

Re: VMware tools and kernel 2.6.25

Postby BeGe » Tue Apr 22, 2008 6:54 pm

I will do that but i can't find your full email adress and i need it because i pass through another email system.

Thank you.
BeGe
Private
Private
 
Posts: 4
Joined: Mon Apr 21, 2008 5:47 pm

Re: VMware tools and kernel 2.6.25

Postby tuxx-home.at » Tue Apr 22, 2008 7:04 pm

@BeGe: The mail address is "work (at) tuxx-home (dot) at".

@sunspots:
I never had a graphical virtualized linux system, so forgive me for asking dumb questions, but: is it supposed to change the resolution during runtime?
Could I please see the file "/etc/X11/xorg.conf" and "/var/log/Xorg.0.log" of your VMware session?
User avatar
tuxx-home.at
Supreme Commander
Supreme Commander
 
Posts: 2199
Joined: Mon Jan 01, 2007 12:51 pm
Location: Vassach - Austria - Europe

Re: VMware tools and kernel 2.6.25

Postby tuxx-home.at » Tue Apr 22, 2008 7:12 pm

@BeGe:

I updated the vmhgfs tarball and the patch at [http://projects.tuxx-home.at/vmware/tools/1.0.5-80187/], please give it a try.
User avatar
tuxx-home.at
Supreme Commander
Supreme Commander
 
Posts: 2199
Joined: Mon Jan 01, 2007 12:51 pm
Location: Vassach - Austria - Europe

Re: VMware tools and kernel 2.6.25

Postby BeGe » Tue Apr 22, 2008 9:39 pm

Thank you very much for your last update. It compile perfectly for me.
Thnaks again.
BeGe
Private
Private
 
Posts: 4
Joined: Mon Apr 21, 2008 5:47 pm

Next

Return to VMware

Who is online

Users browsing this forum: No registered users and 2 guests