Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 263635 - app-emulation/vmware-modules-1.0.0.23 fails to compile on kernel 2.6.29
Summary: app-emulation/vmware-modules-1.0.0.23 fails to compile on kernel 2.6.29
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High minor with 2 votes (vote)
Assignee: Gentoo VMWare Bug Squashers [disabled]
URL:
Whiteboard:
Keywords:
: 263768 266795 269777 271997 (view as bug list)
Depends on:
Blocks: 264722
  Show dependency tree
 
Reported: 2009-03-24 17:47 UTC by Sebastian Stumpf
Modified: 2011-02-19 18:36 UTC (History)
22 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
vmware console output (output.log,11.27 KB, text/plain)
2009-04-11 23:01 UTC, Michael Prager
Details
Build log for vmware-modules-1.0.0.24 w/2.26.30 (vmware-modules-1.0.0.24.out,146.82 KB, text/plain)
2009-06-16 13:31 UTC, Jose daLuz
Details
Output of paludis --info vmware-modules (paludisinfo-vmware-modules.txt,25.30 KB, text/plain)
2009-06-16 13:32 UTC, Jose daLuz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Stumpf 2009-03-24 17:47:24 UTC
After upgrading to Kernel 2.6.29 the code won't compile anymore. I found the following thread http://communities.vmware.com/message/1194084 at the vmware communities.

After applying this patch the ebuild gets installed properly, although I get some complaints about /dev/rtc priveleges from VMware Workstation (the privileges are correct):
http://communities.vmware.com/servlet/JiveServlet/download/2835-188410-1149089-18058/vmware-workstation-6.5.1.126130-2.6.29_x86_64.patch

Reproducible: Always
Comment 1 Mike Auty (RETIRED) gentoo-dev 2009-03-24 18:03:26 UTC
Thanks for the bug report,

Modules that will build under 2.6.29 are already available in the vmware overlay [1] (which you can get using layman).  Please give this a test, and let me know if you encounter any issues.  If there are no issues by next week, these modules will be pushed into the main tree...

[1] http://overlays.gentoo.org/proj/vmware/browser/trunk/app-emulation/vmware-modules
Comment 2 Sebastian Stumpf 2009-03-24 18:26:36 UTC
Overlay works fine, although the RTC issue remains. VMWare Workstation tells me 

"The host high-resolution timer device (/dev/rtc) is not available (Permission denied).  Without this device, the guest operating system can fail to keep time correctly. For more information, see http://vmware.com/info?id=34."

% ls -l /dev/rtc
lrwxrwxrwx 1 root root 4 Mar 24 13:59 /dev/rtc -> rtc0

% ls -l /dev/rtc0
crw-rw-r-- 1 root wheel 254, 0 Mar 24 13:59 /dev/rtc0

% groups
disk wheel [...]

I'm not sure if this is a problem with 2.6.29, but before the update the VM didn't complain.
Comment 3 Edgardo Rossetto 2009-03-24 22:14:12 UTC
I was able to build vmware-modules from the overlay. So far no problems. Thanks
Comment 4 Andreas Proteus 2009-03-25 00:01:37 UTC
I can report that vmware-modules-1.0.0.23 from overlay compile on gentoo-sources-2.6.29 and vmware-workstation runs without any problems. I run ~x86.

Thank you for the prompt solution.
Comment 5 Cristian Feldman 2009-03-25 01:39:04 UTC
I have a problem with vmware-server-2.0.0.122956 from the vmware overlay. After updating the kernel to vanilla-sources-2.6.29 and rebuilding vmware-modules and (just in case) vmware-server, and also re-running vmware-config.pl the entire network subsystem and many vmware proceses will freeze after starting the first vm.
I'm using bridged network with a dedicated PCI NIC (rtl8169).
These are the logs, right after the first log it will freeze the net and keep throwing these entries:
Mar 24 22:18:36 ithil bridge-eth1: history full
Mar 24 22:18:36 ithil bridge-eth1: history full
Mar 24 22:18:41 ithil bridge-eth1: history full
[...]

