November 22, 2005

Getting VMware Workstation running on Kubuntu (& Ubuntu)

Getting WMware Workstation installed on my linux machine was such a pain, I thought I'd post a quick and dirty how-to to help others. This assumes you're running Ubuntu 5.10 (Breezy Badger), athough it might be helpfull for other debian derivitives. Here goes:



First send the archive file to a temporary directory:
sudo cp VMware-workstation-5.0.0-*.tar.gz /tmp

Go to that directory:
cd /tmp

untar the archive:
tar -zxvf VMware-workstation-5.0.0-*.tar.gz

Go to the newly untared directory:
cd vmware-distrib/

There should be a perl script in the directory named vmware-install.pl
Run it:
sudo ./vmware-install.pl

When running the installer script, most of the default options are fine. Just keep pressing enter. Below is the output that I recieved:
Creating a new installer database using the tar3 format.

Installing the content of the package.

In which directory do you want to install the binary files?
[/usr/bin]

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc]

What is the directory that contains the init scripts?
[/etc/init.d]

In which directory do you want to install the library files?
[/usr/lib/vmware]

The path "/usr/lib/vmware" does not exist currently. This program is going to
create it, including needed parent directories. Is this what you want? [yes]

In which directory do you want to install the manual files?
[/usr/share/man]

In which directory do you want to install the documentation files?
[/usr/share/doc/vmware]

The path "/usr/share/doc/vmware" does not exist currently. This program is going
to create it, including needed parent directories. Is this what you want?
[yes]

The installation of VMware Workstation 5.0.0 build-13124 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall.pl".

Before running VMware Workstation for the first time, you need to configure it
by invoking the following command: "/usr/bin/vmware-config.pl". Do you want this
program to invoke the command for you now? [yes]

Making sure services for VMware Workstation are stopped.

Stopping VMware services:
Virtual machine monitor done

You must read and accept the End User License Agreement to continue.
Press enter to display it.

END USER LICENSE AGREEMENT
...Bla Bla bla...
(Press and hold enter)
...Bla Bla Bla...

Do you accept? (yes/no) y

Thank you.

Configuring fallback GTK+ 2.4 libraries.

***
* Updating MIME database in /usr/share/mime...
***
In which directory do you want to install the mime type icons?
[/usr/share/icons]

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 Workstation 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.

Your kernel was built with "gcc" version "3.4.5", while you are trying to use
"/usr/bin/gcc" version "4.0.2". This configuration is not supported and VMware
Workstation cannot work in such configuration. Please either recompile your
kernel with "/usr/bin/gcc" version "4.0.2", or restart /usr/bin/vmware-config.pl
with CC environment variable pointing to the "gcc" version "3.4.5".

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.

Huh? What's the problem? It seems the installer just HAS to have a specific version of gcc, the GNU C compiler.

You can find out what your default version is by running:
gcc -v

My OS, Ubuntu 5.10, has a newer version of the compiler gcc 4.0

Luckally, I happend to already have gcc 3.4 installed as well. You can see if you do by running:
ls /usr/bin | grep gcc

If you don't have gcc 3.4, go get it by running:
sudo apt-get install gcc-3.4

Now, make gcc your default C compiler for this session:
export CC=gcc-3.4

Now things should be in order. Restart the config script:
sudo /usr/bin/vmware-config.pl

Here's the output that I got:

Making sure services for VMware Workstation are stopped.

Stopping VMware services:
Virtual machine monitor done

Configuring fallback GTK+ 2.4 libraries.

***
* Updating MIME database in /usr/share/mime...
***
In which directory do you want to install the mime type icons?
[/usr/share/icons]

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 Workstation 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-3.4". 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.12-9-386/build/include]

what do we do now? First let's find out what version of the kernel we're running. Open up a new terminal and run:
uname -a

Which got me the following output:
Linux lapster 2.6.12-9-386 #1 Mon Oct 10 13:14:36 BST 2005 i686 GNU/Linux

