VMware

This Question is Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
1 2 3 Previous Next 44 Replies Last post: Jan 10, 2008 1:10 PM by kirenaj   Go to original post
Click to view gruna's profile Novice 7 posts since
May 28, 2007
still the same.
thanks
Click to view gruna's profile Novice 7 posts since
May 28, 2007
:-)
Well, i'm sure that i replaced the file correctly, but just did it one more time.
Still the same output:

Building the vmnet module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config7/vmnet-only'
make -C /lib/modules/2.6.22-rc2-git7-58-default/build/include/.. SUBDIRS=$PWD SR
CROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.22-rc2-git7-58-obj/i386/default'
make -C ../../../linux-2.6.22-rc2-git7-58 O=../linux-2.6.22-rc2-git7-58-obj/i386
/default modules
CC [M] /tmp/vmware-config7/vmnet-only/driver.o
CC [M] /tmp/vmware-config7/vmnet-only/hub.o
CC [M] /tmp/vmware-config7/vmnet-only/userif.o
CC [M] /tmp/vmware-config7/vmnet-only/netif.o
CC [M] /tmp/vmware-config7/vmnet-only/bridge.o
CC [M] /tmp/vmware-config7/vmnet-only/filter.o
/tmp/vmware-config7/vmnet-only/filter.c: In function ‘VNetFilterHookFn’:
/tmp/vmware-config7/vmnet-only/filter.c:232: error: ‘struct sk_buff’ has no memb er named ‘ip_hdr’
make[4]: *** [/tmp/vmware-config7/vmnet-only/filter.o] Fehler 1
make[3]: *** [_module_/tmp/vmware-config7/vmnet-only] Fehler 2
make[2]: *** [modules] Fehler 2
make[1]: *** [modules] Fehler 2
make[1]: Leaving directory `/usr/src/linux-2.6.22-rc2-git7-58-obj/i386/default'
make: *** [vmnet.ko] Fehler 2
make: Leaving directory `/tmp/vmware-config7/vmnet-only'
Unable to build the vmnet module.

For more information on how to troubleshoot module-related problems, please
visit our Web site at "http://www.vmware.com/download/modules/modules.html" and
"http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".

Execution aborted.
Click to view jbeckers's profile Novice 10 posts since
Dec 2, 2006
sputnik, thanks for the patch. I'm testing it right now on ubuntu gutsy with kernel 2.6.22-5-generic. so far compiling went fine. I'll see if it runs too in a minute.

EDIT: everything runs fine. thanks a bunch!

Message was edited by:
jbeckers
Click to view phbaer's profile Lurker 3 posts since
Mar 22, 2005
I'm very pleased to hear that. The patch should replace direct access to the skb struct as functions were introduced to accomplish this starting with 2.6.22 (I think).

I hope all the sensitive parts were caught but as I'm not very familiar with the kernel sources (and the modifications to them), it was more hit or miss :)
Click to view vmware.com@Mail2RSS.org's profile Lurker 2 posts since
Jun 1, 2007
The http://24.12.114.66:8001/vmware/vmnet.tar fixes the build in 2.6.22-5-generic the kernel in ubuntu gutsy (the unstable 7.10 release).
Click to view Paladine's profile Lurker 2 posts since
Jun 3, 2007
The http://24.12.114.66:8001/vmware/vmnet.tar fixes
the build in 2.6.22-5-generic the kernel in ubuntu
gutsy (the unstable 7.10 release).

I am still having no success with Gutsy, here is my error:

Making sure services for VMware Server are stopped.

Stopping VMware services:
Virtual machine monitor done
Bridged networking on /dev/vmnet0 done
Virtual ethernet done

Configuring fallback GTK+ 2.4 libraries.

In which directory do you want to install the mime type icons?
[/usr/share/icons]

What directory contains your desktop menu entry files? These files have a
.desktop file extension. [/usr/share/applications]

In which directory do you want to install the application's icon?
[/usr/share/pixmaps]

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

