VMWare won’t compile!

I just had an issue with VMWare where the kernel modules would not compile.  Here’s the details and the solution:

Details of the Error:

I get the “Unable to Start Services” and the Virtual Network Device has a warning symbol next to it:

Unable to Start Services Error Message

Digging around in the log, this is the closest thing that I could find to an error:

</p>
<p>vthread-3| I120: Host is Linux 2.6.41.1-1.fc15.x86_64 Fedora release 15 (Lovelock)<br />
vthread-3| I120: Msg_Reset:<br />
vthread-3| I120: [msg.dictionary.load.openFailed] Cannot open file &quot;/usr/lib/vmware/settings&quot;: No such file or directory.<br />
vthread-3| I120: ----------------------------------------<br />
vthread-3| I120: PREF Optional preferences file not found at /usr/lib/vmware/settings. Using default values.<br />
vthread-3| I120: Msg_Reset:<br />
vthread-3| I120: [msg.dictionary.load.openFailed] Cannot open file &quot;/home/skp/.vmware/config&quot;: No such file or directory.<br />
vthread-3| I120: ----------------------------------------<br />
vthread-3| I120: PREF Optional preferences file not found at /home/skp/.vmware/config. Using default values.<br />
vthread-3| W110: Logging to /tmp/vmware-root/modconfig-2658.log<br />
vthread-3| I120: modconf query interface initialized<br />
vthread-3| I120: modconf library initialized<br />
vthread-3| I120: Your GCC version: 4.6<br />
vthread-3| I120: Validating path /lib/modules/preferred/build/include for kernel release 2.6.41.1-1.fc15.x86_64<br />
vthread-3| I120: Failed to find /lib/modules/preferred/build/include/linux/version.h<br />
vthread-3| I120: Failed version test: /lib/modules/preferred/build/include/linux/version.h not found.<br />
vthread-3| I120: Validating path /lib/modules/2.6.41.1-1.fc15.x86_64/build/include for kernel release 2.6.41.1-1.fc15.x86_64<br />
vthread-3| I120: Your GCC version: 4.6<br />
vthread-3| I120: Your GCC version: 4.6<br />

I can’t start the services manually:

<br />
$ sudo service vmware start<br />
Starting vmware (via systemctl):  Job failed. See system logs and 'systemctl status' for details.<br />
                                                           [FAILED]<br />

If you start vmware from the command line, you’ll see this error buried in the output:

<br />
/tmp/vmware-root/modules/vmnet-only/compat_netdevice.h:220:1: error: conflicting types for ‘netif_queue_stopped’<br />

Here’s just a little more information about my system (Fedora 15):

<br />
$ uname -r<br />
2.6.41.1-1.fc15.x86_64<br />

Here’s my VMWare version:

<br />
$ vmplayer --version<br />
VMware Player 4.0.1 build-528992<br />

Applying the Fix

I found a post that suggested several fixes.  First, I installed the hal package:

<br />
sudo yum install hal<br />

I don’t know if that contributed toward the solution or not.

I had to downgrade to an earlier version of VMWare.  To do so, I had to uninstall my current version with:

<br />
sudo vmware-installer -u vmware-player<br />

After downloading the previous version, I installed it with:

<br />
sudo bash VMware-Player-4.0.0-471780.x86_64.txt<br />

Next, I found a post with a patch.

<br />
cd /usr/lib/vmware/modules/source<br />
sudo cp vmnet.tar backup_vmnet.tar<br />
sudo wget -O vmnet.tar &quot;http://forums.fedoraforum.org/attachment.php?attachmentid=22156&amp;d=1321890579&quot;<br />

Then, I compiled the modules with:

<br />
sudo vmware-modconfig --console --install-all<br />

I still got messages about the service not being able to start, but it still ran and booted my virtual machine.

Failed Attempt #1

While the above instructions solved my problem, let me walk you through some of the other things I tried.  That might give you some more ideas if what worked for me didn’t work for you.

I found a post that suggested uninstalling and reinstalling.  So, here is the how I did it:

First, I had to determine the exact name of what was installed:

<br />
$ vmware-installer -l<br />
Product Name         Product Version<br />
==================== ====================<br />
vmware-player        4.0.1.528992<br />

Then, here is the command:

<br />
sudo vmware-installer -u vmware-player<br />

And after I downloaded the latest version, I had a “txt” file. It is really a script, so I ran it like this:

<br />
sudo bash VMware-Player-4.0.1-528992.x86_64.txt<br />

Failed Attempt #2

Here’s something that I tried in case it might help you.  It didn’t help me any.

I downloaded a patch from Weltall’s blog: vmware8linux31fix.tar.gz.  Then, I extracted and ran the patch:

<br />
[skp@pecan vmwarefix]$ tar -xzvf vmware8linux31fix.tar.gz<br />
vmware3.1.0.patch<br />
patch-modules_3.1.0.sh<br />
[skp@pecan vmwarefix]$ ls<br />
patch-modules_3.1.0.sh  vmware3.1.0.patch  vmware8linux31fix.tar.gz<br />
[skp@pecan vmwarefix]$ sudo ./patch-modules_3.1.0.sh<br />
Sorry, this script is only for VMWare WorkStation 8.0.0 or VMWare Player 4.0.0.<br />
Exiting<br />

The error message indicates it is looking for a particular version, so I just adjusted the script a little bit.  At the top of the script, I changed the version number:

Changing the Version Number in the script

Next, I just got another error message:

<br />
[skp@pecan vmwarefix]$ sudo ./patch-modules_3.1.0.sh<br />
/usr/lib/vmware/modules/source/.patched found. You have already patched your sources. Exiting<br />

Failed Attempt #3

found a post that suggested that someone was missing a bunch of packages.  That gave me an idea to try to find what package included version.h.  Then, this post suggested that they were in the Linux headers package.  I did have the headers installed:

<br />
$ rpm -q kernel-headers-`uname -r`<br />
kernel-headers-2.6.41.1-1.fc15.x86_64<br />

I tried to install this:

<br />
sudo yum install buildsys-build-rpmfusion-kerneldevpkgs-current<br />

Again, this didn’t work. The packages installed, but vmware still wouldn’t build.

Resources

One thought on “VMWare won’t compile!

  1. Hi, I’ve Fedora 18 (32 bit)
    Firs I’ve tried to install VMware Player 5.0.2 but I’ve got compilation errors, and the service didn’t start.. so I’ve resolved installing VMware workstation full 10 (that has vmplayer 6.0.0 build-1295980)

Leave a Comment

Your email address will not be published. Required fields are marked *