I went back to my old kernel (2.6.28.7) and everything is working OK now. Didn't have to reemerge nor reconfigure anything.
Comment 6 Mike Auty (RETIRED) gentoo-dev 2009-03-25 09:50:56 UTC
Ok, thanks for the heads-up Cristian, I've got no leads as to what could be causing that, but it means these will stay in testing a little longer, until we can get that sorted...
Comment 7 Cristian Feldman 2009-03-25 14:08:07 UTC
I've been looking and can't find any error related to this in the vmware hostd logs. Looks like a problem with the module or it's relation to the nic driver.
I'm using amd64 btw.
Let me know if you need any aditional info.
Maybe tonight I can try bridging my other nic (Attansic L1) and see if the error shows up, just to be sure it's not driver related.
Comment 8 Mike Auty (RETIRED) gentoo-dev 2009-03-25 21:34:36 UTC
*** Bug 263768 has been marked as a duplicate of this bug. ***
Comment 9 Jonathan Heaney 2009-03-27 01:18:31 UTC
Like Cristian I'm using bridged networking with an r8169 nic but I'm not seeing any problems here (on ~x86 though) with the vmware-modules from the overlay.
Comment 10 Jose daLuz 2009-03-27 01:59:47 UTC
I have bridged networking with r8169 on ~amd64. I have no problems with vmware-modules from the overlay.
Comment 11 Cristian Feldman 2009-03-28 01:34:38 UTC
Jonathan and jose: Are you using kernel 2.6.29 just like me? It seems weird, I went back to 2.6.28.7 with the same .config and didn't have a single problem since then. The problem is only with 2.6.29
Comment 12 Jose daLuz 2009-03-28 02:24:52 UTC
(In reply to comment #11)
> Jonathan and jose: Are you using kernel 2.6.29 just like me? 
Yes, I'm on 2.6.29 vanilla-sources.
Comment 13 Jonathan Heaney 2009-03-28 02:29:13 UTC
(In reply to comment #11)
> Jonathan and jose: Are you using kernel 2.6.29 just like me? It seems weird, I
> went back to 2.6.28.7 with the same .config and didn't have a single problem
> since then. The problem is only with 2.6.29
> 

Yeah, gentoo-sources-2.6.29 here, on 'complete' ~x86.  Did you make oldconfig when you upgraded to 2.6.29?  That's what I did, and iirc pretty much well stuck with the defaults for any new kernel options.  The only changes I made were 'no' to X86_PTRACE_BITS and adding support for CONFIG_LBD to support an ext4 partition I'm testing.
Comment 14 Cristian Feldman 2009-03-30 01:27:29 UTC
Ok I switched the vmware bridge from the Realtek 8169  NIC (rtl8169)to the Attansic L1 (atl1) and now it's working fine on 2.6.29 :)
It seems there is some compatibility problem with that Realtek network card... weird I always liked it better than the atl1 :P
Comment 15 Ján Bednár 2009-03-30 07:52:55 UTC
Hi,

don't know if this belongs here (maybe new bug).
After switching to 2.6.29 I experience problems reaching my vmware virtual hosts.

On my gentoo box I have IP 192.168.204.1 and my vmware virtual machine (RHEL) is NATed with IP 192.168.204.138.

When running linux-2.6.28-gentoo-r3 then I'm able to connect from my gentoo box to virtual machine.
But when running linux-2.6.29-gentoo then I'm not even able to ping my virtual machine.
When I boot back to 2.6.28 then everything is back to normal.

I've obtained 2.6.29 kernel config by running make oldconfig.
I'm running vmware-modules-1.0.0.23 from vmware overlay.

Does anyone have such problem?
Comment 16 Cristian Feldman 2009-03-30 16:48:52 UTC
bridge-eth1: history full
bridge-eth1: history full
bridge-eth1: history full

Vmware failed again with kernel 2.6.29 and atl1 NIC :(
It seems it happens when network activity is high. I started to download a torrent and after a couple of minutes the bridge stopped responding again.
Had to switch back to 2.6.28.7 one more time to keep it running stable.
Suggestions are welcome.

----

Jan, did you reemerge vmware-modules after starting with 2.6.29?
Comment 17 Ján Bednár 2009-03-30 16:56:41 UTC
(In reply to comment #16)
> 
> Jan, did you reemerge vmware-modules after starting with 2.6.29?
> 

Yes I did.
Without re-emerging vmware-modules the VMs won't even start.
Comment 18 Cristian Feldman 2009-04-05 05:51:23 UTC
Today I updated to kernel 2.6.29.1 and now it seems to be working OK. I have a couple of vms running with high network activity for several hours now and didn't get any problems.

BTW I checked the changelog for 2.6.29.1 and found this:
-------------------------------------------------------------------------
commit 813352bc3317b1104212667ce227a901a8d49908
Author: Stephen Hemminger <shemminger@vyatta.com>
Date:   Wed Mar 25 21:01:47 2009 -0700

    bridge: bad error handling when adding invalid ether address
    
    [ Upstream commit cda6d377ec6b2ee2e58d563d0bd7eb313e0165df ]
    
    This fixes an crash when empty bond device is added to a bridge.
    If an interface with invalid ethernet address (all zero) is added
    to a bridge, then bridge code detects it when setting up the forward
    databas entry. But the error unwind is broken, the bridge port object
    can get freed twice: once when ref count went to zeo, and once by kfree.
    Since object is never really accessible, just free it.
    
    Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Chris Wright <chrisw@sous-sol.org>
-------------------------------------------------------------------------

I guess that may have been the cause of the error.
Comment 19 Manfred Knick 2009-04-05 10:03:59 UTC
(In reply to comment #18)

> Today I updated to kernel 2.6.29.1 and now it seems to be working OK.

Christian,
would you like to try VMware Workstation 6.5.2 build 156735 ?

http://bugs.gentoo.org/show_bug.cgi?id=264948
Comment 20 Marc Schiffbauer gentoo-dev 2009-04-05 22:52:21 UTC
I can confirm that it works well now with:

gentoo-sources 2.6.29-r1 (aka 2.6.29.1)
vmware-modules from the overlay
vmware workstation 6.5.2

no rtc or compile problems anymore
Comment 21 Marc Schiffbauer gentoo-dev 2009-04-07 15:19:55 UTC
I think I was too quick, today I got the rtc permission error again (ws 6.5.2, gentoo sources 2.6.29-r1)
Comment 22 nachiketa sahoo 2009-04-07 16:53:58 UTC
works from overlay
Comment 23 Mike Auty (RETIRED) gentoo-dev 2009-04-07 19:07:09 UTC
Marc, rtc permission errors are probably because the vmware group doesn't have write access to /dev/rtc (in fact, I believe only root has that).  I'd suggest that's a different problem, since vmware can cope without an rtc device (it may not keep accurate time, but it will run and function without it).  If the lack of rtc is a major concern for you, could you please file it as a different bug?  This one is specifically about failed compilation.  Thanks...  5:)
Comment 24 Andreas Proteus 2009-04-09 10:17:01 UTC
(In reply to comment #21 & #23) 
Re: /dev/rtc  access problem.

I found that this problem goes away if you compile the host kernel with the timer frequency set to 1000Hz.  ie., set:  CONFIG_HZ_1000 = y

More about this is found here:
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=892 

Although this is not the appropriate bug for this comment I think it may be helpful to share this info.
Comment 25 Michael Prager 2009-04-11 11:43:58 UTC
The vmware-modules overlay ebuild compiles fine for me, however vmware-workstation-6.5.2-156735 doesn't like the build kernel modules:

[...]
filename:       /lib/modules/2.6.29-gentoo-r1/misc/vmmon.ko               
supported:      external                                                  
license:        GPL v2                                                    
description:    VMware Virtual Machine Monitor.                           
author:         VMware, Inc.                                              
depends:                                                                  
vermagic:       2.6.29-gentoo-r1 SMP preempt mod_unload modversions CORE2 

VMware Workstation Error:
VMware Workstation is installed, but it has not been (correctly) configured for your running kernel. To (re-)configure it, your system administrator must find and run "vmware-config.pl". For more information, please see the VMware Workstation documentation.
Comment 26 Mike Auty (RETIRED) gentoo-dev 2009-04-11 11:48:37 UTC
Michael, please ensure that the vmware service was started, and that you ran emerge --config vmware-workstation after installation.
Comment 27 Michael Prager 2009-04-11 18:18:03 UTC
Tried both already, doesn't solve my problem though.
Comment 28 Mike Auty (RETIRED) gentoo-dev 2009-04-11 20:50:13 UTC
Hi Michael, it's not clear what's actually going wrong (save for it producing an uninformative error message).  Could you please check that:

1. The machine has no vm* modules loaded.
2. Start the vmware service.
3. Check that the vm* modules are all loaded (you should have vmnet, vmblock, vmci and vmmon).
4. Start vmware and if you're still having problems please post a complete copy of the output from running vmware (and your emerge --info output too).

Thanks...
Comment 29 Michael Prager 2009-04-11 23:01:37 UTC
Created attachment 188026 [details]
vmware console output

I've attached the output log here. The modules seem to load properly, I have no idea why vmware doesn't accept them.
Comment 30 Mike Auty (RETIRED) gentoo-dev 2009-04-13 12:28:31 UTC
Hiya Michael, the first line of your output suggests that vmware creates a log at /tmp/vmware-root/setup-<something>.log.  Could you please check the output from that and let me know if there's anything else going on.  The rest of your output (save for the need to configure) is identical to my working setup...
Comment 31 Michael Prager 2009-04-13 13:10:26 UTC
the log is of no use, this is all that's printed there:

Apr 13 15:08:54.760: app| Log for VMware Workstation pid=7089 version=6.5.2 build=build-156735 option=Release
Apr 13 15:08:54.760: app| Host codepage=UTF-8 encoding=UTF-8
Apr 13 15:08:54.760: app| Logging to /tmp/vmware-root/setup-7089.log
Comment 32 Cristian Feldman 2009-04-13 14:34:47 UTC
Michael, disable the Module Versioning support in the kernel, recompile it, install it, reboot and reinstall vmware-modules again. I had problems with that kernel setting and VMWare.
Let me know if that helped. If it does help then it would be nice to check that setting during installation.
Comment 33 Michael Prager 2009-04-13 15:13:00 UTC
I figured it out: the problem is a file called 

/etc/vmware/not_configured

Whenever this file exists, vmware will pretend it's not configured properly. After removing this file, vmware accepts the modules and works as expected  without errors.
Comment 34 Mike Auty (RETIRED) gentoo-dev 2009-04-19 18:31:25 UTC
*** Bug 266795 has been marked as a duplicate of this bug. ***
Comment 35 Mike Auty (RETIRED) gentoo-dev 2009-05-14 08:03:30 UTC
*** Bug 269777 has been marked as a duplicate of this bug. ***
Comment 36 Martin von Gagern 2009-05-15 16:16:37 UTC
Several vmware packages were recently added to the main portage tree with a dependency on ~vmware-modules-1.0.0.23. So now people with any of them in their world file and a recent kernel will encounter this issue. Furthermore, the security bug 265139 seems to be a good reason why people would want to update to these packages as soon as possible.

Therefore having a modules package in the portage tree which actually compiles against kernel 2.6.29 would be nice. Latest comments above sound good to me.

If you believe it really isn't ready for ~ARCH yet (as 2.6.29 is still in ~ARCH, so this whole issue won't affect stable users in any case), you might specify all major 2.6.29 kernel packages as blockers, so that portage will find the problem and users won't have to wait for the ebuild to start and fail and then search for this bug here.
Comment 37 Mike Auty (RETIRED) gentoo-dev 2009-05-16 07:38:46 UTC
Ok, I just pushed vmware-modules to the main tree and left the vmware herd.  Please don't CC me to any vmware bugs, I'll just un-CC myself.  Hopefully a new dev will be along sometime soon to look after you all...
Comment 38 Manfred Knick 2009-05-16 08:09:16 UTC
(In reply to comment #37)
> Ok, I just pushed vmware-modules to the main tree and left the vmware herd. 
> Please don't CC me to any vmware bugs, I'll just un-CC myself.  Hopefully a new
> dev will be along sometime soon to look after you all...


Mike, STOP ! , hold on ! , reconsider, *PLEASE* !!!


To everybody else:

The last *stable* kernel releases in tree are:

. . . sys-kernel/gentoo-sources-2.6.27-r8
. . . sys-kernel/vanilla-sources-2.6.27.10
. . . sys-kernel/vanilla-sources-2.6.28.9

. . . Notabene: 2.6.27 == "long-term edition" by Adrian Bunk

Everything beyond that is *development*.
Thus:
- You first of all have to *read*,
- you might participate in *development*,
- or wait patiently,
- or ask VMware ;(
- or look at any other distribution's stage of suport ...


Mike, 
considering the really horrible situation with VMware's "input" / "support" / deliveries,
I really think that every non-construktive request (esp. "complaint-only") should resolutely be reprimanded via reference to 'unstable' - and simply be done with it:

. . . grep -v "patch" >> /dev/null   ;)

Kind regards
Respectfully yours
Manfred
Comment 39 Mike Auty (RETIRED) gentoo-dev 2009-05-16 08:43:18 UTC
I'm sorry if my last comment gave the wrong impression.  There's no one person or particular reason for my leaving the vmware herd, I've simply been doing it too long and been unable to help with too many bugs, and I really desperately need a long break from it, which I'm now taking.  I hope that clears up any misunderstandings that might have occurred...
Comment 40 Manfred Knick 2009-05-16 09:11:18 UTC
(ADDENDUM to comment #38)

VMware states it's stage of suport for distributions at:

http://pubs.vmware.com/ws65_ace25/ws_user/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ws_user&file=intro_sysreqs_ws.html

( perhaps not so easy to find).


Examplum Gratia:

- OpenSuse (latest release: 11.1 <-- 2.6.27 ) :

- - supported:......10.2    ( 2.6.18 )  <---
- - experimental:...10.3    ( 2.6.22 )

I'm really grateful to all that have contributed enabling Gentoo to run
e.g. current VMware Workstation 6.5.2 build 156735 under

- - - - - - - - - - - - - -   2.6.28     <---

Thank you *very* much.
Comment 41 Daniel Drake (RETIRED) gentoo-dev 2009-05-16 15:21:06 UTC
ping to any maintainers... 2.6.29 is planned to go stable on 23rd may, would be nice to see this fixed
Comment 42 Mike Auty (RETIRED) gentoo-dev 2009-05-31 23:42:26 UTC
*** Bug 271997 has been marked as a duplicate of this bug. ***
Comment 43 Vadim Kuznetsov (RETIRED) gentoo-dev 2009-06-14 15:50:26 UTC
I've commited new vmware-modules ebuild to portage tree. It has patches for 2.6.29 and 2.6.30.
Comment 44 Jose daLuz 2009-06-16 13:28:14 UTC
I wasn't the reporter so I can't reopen this bug, but for me this does not build with 2.26.30:

/var/tmp/paludis/app-emulation-vmware-modules-1.0.0.24/work/vmnet-only/netif.c: In function 'VNetNetIfSetup':
/var/tmp/paludis/app-emulation-vmware-modules-1.0.0.24/work/vmnet-only/netif.c:225: error: 'struct net_device' has no member named 'init'
/var/tmp/paludis/app-emulation-vmware-modules-1.0.0.24/work/vmnet-only/netif.c:226: error: 'struct net_device' has no member named 'open'
/var/tmp/paludis/app-emulation-vmware-modules-1.0.0.24/work/vmnet-only/netif.c:227: error: 'struct net_device' has no member named 'hard_start_xmit'
/var/tmp/paludis/app-emulation-vmware-modules-1.0.0.24/work/vmnet-only/netif.c:228: error: 'struct net_device' has no member named 'stop'
/var/tmp/paludis/app-emulation-vmware-modules-1.0.0.24/work/vmnet-only/netif.c:229: error: 'struct net_device' has no member named 'get_stats'
/var/tmp/paludis/app-emulation-vmware-modules-1.0.0.24/work/vmnet-only/netif.c:230: error: 'struct net_device' has no member named 'set_mac_address'
/var/tmp/paludis/app-emulation-vmware-modules-1.0.0.24/work/vmnet-only/netif.c:231: error: 'struct net_device' has no member named 'set_multicast_list'
make[3]: *** [/var/tmp/paludis/app-emulation-vmware-modules-1.0.0.24/work/vmnet-only/netif.o] Error 1
make[2]: *** [_module_/var/tmp/paludis/app-emulation-vmware-modules-1.0.0.24/work/vmnet-only] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.30'
make: *** [vmnet.ko] Error 2
/usr/libexec/paludis/utils/emake: emake returned error 2
Comment 45 Jose daLuz 2009-06-16 13:31:18 UTC
Created attachment 194881 [details]
Build log for vmware-modules-1.0.0.24 w/2.26.30
Comment 46 Jose daLuz 2009-06-16 13:32:21 UTC
Created attachment 194882 [details]
Output of paludis --info vmware-modules
Comment 47 Vadim Kuznetsov (RETIRED) gentoo-dev 2009-06-16 14:04:12 UTC
(In reply to comment #44)

Please see Bug 274173