None of the pre-built vmmon modules for VMware Server is suitable for your
running kernel. Do you want this program to try to build the vmmon 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.22-5-generic/build/include]

Extracting the sources of the vmmon module.

Building the vmmon module.

Building for VMware Server 1.0.0.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config1/vmmon-only'
make -C /lib/modules/2.6.22-5-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.22-5-generic'
CC [M] /tmp/vmware-config1/vmmon-only/linux/driver.o
CC [M] /tmp/vmware-config1/vmmon-only/linux/hostif.o
CC [M] /tmp/vmware-config1/vmmon-only/common/cpuid.o
CC [M] /tmp/vmware-config1/vmmon-only/common/hash.o
CC [M] /tmp/vmware-config1/vmmon-only/common/memtrack.o
CC [M] /tmp/vmware-config1/vmmon-only/common/phystrack.o
CC [M] /tmp/vmware-config1/vmmon-only/common/task.o
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wno-pointer-sign" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
cc1plus: warning: command line option "-ffreestanding" is valid for C/ObjC but not for C++
include/asm/page.h: In function ‘pte_t native_make_pte(long unsigned int)’:
include/asm/page.h:112: error: expected primary-expression before ‘)’ token
include/asm/page.h:112: error: expected ‘;’ before ‘{’ token
include/asm/page.h:112: error: expected primary-expression before ‘.’ token
include/asm/page.h:112: error: expected `;' before ‘}’ token
make[2]: *** [/tmp/vmware-config1/vmmon-only/common/task.o] Error 1
make[1]: *** [_module_/tmp/vmware-config1/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.22-5-generic'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config1/vmmon-only'
Unable to build the vmmon module.

For more information on how to troubleshoot module-related problems, please
visit our Web site at "http://www.vmware.com/download/modules/modules.html" and
"http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".

Execution aborted.

VMNet error seems to have gone away but I now have a VMMon error. Any ideas?

Paladine

Click to view Paladine's profile Lurker 2 posts since
Jun 3, 2007
OK I went for a clean install and now I get a different error (although still with vmmon) see below:

---
In which directory do you want to install the mime type icons?
[/usr/share/icons]

What directory contains your desktop menu entry files? These files have a
.desktop file extension. [/usr/share/applications]

In which directory do you want to install the application's icon?
[/usr/share/pixmaps]

/usr/share/applications/vmware-server.desktop: warning: The 'Application' category is not defined by the desktop entry specification. Please use one of "AudioVideo", "Audio", "Video", "Development", "Education", "Game", "Graphics", "Network", "Office", "Settings", "System", "Utility" instead
/usr/share/applications/vmware-console-uri-handler.desktop: warning: The 'Application' category is not defined by the desktop entry specification. Please use one of "AudioVideo", "Audio", "Video", "Development", "Education", "Game", "Graphics", "Network", "Office", "Settings", "System", "Utility" instead
Trying to find a suitable vmmon module for your running kernel.

None of the pre-built vmmon modules for VMware Server is suitable for your
running kernel. Do you want this program to try to build the vmmon 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.22-5-generic/build/include]

Extracting the sources of the vmmon module.

Building the vmmon module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config3/vmmon-only'
make -C /lib/modules/2.6.22-5-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.22-5-generic'
CC [M] /tmp/vmware-config3/vmmon-only/linux/driver.o
In file included from /tmp/vmware-config3/vmmon-only/linux/driver.c:80:
/tmp/vmware-config3/vmmon-only/./include/compat_kernel.h:21: error: expected declaration specifiers or ‘...’ before ‘compat_exit’
/tmp/vmware-config3/vmmon-only/./include/compat_kernel.h:21: error: expected declaration specifiers or ‘...’ before ‘exit_code’
/tmp/vmware-config3/vmmon-only/./include/compat_kernel.h:21: warning: type defaults to ‘int’ in declaration of ‘_syscall1’
make[2]: *** [/tmp/vmware-config3/vmmon-only/linux/driver.o] Error 1
make[1]: *** [_module_/tmp/vmware-config3/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.22-5-generic'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config3/vmmon-only'
Unable to build the vmmon module.

For more information on how to troubleshoot module-related problems, please
visit our Web site at "http://www.vmware.com/download/modules/modules.html" and
"http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".

Execution aborted.
---

Paladine
Click to view gareed's profile Novice 9 posts since
Dec 14, 2006
Paladine,

Having the same problem. See http://www.vmware.com/community/thread.jspa?threadID=86829&tstart=100

Hope it will be solved when 2.6.22 is released.

Good luck.
Click to view Grogan's profile Enthusiast 142 posts since
Jan 7, 2005
There's evidently more to this than just getting stuff to compile. I've got some bad behaviour here. (Linux 2.6.22-rc3 on IA32 host)

While vmmon and everything compiles, including vmnet if I use this patch and roll up a new vmnet.tar:

http://npw.net/~phbaer/vmware-workstation-6.0_linux-kernel-2.6.22.patch

There is bad behaviour.

First of all, networking appears to work perfectly until I try to communicate with the host via (bridged) network. For example if I ssh/sftp/ftp in to the host from a guest, the connection just hangs. If I press ctrl-c to abort it's fine, but if I leave it sit there trying for a bit everything locks up with keyboard lights blinking. I can't move on the host (or get out of the VM if I'm in there), input is locked up. At this point if I go to another box and ssh in, I can kill vmware-vmx which shuts down the virtual machine and everything is OK. This should not be a problem... I've always done this. It goes to the router just like any other tcp/ip connection on the LAN.

Going back to Linux 2.6.21.x on the host (and the original vmnet source) corrects this.

Also tried Nigel Cunningham's vmnet.tar but it oopsed on the IA32 host a few seconds after loading the module. (it was non fatal though... I removed the rc.d entries and rebooted the box)

Now, that's just the networking.

I discovered that when a VM locks up or panics it can take out the host too. Installing Fedora 7 locks up my host hard, during the package install (at different times, not always at the same point in progress). Completely halted, won't respond to any input, or pings, and I've got to power off and fsck filesystems afterwards to correct errors.

Log entries are just stopped dead.

So back to 2.6.21.x... the VM locks up during Fedora7 package install, similar behaviour, but doesn't harm the host. I can ctrl-alt to leave the VM's focus and "power off" the VM and exit vmware and restart it again. I don't know what bad combination of package selections triggers the fault, but if I just choose "customize later" and install the OS with default package selection it doesn't lock the guest. Probably why the install the previous night didn't lock up the guest with 2.6.22-rc3, because I didn't hit that fault. It was when I went back to redo it and customize. That's not important. The point is, that when it happens with 2.6.22-rc3 this completely kills the host.

I've gone back to 2.6.21.3 because I can't play with and troubleshoot something that's causing hard lockups on this system. I just can't afford to have data corruption.

That's unfortunate for now, because there are changes in 2.6.22-rc that I want, and everything else but vmware works correctly.
Click to view phbaer's profile Lurker 3 posts since
Mar 22, 2005
Are there any interesting entries in dmesg? With my kernel (Gutsy 2.6.22-something) everything works well; no networking problems, no freezes.
Click to view Grogan's profile Enthusiast 142 posts since
Jan 7, 2005
Unfortunately no, log entries just stop dead when the machine locks up. Nothing of interest other than vmmon printing floods of host clock rate change requests (but it does that with other kernels too and is not related to the problems). Thanks for asking.

I'm just going to keep 2.6.21.3 around for a bit and boot that kernel when I want to use vmware. I have to do 2.6.22-rc4 now and I may try again. I noticed I had disabled some kernel options for testing purposes and forgot to re-enable them again. They shouldn't be the cause, but it's best to consider everything that might be different between the kernels I was using.

It's probably changes to the kernel though. Different systems may not hit the same issues.

Intel Core2 Duo
965P chipset
AHCI SATA on ICH8
32 bit kernel, 32 bit userland

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities