Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

After upgrading to 13.04 I am unable to start VMWorkstation. I get the following message:

Before you can run VMware, several modules must be compiled and loaded into the running kernel.

Kernel Headers 3.8.0-19-generic

Kernel headers for version 3.8.0-19-generic were not found. If you have installed them in a non-default path you can specify the path below.

Does anyone have any idea what to do next?

Ubuntu 13.04 64bit

If I direct the path to:

/usr/src/linux-headers-3.8.0-19-generic

I get the following message:

C header files matching your running kernel were not found.

Thanks

Additional:

As suggested I run this in terminal:

cd /lib/modules/$(uname -r)/build/include/linux 

sudo ln -s ../generated/utsrelease.h 

sudo ln -s ../generated/autoconf.h 

sudo ln -s ../generated/uapi/linux/version.h

However, now I get the following:

Before you can run VMware, several modules must be compiled and loaded into the kernel CANCEL / INSTALL

I INSTALL, the window closes and nothing happens.... Any ideas?

ADDITIONAL:

I installed this:

sudo apt-get install open-vm-tools open-vm-tools-dev open-vm-dkms open-vm-toolbox open-vm-tools-dev

And it all launched...

Many thanks for the suggestions and help... This is what I love about Ubuntu... it has a great helpful community... !

Note: Also found this which may help others too: HERE

ADDITIONAL ERROR:

Could not open /dev/vmmon: Is a directory. Please make sure that the kernel module `vmmon' is loaded.

Failed to initialize monitor device.

Monitor settings all greyed out

RESOLUTION:

Re-installation of Nvidia Drivers

share|improve this question
1  
I also had to use the patch here ubuntuforums.org/… With the changes mentioned here ubuntuforums.org/… –  7wonders May 10 '13 at 12:05
1  
Could you add instead an answer with the content of "RESOLUTION" section? –  Braiam Sep 15 '13 at 1:16

8 Answers 8

up vote 17 down vote accepted

Hit same problem here with Ubuntu 13.04 last month. At the time, upgrading to VMWare player 5.0.2 build-1031769 solved the problem. Fast forward a month, hit a new problem today after recent 13.04 updates, again VMWare would not start. Latest VM player version is still 5.0.2. Google lead me to this explanation:

http://communities.vmware.com/thread/446490?start=0&tstart=0

Running the following vmware command with root privs solved the problem for me:

sudo vmware-modconfig --console --install-all

HTH

share|improve this answer
    
this did the trick. –  Reuben L. Jun 17 '13 at 21:14
    
If You still have issues try to download and install vmware again: itsfoss.com/install-vmware-player-ubuntu-1310 –  czerasz Jun 14 at 10:23

This worked for me:

sudo apt-get install build-essential linux-headers-$(uname -r) open-vm-dkms
sudo ln -s /usr/src/linux-headers-$(uname -r)/include/generated/uapi/linux/version.h /usr/src/linux-headers-$(uname -r)/include/linux/version.h

then

sudo vmware-config-tools.pl

... and you are done.

share|improve this answer
    
This got it running again. Combine that with the patch to fix the vmnnet component. Then I ran sudo vmware-modconfig --console --install-all. –  Halsafar Sep 6 '13 at 17:47

I installed the suggested packages as above, but it still gave me the same error. Installing the latest VMWare Player solved the problem.

share|improve this answer

I tried all of the solutions above including a fresh install and it still would not start. It still said, "Before you can run VMware, several modules must be compiled and loaded into the kernel CANCEL / INSTALL"

After much research, what I had to do is this: I opened a terminal and then entered:

sudo apt-get install open-vm-tools open-vm-tools-dev open-vm-dkms open-vm-toolbox open-vm-tools-dev

and then:

sudo apt-get install gcc

and then:

sudo vmware-modconfig --console --install-all --appname="VMware Player" --icon="vmware-player"

It started right up after that. I hope this helps.

share|improve this answer
1  
why you are installing " open-vm-tools open-vm-tools-dev open-vm-dkms open-vm-toolbox open-vm-tools-dev " on a host machine on which vmware workstation is going to installed ? they are meant to be install in Virtual machine ( guest os of vmware ) –  Qasim May 17 '13 at 15:36

Per the Ubuntu VMWare Player install page, use

sudo apt-get install build-essential linux-headers-$(uname -r)

to install the headers. Then, you can either let it install or you can uninstall and reinstall vmware player.

share|improve this answer

I already had the latest VMWare Player installed with the exact same problem. Simply reinstalling did help, i.e. uninstalling first and then installing again:

sudo vmware-installer -u vmware-player
sudo bash ~/Downloads/VMware-Player-5.0.2-1031769.x86_64.txt
share|improve this answer

YMMV, but if you have trouble with vmci-related errors (in Linux Kernel 3.8.*), this bash script posted by vincent may work. Use it after uninstalling the VMWare product first and then installing again:

#!/bin/bash
if [[ $UID != 0 ]]; then
    echo "Please run this script with sudo:"
    echo "sudo $0 $*"
    exit 1
fi

sudo ln -s /usr/src/linux-headers-$(uname -r)/include/generated/uapi/linux/version.h /usr/src/linux-headers-$(uname -r)/include/linux/version.h

cd /usr/lib/vmware/modules/source
sudo tar -xf vmci.tar
cd vmci-only/linux
sudo sed '127s/.*/   .remove = vmci_remove_device,/' driver.c > driver.c.tmp
mv driver.c.tmp driver.c
sudo sed '1753s/.*/static int/' driver.c > driver.c.tmp
mv driver.c.tmp driver.c
sudo sed '1981s/.*/static void/' driver.c > driver.c.tmp
mv driver.c.tmp driver.c
cd ../..
sudo tar -cf vmci.tar vmci-only/
sudo rm vmci-only/ -Rf
sudo vmware-modconfig --console --install-all
sudo rm /usr/src/linux-headers-$(uname -r)/include/linux/version.h
echo "Done"

Also keep an eye for VMware article in Arch Linux's wiki. This article is mainly for Arch Linux but most of patches/tricks/workarounds can be applied for Ubuntu too.

share|improve this answer

It looks like the main issue with vmware workstation on 13.04 is compiling modules like vmci.ko. The easiest way to get these is to do apt-get install open-vm-dkms. This installs vmci.ko, and friends.

share|improve this answer

protected by Community Dec 4 '13 at 15:09

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.