Ok, it seems that I'm running 2.6.12-9-386. You might be running something newer or older. If so, just change the numbers. So let's go get those header files that the installer wants:
sudo apt-get install linux-headers-2.6.12-9-386

Here's the output I got from that command:

Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
linux-headers-2.6.12-9
The following NEW packages will be installed:
linux-headers-2.6.12-9 linux-headers-2.6.12-9-386
0 upgraded, 2 newly installed, 0 to remove and 43 not upgraded.
Need to get 0B/6725kB of archives.
After unpacking 70.1MB of additional disk space will be used.
Do you want to continue [Y/n]? y

Preconfiguring packages ...
Selecting previously deselected package linux-headers-2.6.12-9.
(Reading database ... 92900 files and directories currently installed.)
Unpacking linux-headers-2.6.12-9 (from .../linux-headers-2.6.12-9_2.6.12-9.23_i386.deb) ...
Selecting previously deselected package linux-headers-2.6.12-9-386.
Unpacking linux-headers-2.6.12-9-386 (from .../linux-headers-2.6.12-9-386_2.6.12-9.23_i386.deb) ...
Setting up linux-headers-2.6.12-9 (2.6.12-9.23) ...

Setting up linux-headers-2.6.12-9-386 (2.6.12-9.23) ...

OK, we should be good to go. Now those header files should be in the following directory:

/usr/src/linux-headers-2.6.12-9-386/include

So we go back to the first terminal, and enter the above directory.

The installer script should now run to completion. It should ask some questions about networking, enter whatever you want. I selected the bridged networking option and none of the others. When it's done, you should see the following output:

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

The configuration of VMware Workstation 5.0.0 build-13124 for Linux for this
running kernel completed successfully.

You can now run VMware Workstation by invoking the following command:
"/usr/bin/vmware".

Enjoy,

--the VMware team

Now click on the KDE medu, go to the system menu, and you should see a new item named "VMware Workstation". Start it up and enjoy.

Posted by stoltenow at November 22, 2005 6:27 PM

Comments

Thank you for useful info. :-)

Posted by: registry cleaner reviews at November 10, 2010 1:19 AM

i get a problem
sudo vmware-config.pl
Making sure services for VMware Workstation are stopped.

Stopping VMware services:
Virtual machine monitor done

Configuring fallback GTK+ 2.4 libraries.

Unable to open /usr/lib/vmware/libconf/etc/pango/pangorc
Execution aborted.

what im doing wrong?

Posted by: powr at September 11, 2007 10:54 PM

Thanks for the tip; exactly what I was looking for.

Posted by: Jason at September 28, 2006 4:34 PM

This was great... thanks a lot... you saved me a lot of time...

Posted by: Nalin at September 3, 2006 9:51 PM

This helped me a lot (especially the part of installing gcc-3.4). Anyway, thanks!

Posted by: Nuwanda at May 27, 2006 5:30 AM

Muchas gracias!

Posted by: ferry at May 25, 2006 9:35 PM

Oh boy! This SO saved my ass! I had my distribution auto-update all new available packages which caused vmware not to run anymore. Had to reconfigure it... didn't know how, which was when you came in.

I have to file a report tomorrow and the only copy was on a virtual machine.

Thanks alot!!

Posted by: Ralph Unden at May 16, 2006 5:57 PM

Thanks, this help me alot.

Posted by: AudioMove at May 14, 2006 7:01 PM

You Sir, are a star!!! :-)

Many thanks... you've just saved a Linux newbie from serious amounts of stress and frustration...

Posted by: Adam at January 3, 2006 9:20 PM

thanks greats

Posted by: myster at January 3, 2006 2:58 AM

Bwah! I just found this. It's probably easier then the above.

https://wiki.ubuntu.com/VmWare

Posted by: Stoltenow at November 29, 2005 2:44 AM

Post a comment




Remember Me?