How to install VMware Server 2.0.x on Ubuntu 9.10 Karmic Koala

Posted on October 30th, 2009 at 4:13, in How To, Linux, Ubuntu, VMware, Virtualization.

UPDATE: The script which is now used for this operation has been updated to support Fedora and openSUSE too. Also the patch used is the one made by Ramon de Carvalho Valle, not the one present on VMware’s Communities site as it was before, which provides a more stable experience. More details can be read here although the instructions presented on this page are still valid.

Please post your comments regarding other distributions on the post located here!

After I have upgraded to Ubuntu 9.10 Karmic Koala I have noticed that VMware Server 2.0.1 or 2.0.2 fail to install using the default installer. I then thought that I should use again the install script I wrote for installing the server in 9.04. Wrong! Since the kernel had changed a bit, the modules from VMware Server failed to compile correctly. Browsing the VMware Communities forums, I have discovered a post that discusses using a new patch. The only patch that seems to work for the 2.6.31-14 kernel that is shipped with Ubuntu 9.10 is the one for 2.6.30-4.

The process, even if it was handled by a script, assumed the user should stop the install process in the middle, patch some files here and there and then recompile his modules keeping his fingers crossed. Because  I really do not like that kind of approach, I decided to build my own script based on that one that will automatically patch the files and lead you to the install without the need for you to stop until you are done.

How to

  1. Download VMware Server (2.0.1 or 2.0.2) – gz format, not rpm. For the 2.0.2 version you might need to wait a couple of hours until you will receive the license key. Whichever version you choose, keep the license key near.
  2. Download my script from here (right click, save as).
  3. Run the script with super user rights either in the same folder where you have downloaded the server archive, either by providing it the path to that folder. The script will download the needed patch from my server. Make sure the folder where you have downloaded the server’s archive doesn’t contain spaces in its path name or the script will exit (giving you this reason as an error message). If the script exists, it will give you a decent warning from which you should be able to tell what’s wrong. Also, the VSOCK module will not work (will fail to compile), giving you a hint that your kernel sources might not be the ones for your running kernel. This is not true, as the script takes care of this before doing the hard work. Anyway, VMware Server will work without it. Example:
    chmod +x vmware-server-2.0.x-kernel-2.6.31-14-install.sh
    sudo ./vmware-server-2.0.x-kernel-2.6.31-14-install.sh [PATH _TO_VMWARE_ARCHIVE]
  4. When you are asked about adding users to the server, if you do not provide your own account, the user used for loging in the web console of the server will be root (maybe you should add yourself there).
  5. Provide the license key when asked about it.
  6. For the ones installing Windows guests in VMware Server, you must pick one of the following two solutions to avoid having problems with the mouse in the console:
    • you run this script in the terminal every time you want to launch a VMware Server console, but after you have installed the VMware plug-in for Firefox
    • you export this variable in the environment right after login such that it will be set before starting Firefox:
      VMWARE_USE_SHIPPED_GTK=yes

    Credit for this one goes to Holger.

  7. Drop me a Kudos line in here and one for Holger here. If the solution worked well for you please share this info wherever you can. :D

Until a new patch will appear or until VMware will start writing more better and actual code, this is the only way of installing VMware Server 2.0.x on Ubuntu 9.10 Karmic Koala. Best of luck to you all!

Similar Posts:


419 Comments

narmi91 said

on October 30th, 2009,

at 07:00 hours

Thank you very much the script worked pretty well. It had problems finding my archive so I shrunk the egrep statment to the following and everything else worked:

egrep “VMware-server-2.0″

Radu said

on October 30th, 2009,

at 10:30 hours

The way you shrank that regex might generate errors if in that folder you would have by accident something like “VMware-server-2.0.2.txt”

It’s done now and it should work for x86_64 too. The regex I used to identify the archive you had was

"^(VMware-server-2.0.[0-9]-)[0-9]*.[A-Za-z0-9]*.tar.gz"

and it didn’t match for VMware-server-2.0.2-203138.x86_64.tar.gz, only for the i686 version.

So now the regex is

"^(VMware-server-2.0.[0-9]-)[0-9]*.[A-Za-z0-9_]*.tar.gz"

and the script should work as advertised. Sorry, I was really tired and that slipped me away.

supraman_tt said

on October 30th, 2009,

at 10:48 hours

Thanks for the help. Your script works perfectly. Finally got my vm back up and running.

Thanks again and keep up the good work.

Andreu said

on October 30th, 2009,

at 10:54 hours

Thank you, thank you, thank you, thank you, thank you! This is exactly why I like Ubuntu, for his great community of geeks!

A

Fergus Gallagher said

on October 30th, 2009,

at 11:48 hours

Hero! Thanks

Andreu said

on October 30th, 2009,

at 11:59 hours

One question: now it works, but the Windows XP vm I’m running does not work really well. I have some issues with the mouse. Any fix for that?

Juerg said

on October 30th, 2009,

at 13:24 hours

Same mouse problems here. Sometime i have to use the right mouse button instead left mouse to klick to do some things like closing windows or klick on a button.

Radu said

on October 30th, 2009,

at 13:38 hours

Try uninstalling the mouse driver from you XP guest. If you have installed VMware Tools in your guest, the default mouse driver was replaced by them.

David said

on October 30th, 2009,

at 13:51 hours

Thank you very much!

Cody said

on October 30th, 2009,

at 14:51 hours

Thanks!

This script saved me after an upgrade to Ubuntu 9.10.

Juerg said

on October 30th, 2009,

at 15:10 hours

The mouse problem still persists. I tried to install a new XP in a new VM. But after the first start i cant use the mouse realy. Any other hints?

Radu said

on October 30th, 2009,

at 15:12 hours

Nothing else crosses my mind unfortunately… I am sorry…

Kahn said

on October 30th, 2009,

at 15:37 hours

Thank you!! you saved me ~1 million hours of work.

Roberto said

on October 30th, 2009,

at 16:50 hours

Thank you! That was so easy.

Snille said

on October 30th, 2009,

at 18:28 hours

Thank you, worked like a charm!
One little thing, the path to the VMW-server-archive can not contain any spaces… :)

andreas said

on October 30th, 2009,

at 18:28 hours

hey, thanks a lot!!!
your little script worked very well and my vms are working again now.
You saved me a reinstall/downgrade to ubuntu server 9.04!

Radu said

on October 30th, 2009,

at 20:24 hours

@Snille: Yeah, you are right. I kind of forgot to check for that.

Code_Bleu said

on October 30th, 2009,

at 22:18 hours

Script worked for me. The only issue I had was I didnt have the “patch” util installed. Once i did ’sudo apt-get install patch’ and re-run the script, everything worked. Thanks so much!

uberVU - social comments said

on October 30th, 2009,

at 22:31 hours

Social comments and analytics for this post…

This post was mentioned on Twitter by Radu Cotescu: There’s a new post on my blog: “How to install VMware Server 2.0.x on Ubuntu 9.10 Karmic Koala” http://bit.ly/do83v #linux #ubuntu #vmware…

Radu said

on October 30th, 2009,

at 22:36 hours

Thank you for this! I have added support for needed packages too.

Kerry Wong said

on October 31st, 2009,

at 00:32 hours

Thanks, it worked great for my 64bit version upgrade.

prunge said

on October 31st, 2009,

at 03:09 hours

Thanks so much! Worked perfectly.

Freddy Vadukkoot said

on October 31st, 2009,

at 09:44 hours

Worked like a charm. Thanks Radu. Kudos.

small said

on October 31st, 2009,

at 13:05 hours

With Ubuntu 9.10, is build-essential (for building debian packages) necessary? It looks like gcc works fine without it. Otherwise, everythings cool :)

Radu said

on October 31st, 2009,

at 13:12 hours

To answer this short, not necessarily. But… Basically you would need gcc, make and patch. make and patch come in the build-essential package. Actually patch comes as a dependency for dpkg-dev, which in turn is a dependency for build-essential. Hope that makes it clear.

Frank said

on October 31st, 2009,

at 15:47 hours

Thank you very much, you made my day!

vk101 said

on October 31st, 2009,

at 16:02 hours

Beautiful

Roberto Aceves Díaz said

on October 31st, 2009,

at 17:23 hours

Thanks a lot, Radu. It worked well for me. Ubuntu 9.10 Karmic Koala 32bit on a lenovo R61i.

Mars said

on October 31st, 2009,

at 17:51 hours

The script and the .tar.gz archiv is in my /home/vmware/Downloads/ folder.. when i want start the script with sh ./scriptname a error message will come.
Syntax error: word unexpected (expecting “)”)
i dont know what do to?

Radu said

on October 31st, 2009,

at 18:02 hours

Marcel, run the script like this:

sudo ./vmware-server-2.0.x-kernel-2.6.31-14-install.sh [PATH_TO_VMWARE_ARCHIVE]

after you made sure the script is executable:

chmod +x vmware-server-2.0.x-kernel-2.6.31-14-install.sh

That should work…

Marcel said

on October 31st, 2009,

at 18:13 hours

i am sorry but i will become the error message command not found :(

Radu said

on October 31st, 2009,

at 18:21 hours

When do you get that output? How do you try to run the script and where is it located? From where do you run it?

Marcel said

on October 31st, 2009,

at 18:28 hours

sorry … the problem ist solved. thank you very much.. i forgot the chmod command. :(
sry and thank you…

marco said

on October 31st, 2009,

at 18:38 hours

hi!! this patch works in a 32bit system? because i’ve got this error:

make[2]: *** [/root/vmware-server-distrib/lib/modules/source/vmnet-only/vnetUserListener.o] Error 1
make[1]: *** [_module_/root/vmware-server-distrib/lib/modules/source/vmnet-only] Error 2
make: *** [vmnet.ko] Error 2
There is a problem compiling the vmnet module after it was patched. :(

thanks :)

Radu said

on October 31st, 2009,

at 18:46 hours

Hi Marco! The patch was tested by me on a 32-bit system and worked okay. Also other people that wrote comments here used it on 32-bit architectures as well… Check to see if you have the Linux headers for your kernel, although the script should have done this and install them as needed.

To check for that, simply issue this command in your terminal:

dpkg-query -W -f='${Status} ${Version}\n' linux-headers-`uname -r`

Yestin said

on October 31st, 2009,

at 18:48 hours

Thanks a lot for the instructions and script. It worked perfectly for me :)

marco said

on October 31st, 2009,

at 19:14 hours

hi!

“install ok installed 2.6.32-rc5-2-10.00.Custom”

I use:

- debian testing
- VMware-server-2.0.2-203138.i386.tar.gz
- kernel 2.6.32-rc5

i know, that’s not the same “features” required for this patch eheheh

Thanks a lot :)

Radu said

on October 31st, 2009,

at 19:33 hours

Marco, the patch is for kernel 2.6.30-4 and it was confirmed to work for 2.6.31-14 too, which is the default kernel for Ubuntu 9.10. Unfortunately, it seems that the patch won’t work on your setup.

Troy said

on October 31st, 2009,

at 19:41 hours

The install was flawless, thank you. But I also have the mouse problem with my VM XP. Updated the VMWare tools, didn’t help. Uninstalled, didn’t help.

Radu said

on October 31st, 2009,

at 19:43 hours

I am sorry, Troy. I still don’t have a fix for this.

marco said

on October 31st, 2009,

at 19:55 hours

thanks Radu :)
i willi try your patch with 2.6.31-14 :)

Andres said

on October 31st, 2009,

at 23:09 hours

Hi Radu,

Your script doesn’t work for my system:
Ubuntu 9.10, kernel 2.6.31-14.48

Error msg:

Extracting the contents of VMware-server-2.0.1-156745.i386.tar.gz
tar: VMware-server-2.0.1-156745.i386.tar.gz/VMware-server-2.0.1-156745.i386.tar.gz: Cannot open: Not a directory
tar: Error is not recoverable: exiting now

gzip: stdin: unexpected end of file
tar: Child returned status 2
tar: Exiting with failure status due to previous errors
Checking patch download and archives from the extracted folders…
The download of vmware-server-2.0.x_x64-modules-2.6.30.4-fix.patch from http://codebin.cotescu.com/vmware/ failed!
Check your internet connection. :(
——————–

My Internet connection is working …
Is uit something I could do about the above error…

Thanx in advance ,
Andres

Kyle said

on October 31st, 2009,

at 23:39 hours

Install problem. The last lines output from the terminal are:

Testing patch…
./vmware-server-2.0.x-kernel-2.6.31-14-install.sh: line 125: patch: command not found
The patch cannot be applied. :(

I specified the following, but the install always yields the above result.
chmod +x vmware-server-2.0.x-kernel-2.6.31-14-install.sh
sudo ./vmware-server-2.0.x-kernel-2.6.31-14-install.sh [vmware path]

Can anyone provide some insight into the issue and what I might try. I’m new to ubuntu and linux in general, so simple instructions would be appreciated.

Thanks

Radu said

on November 1st, 2009,

at 00:45 hours

@Andres: Please provide me the way you try to run the script and the folder configuration.

Radu said

on November 1st, 2009,

at 00:49 hours

@Kyle: Install the patch package. The script should have done this for you… Try to re-download the script and re-run it. If it fails again with the same output, then install the patch package:

sudo apt-get install patch

and then try to run the script…

Kyle said

on November 1st, 2009,

at 01:40 hours

Radu,
Installing the patch manually allowed the remainder of the script to execute.
Thanks

sengork said

on November 1st, 2009,

at 05:18 hours

Cheers, VMware 2.0.2’s working fine now…

Erik Jan said

on November 1st, 2009,

at 06:58 hours

Thnx! You just saved me a few hours of frustrating work!

Andreas said

on November 1st, 2009,

at 11:25 hours

It worked perfectly for me. I had the same issues with the mouse as a lot of others here, but found the solution here: http://ubuntuforums.org/showthread.php?t=1298781

mark said

on November 1st, 2009,

at 11:46 hours

Works fine only problem is the mouse one that others have described in windows xp machines

Fumetto's Blog » Ubuntu 9.10, prime impressioni said

on November 1st, 2009,

at 11:52 hours

[...] 01/11/09: VMWare Server adesso funziona; cercando in rete ho trovato questa utilissima guida con annesso script che è riuscito a risolvermi il problema. Supponendo di avere [...]

Instalar VMware en Ubuntu 9.10 Karmik Koala | Libro de Apuntes said

on November 1st, 2009,

at 12:07 hours

[...] Más información y artículo original en: How to install VMware Server 2.0.x on Ubuntu 9.10 Karmic Koala [...]

Bruno Rico said

on November 1st, 2009,

at 12:08 hours

Thank You! It worked on the spanish localized version of Ubuntu Karmic Koala 9.10

Thomas said

on November 1st, 2009,

at 13:02 hours

Thank you so much. It works perfectly.

Yuti said

on November 1st, 2009,

at 13:55 hours

Super! Thank you!

Ben said

on November 1st, 2009,

at 19:43 hours

Very nice! It took a little bit of tweaking, but VMWare works for me now.

Jaroslav K. said

on November 2nd, 2009,

at 08:02 hours

Thank you very much! Works super with kernel 2.6.31-14-pae-generic (32-bit) and vmware server 2.0.2

Tyler Bye said

on November 2nd, 2009,

at 08:50 hours

Thanks for the script, Radu.

My notes. I installed and only one of my VMs would start. I had to nuke my vm*.o|ko kernel modules and re run the scripts. Then all of my VMs would start.

Pretty strange, but I’m relieved to have things running steadily.

mg said

on November 2nd, 2009,

at 12:33 hours

Very cool, thanks a lot!

Waruntorn said

on November 2nd, 2009,

at 14:32 hours

You are the man, I salute you. IYour script works very well.

Colin Millar said

on November 2nd, 2009,

at 16:02 hours

Worked perfectly for me – thank you very much for posting.

Paolo Conti said

on November 2nd, 2009,

at 18:03 hours

Great solution! Worked for me with Kubuntu 9.10 (32-bit)

DDRBoxman said

on November 2nd, 2009,

at 19:54 hours

Thanks, lets hope VMware starts actually writing good code soon.

Perry said

on November 3rd, 2009,

at 00:31 hours

Hello,

If you did not specify any user/administrator, just pressed enter for the default value.

How do you log in?
root?
password?

How can you add a new user?
(tried to re-run the whole installation again but that does not work).

/Perry

Radu said

on November 3rd, 2009,

at 01:41 hours

If you haven’t specified an user for the administrator account, then your root user is the administrator. From here you have two solutions:

  • you can set a password for the root account (not recommended), login as root, add your user as administrator, remove the root from the server and then change the root password again to some random hard to remember password
  • you can remove the modules installed by VMware Server in your kernel (sudo rm -rf /lib/modules/`uname -r`/misc/.{o,ko}, where Module_Name is vmmon, vmci, vmnet) and then re-run VMware’s Server config script (sudo vmware-config.pl)
  • Hope that helps!

    Henry said

    on November 3rd, 2009,

    at 09:53 hours

    Thank you ! You saved me a lot of time

    Pak said

    on November 3rd, 2009,

    at 12:24 hours

    Thanks a lot.. it works great.. I have the same mouse problem in the console, but I turnaround the issue connecting to my VM with RDP protocol.

    Radu said

    on November 3rd, 2009,

    at 14:31 hours

    You can fix the mouse problems as indicated in the post.

    Johann said

    on November 3rd, 2009,

    at 17:39 hours

    Thanks – it worked fine!

    But Server 2.x is very slow. So I had before 1.0.9 – worked perfectly .. on 9.0.4 (before karmic :-)
    So is there any way to run vmware server 1.0.9 on ubuntu 9.10 karmic ?
    Thanks for a short answer !!!

    Johann

    Giacomo said

    on November 3rd, 2009,

    at 18:24 hours

    Hi Radu,
    I have a problem when execute your script.
    This is the log:

    giacomo@giacomo-linux:/Dati/DownLoads/vmware server 2.0.2$ sudo ./vmware-server-2.0.x-kernel-2.6.31-14-install.sh /Dati/DownLoads/vmware server 2.0.2/
    Home Directory    =  /Dati/DownLoads/vmware server 2.0.2/
    Directroy Archivi =  VMware-server-2.0.2-203138.i386.tar.gz
    Moduli            =  /Dati/DownLoads/vmware server 2.0.2/vmware-server-distrib/lib/modules
    Sorgenti          =  /Dati/DownLoads/vmware server 2.0.2/vmware-server-distrib/lib/modules/source
    You have VMware Server archive: 
    	VMware-server-2.0.2-203138.i386.tar.gz
    Downloading patch file...
    You do have the linux-headers-2.6.31-14-generic package...
    You do have the build-essential package...
    You do have the patch package...
    Checking patch download and archives from the extracted folders...
    Found .tar file for vm module
    Found .tar file for se module
    Found .tar file for vsock module
    Found .tar file for vm module
    Found .tar file for se module
    Found .tar file for vmnet module
    Found .tar file for vm module
    Found .tar file for se module
    Found .tar file for vmmon module
    Found .tar file for vm module
    Found .tar file for se module
    Found .tar file for vmci module
    Extracting .tar files in order to apply the patch...
    Untarring /Dati/DownLoads/vmware server 2.0.2/vmware-server-distrib/lib/modules/source/vm.tar
    tar: /Dati/DownLoads/vmware server 2.0.2/vmware-server-distrib/lib/modules/source/vm.tar: funzione "open" non riuscita: Nessun file o directory
    tar: Errore irrimediabile: uscita immediata
    vm.tar tarball failed to extract in the directory vm-only. :(
     
    In the dir: /Dati/DownLoads/vmware server 2.0.2/vmware-server-distrib/lib/modules/source 
    the vm.tar file not exists

    in this dir there are only these files:
    vmci.tar vmmon.tar vmnet.tar vsock.tar

    Can you help me?
    Thanks

    Radu said

    on November 3rd, 2009,

    at 18:32 hours

    Yes Giacomo. Remove the spaces from the VMware home path: /Dati/DownLoads/vmware server 2.0.2/. I will modify the script to automatically tell you that.
    P.S. What I say to you was written in the blog post, at point 3, with bold.

    By the way, if you run the script in the same folder where the VMware Server archive is you don’t need to supply it the path.

    Giacomo said

    on November 3rd, 2009,

    at 18:55 hours

    Now is OK!
    Thank you very much!

    Brad said

    on November 3rd, 2009,

    at 18:58 hours

    Thanks Radu. I came straight to your site as soon as I had a problem with vmware install. Somehow I knew you would have a fix for the problem, and of course, it works perfectly.

    Marvin said

    on November 3rd, 2009,

    at 23:01 hours

    SWEET!!! thank you, thank you, thank you….that saved me who knows how many late night hours! worked the first time.

    Alex said

    on November 3rd, 2009,

    at 23:24 hours

    Man, I’m impressed! Your script makes installing so easy!!

    Thanks a lot!!

    Edward Katsyv said

    on November 3rd, 2009,

    at 23:48 hours

    I am glad you were able to find solution to this nasty vmware problem.

    Karl said

    on November 4th, 2009,

    at 01:25 hours

    Frackin’ awsum!

    Dima said

    on November 4th, 2009,

    at 08:34 hours

    thank you very much!

    archebyte said

    on November 4th, 2009,

    at 15:14 hours

    this helped immensely. Thank you!

    phil said

    on November 4th, 2009,

    at 15:23 hours

    Radu you flamin’ legend – thanx!

    Gregor S said

    on November 4th, 2009,

    at 17:18 hours

    Script works perfect.
    I have another problem …vmware-hostd is crashing from time to time. This results in inaccessible Vmware Web Access on port 8333.
    Does anyone have any idea about this problem (before I start googling)?

    Miroslav said

    on November 4th, 2009,

    at 18:01 hours

    Thanks Radu! Script worked very well.

    MNott said

    on November 4th, 2009,

    at 21:21 hours

    Hi Radu,

    thanks for the excellent script. Unfortunately, vmware-mgmt doesn’t start up correctly. For some reason, tomcat is configured to run on port 8308. A cross check with my old vmware server installation confirms that this was always the case. Yet, according to the proxy configuration, it should be running on 8222. This may be a vmware server problem and not your problem, but perhaps you or your readers have come accross. If, during install, I force the script to use 8308, I get the login screen on 8308, but after logging in, I get “Web Service not available”.

    Thanks for help,

    M

    Mariano said

    on November 5th, 2009,

    at 02:48 hours

    Worked great! Thank you! :-)

    Puppe said

    on November 5th, 2009,

    at 08:58 hours

    Thanks, worked like a charm!

    Bj said

    on November 5th, 2009,

    at 13:44 hours

    That is bloody perfect cobber! Thanks heaps for goin’ to all that trouble and helping a bloke out :)

    Cheers

    sandra said

    on November 5th, 2009,

    at 17:27 hours

    No matter what I type in the terminal window, it always tells me “Error message: There is no archive containing VMware Server in the path you indicated!” This is what I’m entering (below), after becoming super user (sudo -i). The script and the archive are in the same directory, and I have changed directory to be in that folder.
    -=-
    ./vmware-server-2.0.x-kernel-2.6.31-14-install.sh vmware-server-2.0.2-203138.i386.tar.gz
    -=-
    The .tar.gz I had to create from the folder that was downloaded from VMWare, since when it was downloaded it automatically expanded itself. Can it be that is the issue?

    Thanks,
    Sandra

    Radu said

    on November 5th, 2009,

    at 17:37 hours

    Sandra, if you run the script from the same folder you don’t have to supply the PATH to the archive and you must not supply in any way the archive itself as a parameter (but that’s not your problem here). The script looks for the original archive which is named, depending on the architecture, VMware-server-2.0.1-156745.i386.tar.gz or VMware-server-2.0.1-156745.x86_64.tar.gz or 2.0.2 instead of 2.0.1. Rename the archive accordingly and run the script as indicated: passing it the PATH to the archive (not the archive itself) if you run it from a different location or without any arguments if you run it from the same folder.

    I am waiting for you to tell me that the script worked. :)

    sandra said

    on November 5th, 2009,

    at 18:34 hours

    Thank you, Radu. I did in fact need to re-download the original tar.gz. Even though I had renamed it to match what it was originally named, it was not being recognized.

    The script indeed worked beautifully. I am up and running again. Many, many thanks!!

    Radu said

    on November 5th, 2009,

    at 18:44 hours

    You are welcome! :P

    HAPPY said

    on November 5th, 2009,

    at 18:45 hours

    THANK YOU!!!!! :-)

    MB said

    on November 5th, 2009,

    at 23:49 hours

    This worked for me too, but my default sh program was using ‘dash’. using ‘bash ‘ made it work right.

    Thanks for doing this!

    Dan said

    on November 6th, 2009,

    at 01:52 hours

    Beautiful work. Thank you. Saved me who knows how much time and grief.

    -Dan

    Oliver said

    on November 6th, 2009,

    at 12:38 hours

    Thanks for your great work!

    Just adapted your script for the use with Mandriva Linux.
    Will put it on the mandrivauser.de wiki after I cleaned up my patch…

    skob said

    on November 6th, 2009,

    at 14:03 hours

    Thanks!

    James said

    on November 7th, 2009,

    at 11:29 hours

    Thanks very much Radu wasn’t expecting to be able to run VMWare server 2.01 so soon after the official release of Ubuntu 9.10. Your script makes it a painless install.

    David W. said

    on November 7th, 2009,

    at 11:30 hours

    Hi Radu, thanks for the script but I am having some problems. Total Linux newb. Been at it for 4 days now :) . I left both downloads in the Downloads directory and changed my Terminal directory to Downloads. For some reason it can’t find the program though.

    david@david-desktop:~/Downloads$ sudo ./vmware-server-2.0.x-kernel-2.6.31-14-install.sh []
    Error message: There is no archive containing VMware Server in the path you indicated!
    This script must be run with super-user privileges.
    Usage:
    ./vmware-server-2.0.x-kernel-2.6.31-14-install.sh [PATH_TO_VMWARE_ARCHIVE]
    If you do not specify the PATH_TO_VMWARE_ARCHIVE the script will scan the current folder
    for VMware server archive and if doesn't find anything it will exit.
    Take care so that the PATH_TO_VMWARE_ARCHIVE doesn't contain any spaces.
    david@david-desktop:~/Downloads$


    I have tried entering the path as well and get the same results.

    david@david-desktop:~/Downloads$ sudo ./vmware-server-2.0.x-kernel-2.6.31-14-install.sh [/home/david/Downloads]
    Error message: There is no archive containing VMware Server in the path you indicated!


    It’s seems similar to Sandra’s problem and I have tried re-downloading both files and I still get the same results.

    All help is greatly appreciated. Thanks.

    Radu said

    on November 7th, 2009,

    at 12:07 hours

    David, you have never done some programming, right? :D The square brackets are there to indicate there is an optional parameter that in some cases could be supplied to the script. Please read the post two or three times to better comprehend how you can run the script.
    If you do not have any parameters to supply, you should run the script like

    sudo ./vmware-server-2.0.x-kernel-2.6.31-14-install.sh

    but if you do have parameters to supply to it you should run it like

    sudo ./vmware-server-2.0.x-kernel-2.6.31-14-install.sh /home/david/Downloads

    You don’t actually write those square brackets. What I have told you here is general programming notation. It’s not something particular to Linux scripts. Sorry for being a little harsh on you, but when you want to do more advanced stuff in Linux than just surfing the web and enjoying multimedia content you should know more things in order to get your job done.
    Please tell me how the script worked. Good luck!

    Erwan said

    on November 7th, 2009,

    at 17:18 hours

    Thanks to you, and all others who speed up vmware setup for ubuntu releases !

    VIr said

    on November 7th, 2009,

    at 18:43 hours

    Hi! I have a problem with install:

    vir@vir-laptop:~/Poligon$ sudo ./vmware-server-2.0.x-kernel-2.6.31-14-install.sh  VMware-server-2.0.1-156745.i386.tar.gz 
    You have VMware Server archive: 
    	VMware-server-2.0.1-156745.i386.tar.gz
    Downloading patch file...
    You do have the linux-headers-2.6.31-14-generic package...
    You do have the build-essential package...
    You do have the patch package...
    Extracting the contents of VMware-server-2.0.1-156745.i386.tar.gz
    tar: VMware-server-2.0.1-156745.i386.tar.gz/VMware-server-2.0.1-156745.i386.tar.gz: Невозможно open: Not a directory
    tar: Неисправимая ошибка: завершение работы
     
    gzip: stdin: unexpected end of file
    tar: Child returned status 2
    tar: Выход с ошибкой из-за предидущих ошибок
    Checking patch download and archives from the extracted folders...
    The download of vmware-server-2.0.x_x64-modules-2.6.30.4-fix.patch from http://codebin.cotescu.com/vmware/ failed!
    Check your internet connection. :(

    Ingo said

    on November 7th, 2009,

    at 20:58 hours

    It works like a charm on

    Ubuntu 9.10 32 bit with Kernel “2.6.31-14-generic”.

    Thank you for your great blog entry!!!

    cu
    Ingo

    John J. Sullivan said

    on November 7th, 2009,

    at 21:11 hours

    THANK YOU VERY MUCH FOR THIS SCRIPT!!!!!!!!
    I had trouble getting VMWare installed on Ubuntu 9.10 and had unsuccessfully tried alot of sullutions posted on other sites…With your script it took me 3-4 min.
    May the bits be with you!

    Radu said

    on November 7th, 2009,

    at 23:00 hours

    Vlr, read the instructions 3 times in a row… If you run the script in the same folder as the archive, you don’t have to supply nothing to it. Otherwise, supply the path to the archive (the folder structure to the archive, but without writing the archive’s name in it). Given your directory structure, you should run the script like:

    vir@vir-laptop:~/Poligon$ sudo ./vmware-server-2.0.x-kernel-2.6.31-14-install.sh

    Have fun!

    Deep Singh said

    on November 8th, 2009,

    at 00:55 hours

    thanks !! worked great for me !

    Philip Emery said

    on November 8th, 2009,

    at 02:11 hours

    Fantastic script! Big Thank-you.

    Nick Y. said

    on November 8th, 2009,

    at 02:13 hours

    Absolutely seamless on my system – thank you.

    David W. said

    on November 8th, 2009,

    at 09:35 hours

    *slaps self in the forehead*
    Duh!
    Yeah works great.
    I see that Linux is going to take a lot of getting used to.
    Thanks for your help Radu, and thank you VERY much for the script/patch. I probably would have had to abandon Linux without it.
    I’m looking forward to a great Linux experience.

    Peter Wirdemo said

    on November 8th, 2009,

    at 15:04 hours

    You saved my day. It started like a nightmare, but now it’s like rock’n'roll…

    Parag said

    on November 9th, 2009,

    at 03:06 hours

    Your script does it all!! Thanks a bunch.

    Boristhedog said

    on November 9th, 2009,

    at 13:26 hours

    Kudos! You are a genuis. Worked perfectly for me on 9.10 and, with a bit of effort, for my friend on 9.04. Thank you very much.

    Radu said

    on November 9th, 2009,

    at 13:49 hours

    Boris, your friend should use the methods presented for Ubuntu 9.04, not Ubuntu 9.10. There are different patches for those 2 releases.

    Pablo said

    on November 9th, 2009,

    at 22:44 hours

    I noticed that Ubuntu 9.10 is updating to kernel 2.6.31-15. What appends with this if I upgrade the kernel?

    Thanks a lot

    Radu said

    on November 9th, 2009,

    at 23:52 hours

    I don’t know, Pablo… Test it and come back to share the results. I am still running Jaunty here on my production machine. For Karmic I have another machine on which I do only tests for now…

    seabee said

    on November 10th, 2009,

    at 05:31 hours

    Hi ,radu, when i use your script to install VMware-server-2.0.2-203138.i386.tar.gz ,it display ;
    Unable to make a vmnet module that can be loaded in the running kernel:
    insmod: error inserting ‘/tmp/vmware-config1/vmnet.o’: -1 File exists
    There is probably a slight difference in the kernel configuration between the
    set of C header files you specified and your running kernel. You may want to
    rebuild a kernel based on that directory, or specify another directory.
    ——————-
    my kernel is 2.6.31-14-generic ,gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8) , can you help me?

    Radu said

    on November 10th, 2009,

    at 09:52 hours

    Seabee, first uninstall your exisiting VMware Server or remove its modules manually from the kernel. There is a comment where I describe how to remove the old modules.

    Monsoft said

    on November 10th, 2009,

    at 13:22 hours

    Hi,
    What about module vsock.o ?
    I’m trying to load tins module but always it failed to load:

    modprobe vsock
    FATAL: Error inserting vsock (/lib/modules/2.6.31-14-generic-pae/misc/vsock.ko): Unknown symbol in module, or unknown parameter (seesg)

    I use 32-bit version of ubuntu.

    Radu said

    on November 10th, 2009,

    at 14:20 hours

    Monsoft, uninstall your old VMware Server and remove all VMware traces from your system before reinstalling VMware with the aid of my script.

    cam said

    on November 10th, 2009,

    at 18:20 hours

    Hello,
    It’s first time I install VMware 64-bit on Ubuntu 9.10.
    I never use this soft before.

    I think the installation work correctly but I don’t know how I can start the program for configure ‘virtual machine’, the shorcut is not on a main menu !

    Thank you

    Radu said

    on November 10th, 2009,

    at 18:23 hours

    Cam, open your browser and go to http://localhost:8222. Log in with your user and password if you configured the server accordingly.

    yongaik said

    on November 10th, 2009,

    at 19:50 hours

    Thanks you very much !!
    your script work perfectly and it help to fix my vmware problem for 9.10.

    kyoshi52 said

    on November 11th, 2009,

    at 07:39 hours

    Thank you.
    Once I removed all the blank spaces in the directory tree it worked like a dream.
    Thanks again.

    Aristoteles said

    on November 11th, 2009,

    at 09:43 hours

    Installation works fine. Great, great job.
    Thanks a lot

    Karmic Coala x86_64,
    Updated Kernel 2.6.31-14-generic
    VMware Server 2.0.2-203138

    narmi91 said

    on November 12th, 2009,

    at 05:46 hours

    Installed using this patch.

    Running Vmware server 2.0.1 (tried 2.0.2 as well) on karmic. It seems to work for a while but when I start multiple (usually more than two) VMs, my server hangs. I need to restart it to physically to get it going. Has anyone else had this problem?

    Also I tried the terminal launching script, but it can’t find the plugin libaraires. how can them to path?

    Finally could you provide a little more detail on:
    “2.you export this variable in the environment right after login such that it will be set before starting Firefox:
    VMWARE_USE_SHIPPED_GTK=yes”

    Thank you in advance for any insights…

    David said

    on November 12th, 2009,

    at 06:01 hours

    Holy shit…this actually works! I’m running 9.10 on a Dell PE 650 32-bit platform and with your script I have sucessfully installed Vmware 2.0.2 server. This is amazing, thanks so much! I’ve tried numerous times over the last 2 years to get VmWare to work on top of Ubuntu without success.

    Props to you!

    David.

    DevNull said

    on November 12th, 2009,

    at 13:49 hours

    Thank you very much, works like a charm :-*

    Steve said

    on November 12th, 2009,

    at 15:59 hours

    Worked like a charm! Thanks!

    I was able to revive an xp-guest, built in Intrepid. Mouse-script also fixed the mousebug.

    Radu said

    on November 12th, 2009,

    at 16:06 hours

    @narmi91: To find the plug-in libraries you should first install the plug-in. Did you do that? In order to export that variable, you could add these two lines

    VMWARE_USE_SHIPPED_GTK=yes
    export VMWARE_USE_SHIPPED_GTK

    at the end of your ~/.profile file.

    Michael said

    on November 12th, 2009,

    at 16:17 hours

    This works great for installing, but unfortunately the vmware-configure.pl script still says, when pointed at /usr/src/linux-headers-2.6.31-14-generic/include, that the directory contains files for 2.6.31.4, and the script dies. Any tips?

    Radu said

    on November 12th, 2009,

    at 16:23 hours

    That is weird… Give me the output of these two commands, please:

    1
    2
    
    uname -r
    dpkg-query -W -f='${Status} ${Version}\n' linux-headers-`uname -r`

    Michael said

    on November 12th, 2009,

    at 16:27 hours

    blah@blah$ uname -r

    2.6.31-14-generic

    blah@blah$ dpkg-query -W -f=’${Status} ${Version}\n’ linux-headers-`uname -r`

    install ok installed 2.6.31-14.48

    Radu said

    on November 12th, 2009,

    at 17:00 hours

    Michael, this seems really weird. Try uninstalling VMware and remove all its traces from your system and then do a clean install.

    narmi91 said

    on November 12th, 2009,

    at 17:24 hours

    Thank Radu. I have added the GTK command to my profile and the mouse is working perfectly. Yes, I did install the plug in first, it finds the vmrc file but cant find the libraries in the associated lib directory. Since the export to profile worked, I’m ok with not getting the command to work.

    My bigger problem is the server hanging though (see below). Has anyone else had this problem?

    Installed using this patch. Running Vmware server 2.0.1 (tried 2.0.2 as well) on karmic. It seems to work for a while but when I start multiple (usually more than two) VMs, my server hangs. I need to restart karmic physically to get it going again. Has anyone else had this problem?

    Radu said

    on November 12th, 2009,

    at 17:30 hours

    It seems to be a common problem for VMware Server on the 2.6.31-14 kernel. I don’t know who’s to blame, but since I really like what Linus has done in all these years coordinating the kernel development, I suspect VMware’s code. I don’t experience these issues as I am not using the server anymore. Though it still represents an option for a personal project regarding Ubuntu…

    igor said

    on November 13th, 2009,

    at 12:28 hours

    Hi Radu,

    Your script doesn’t work for my system:
    Ubuntu 9.10, kernel 2.6.31-14.48

    Error msg:

    Extracting the contents of VMware-server-2.0.2-203138.i386.tar.gz
    tar: VMware-server-2.0.2-203138.i386.tar.gz/VMware-server-2.0.2-203138.i386.tar.gz: Cannot open: Not a directory
    tar: Error is not recoverable: exiting now

    gzip: stdin: unexpected end of file
    tar: Child returned status 2
    tar: Exiting with failure status due to previous errors
    Checking patch download and archives from the extracted folders…
    The download of vmware-server-2.0.x_x64-modules-2.6.30.4-fix.patch from http://codebin.cotescu.com/vmware/ failed!
    Check your internet connection. :(
    ——————–

    My Internet connection is working …
    Is uit something I could do about the above error…
    Thanks in advance, Igor.

    Radu said

    on November 13th, 2009,

    at 12:38 hours

    Igor, read the instructions… You don’t supply the actual archive in the path, only the path to it… For example if you have the archive in ~/Downloads and your script is is ~/ you call the script like this, asuming you are in ~/:

    sudo ./vmware-server-2.0.x-kernel-2.6.31-14-install.sh ~/Downloads

    But if you run the script from the same folder where the archive is, you should run the script like:

    sudo ./vmware-server-2.0.x-kernel-2.6.31-14-install.sh

    Good luck with this!

    Peter Devlin said

    on November 13th, 2009,

    at 16:05 hours

    Radu! Thank you! You’re a star!

    I found my way here via your comments on the VMware forums. You have saved me much headscratching. Have a good weekend mate :)

    Trithdurol said

    on November 13th, 2009,

    at 19:27 hours

    Hi Radu,
    first of all a big thanks for your script!

    I’m somehow stuck: after compiling some of the modules the script aborts with following message:
    [Code]
    LD [M] /tmp/vmware-config4/vmnet-only/vmnet.o
    Building modules, stage 2.
    MODPOST 1 modules
    CC /tmp/vmware-config4/vmnet-only/vmnet.mod.o
    LD [M] /tmp/vmware-config4/vmnet-only/vmnet.ko
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.31-14-server’
    cp -f vmnet.ko ./../vmnet.o
    make: Leaving directory `/tmp/vmware-config4/vmnet-only’
    Unable to make a vmnet module that can be loaded in the running kernel:
    insmod: error inserting ‘/tmp/vmware-config4/vmnet.o’: -1 File exists
    There is probably a slight difference in the kernel configuration between the
    set of C header files you specified and your running kernel. You may want to
    rebuild a kernel based on that directory, or specify another directory.

    For more information on how to troubleshoot module-related problems, please
    visit our Web site at “http://www.vmware.com/go/unsup-linux-products” and
    “http://www.vmware.com/go/unsup-linux-tools”.

    Execution aborted.

    Housekeeping…
    Thank you for using the script!
    Author: Radu Cotescu
    http://radu.cotescu.com
    [/Code]

    If I try to start vmware after that:
    [Code]
    root@server:~# vmware
    @@PRODUCT_NAME@@ is installed, but it has not been (correctly) configured
    for the running kernel. To (re-)configure it, invoke the
    following command: /usr/bin/vmware-config.pl.
    [/Code]

    When I run the script:
    [Code]
    root@server:~# /usr/bin/vmware-config.pl
    The following VMware kernel modules have been found on your system that were
    not installed by the VMware Installer. Please remove them then run this
    installer again.

    vmmon
    vmci

    I.e. – ‘rm /lib/modules/2.6.31-14-server/misc/.{o,ko}’

    Execution aborted.

    [/Code]

    If I delete those files, the script will also fail … where is the misstake?

    Radu said

    on November 13th, 2009,

    at 19:32 hours

    Apparently you tried to install the server on top of a previous installation. Uninstall the current installation, be careful to have those modules removed from your system and rerun the script. Check my other comments from here because several other people had similar problems.

    Trithdurol said

    on November 13th, 2009,

    at 21:26 hours

    Hello Radu,

    Thanks for your quick answer and all the effort you put into this!

    Before I found your script, I tried several vmware installations on my own (right after 9.10 was released). So probably you are right that the reason for the script to fail is that I missed to delete something. I just don’t know what it could be …

    I tried to uninstall vmware the following way:

    First I run the uninstall script /usr/bin/vmware-uninstall.pl
    (This will also remove the directory /lib/modules/`uname -r`/misc completly)

    After that I delete (almost) everything matching “|grep -i vm” from all the directorys mentioned during installation, to get rid of the leftovers:

    /usr/bin/
    /etc/
    /etc/init.d/
    /usr/sbin/
    /usr/lib/
    /usr/share/man/
    /usr/share/doc/

    But again I run in the same error with your script. Do you have any further hint, which files might still be needed to be removed in order to make your script work?

    Jian said

    on November 14th, 2009,

    at 01:12 hours

    Tried twice. Finally it works!

    I screw up at first try. Use /usr/bin/vmware-uninstall.pl to remove VM. Then tried again and everything seems working.

    Thanks a lot!

    Linux Newb said

    on November 14th, 2009,

    at 07:17 hours

    Radu,

    I have read the same solution that you have provided to those that could not install vmware w/your script. I placed the archive and your script in the same folder, but when i try to run the command in the same folder as the archive, I get this, “command not found”…

    For example:

    dawiz@trixbox:~$ sudo ./vmware-server-2.0.x-kernel-2.6.31-14-install.sh sudo: ./vmware-server-2.0.x-kernel-2.6.31-14-install.sh: command not found

    Even when trying to run it from the “Downloads” folder:

    dawiz@trixbox:~$ sudo ./VMware-server-2.0.x-kernel-2.6.31-14-install.sh /home/dawiz/Downloads
    sudo: ./VMware-server-2.0.x-kernel-2.6.31-14-install.sh: command not found

    What am I doing wrong?

    Thanks in advance

    Trithdurol said

    on November 14th, 2009,

    at 12:48 hours

    Hi again.

    I was finally able to fix it myself:

    root@server:/# rm -r /var/run/vmware
    root@server:/# rm -r /var/lib/vmware
    root@server:/# rm -r /var/log/vmware
    root@server:/# rm -r /tmp/vmware*

    => reboot
    check that following files are gone after reboot:
    root@server:/# ll /sys/module/ |grep -i vm
    drwxr-xr-x 5 root root 0 2009-11-14 11:47 vmci
    drwxr-xr-x 5 root root 0 2009-11-14 11:47 vmmon
    drwxr-xr-x 5 root root 0 2009-11-14 11:47 vmnet

    now the script should work perfect!

    Radu said

    on November 14th, 2009,

    at 13:04 hours

    Newb, you have not set the script to be executable. Btw, in the second output you f**ked up the name. Watch those capitals over there, as Linux is case sensitive. The command to make the script executable can be found in the code snippet from the blog post (the first line).

    Trithdurol said

    on November 14th, 2009,

    at 14:35 hours

    Hi Radu,

    sorry to abuse the comment function like this, but after I made vmware working with your script for a while, now after some reboots the vmware processes suddenly didn’t come up and it seems like I’m stuck again in the same place :(

    root@server:~# vmware
    @@PRODUCT_NAME@@ is installed, but it has not been (correctly) configured
    for the running kernel. To (re-)configure it, invoke the
    following command: /usr/bin/vmware-config.pl.

    root@server:~# /usr/bin/vmware-config.pl
    The following VMware kernel modules have been found on your system that were
    not installed by the VMware Installer. Please remove them then run this
    installer again.

    vmmon
    vmci
    vmnet

    I.e. – ‘rm /lib/modules/2.6.31-14-server/misc/.{o,ko}’

    Execution aborted.

    Probably not an issue with your script, but do you maybe have a hint?

    Radu said

    on November 14th, 2009,

    at 14:41 hours

    Trithdurol, follow the second set of instructions from this comment.

    Trithdurol said

    on November 14th, 2009,

    at 16:50 hours

    Nope, that’s not working (I tried it many times)…

    I found this hint: http://www.karakas-online.de/forum/viewtopic.php?t=909

    Deleting /etc/vmware/not_configured and I was able to bring vmware up immediately … so let’s see if the file appears again … if yes then probably I will have to write a script which kills this file on boot or something …

    Sorry for bothering you with my problems …

    I think vmware should pay you a big reward for helping people use their products! =)

    Kentech said

    on November 14th, 2009,

    at 20:53 hours

    Ubuntu server 9.10, VMware server 2.0.2, 64bit system. Everything installed fine except the vsocks module build, but I read somewhere that I may be ok without that module. The biggest problem though is that the VMware Infrastructure Web Access login give me this error: “Web service not available”, no matter what i type in, valid credentials or even junk characters. Been working on this login issue for 2 days without success. I’ve reinstalled the OS as well as VMware server several times. Probably nothing to do with the issue but i did verify that Apache Web server was installed with Ubuntu server. Any help would be appreciated.

    Radu said

    on November 14th, 2009,

    at 21:17 hours

    Apache Webserver has nothing to do with VMware. VMware Server comes with its own Apache Tomcat server. Check to see if the hald service is started though…

    Justinus said

    on November 15th, 2009,

    at 11:35 hours

    Waw, Great Man, i`ve done it with ease, thanks

    Dman said

    on November 15th, 2009,

    at 16:33 hours

    This worked out very nicely, Great Work…
    Many Thanks…………Dman

    emgrasso said

    on November 15th, 2009,

    at 17:55 hours

    Hi, Radu – Thanks for this.

    It worked well for me to begin with, but periodically seems to lose something in the networking.

    If I run /etc/init.d/vmware restart, it reports:

    root@ykchaua:/home/vmware/vmachines/RHEL_5# /etc/init.d/vmware restart
    Stopping VMware autostart virtual machines:                           
       Virtual machines                                  done
    Stopping VMware management services:                                       
       VMware Virtual Infrastructure Web Access                                
       VMware Server Host Agent                   done
    Stopping VMware services:                                                  
       VMware Authentication Daemon            done
       Virtual machine communication interface    done
       Virtual machine monitor                             done
       Bridged networking on /dev/vmnet0             done
       Host network detection                              done
       DHCP server on /dev/vmnet1                      done
       Host-only networking on /dev/vmnet1          done
       DHCP server on /dev/vmnet8                      done
       NAT service on /dev/vmnet8                        done
       Host-only networking on /dev/vmnet8           done
       Virtual ethernet                                         failed

    The only way to get a clean restart is to rerun /usr/bin/vmware-config.pl, which reports:

    The following VMware kernel modules have been found on your system that were
    not installed by the VMware Installer.  Please remove them then run this
    installer again.
     
    vmmon
    vmnet
    vmci
     
    I.e. - 'rm /lib/modules/2.6.31-14-generic/misc/.{o,ko}'
     
    Execution aborted.

    I saw your comment earlier in the thread, and my admin user is not root.

    I am not worried about the need to rebuild the modules, so much as the fact that they seem to stop working at random.

    Radu said

    on November 15th, 2009,

    at 18:29 hours

    Apparently VMware Server is pretty unstable on the current kernels from Ubuntu and I do not have a solution for this…

    shawn q said

    on November 15th, 2009,

    at 19:17 hours

    outstanding, mad props, radu, you own

    emgrasso said

    on November 15th, 2009,

    at 19:45 hours

    Digging a little deeper, the vmnet module seems to be hung now.

    Max said

    on November 16th, 2009,

    at 00:59 hours

    thank you so much!

    the patch i found aborted always on line 71…
    finally after 5 hours your solutin worked fine!

    what i still dont understand.. why is no one supplying the patched files to copy them in the vmware install dir?

    Peter Wirdemo said

    on November 16th, 2009,

    at 01:33 hours

    Hello seems to have some problem here, when starting it the first time, some things start, when I run the same command again… reconfigure needed…

    root@no1:/# /etc/init.d/vmware start
    Starting VMware services:
    Virtual machine monitor done
    Virtual machine communication interface done
    Virtual ethernet failed
    Bridged networking on /dev/vmnet0 done
    Host-only networking on /dev/vmnet1 (background) done
    DHCP server on /dev/vmnet1 done
    Host-only networking on /dev/vmnet8 (background) done
    DHCP server on /dev/vmnet8 done
    NAT service on /dev/vmnet8 done
    root@no1:/# ps -ef | grep vmware
    root 28333 1 0 00:28 ? 00:00:00 /usr/bin/vmnet-dhcpd -cf /etc/vmware/vmnet1/dhcpd/dhcpd.conf -lf /etc/vmware/vmnet1/dhcpd/dhcpd.leases -pf /var/run/vmnet-dhcpd-vmnet1.pid vmnet1
    root 28350 1 0 00:28 ? 00:00:00 /usr/bin/vmnet-dhcpd -cf /etc/vmware/vmnet8/dhcpd/dhcpd.conf -lf /etc/vmware/vmnet8/dhcpd/dhcpd.leases -pf /var/run/vmnet-dhcpd-vmnet8.pid vmnet8
    root 28355 1 0 00:28 ? 00:00:00 /usr/bin/vmnet-natd -d /var/run/vmnet-natd-8.pid -m /var/run/vmnet-natd-8.mac -c /etc/vmware/vmnet8/nat/nat.conf
    root 28631 28269 0 00:29 pts/1 00:00:00 grep vmware
    root@no1:/# /etc/init.d/vmware start
    VMware Server is installed, but it has not been (correctly) configured
    for the running kernel. To (re-)configure it, invoke the
    following command: /usr/bin/vmware-config.pl.

    ivan-s said

    on November 16th, 2009,

    at 11:59 hours

    I can’t istall VMware-server-2.0.2-203138.x86_64.tar.gz

    I have AMD64 CPU, GCC-4.3, Debian Lenny, vmware-server-2.0.x-kernel-2.6.31-14-install.sh, vmware-server-2.0.x_x64-modules-2.6.30.4-fix.patch,
    uname -r 2.6.31.6,
    echo $CC /usr/bin/gcc-4.3,

    kernel compiled with gcc-4.3

    When I run script vmware-server-2.0.x-kernel-2.6.31-14-install.sh I have taken :
    sh vmware-server-2.0.x-kernel-2.6.31-14-install.sh
    You have VMware Server archive:
    VMware-server-2.0.2-203138.x86_64.tar.gz
    Downloading patch file…
    You do have the linux-headers-2.6.31.6 package…
    You do have the build-essential package…
    You do have the patch package…
    Extracting the contents of VMware-server-2.0.2-203138.x86_64.tar.gz
    Checking patch download and archives from the extracted folders…
    Found .tar file for vmmon module
    Found .tar file for vmnet module
    Found .tar file for vsock module
    Found .tar file for vmci module
    Extracting .tar files in order to apply the patch…
    Untarring /home/ivan/VMWare64/vmware-server-distrib/lib/modules/source/vmmon.tar
    Untarring /home/ivan/VMWare64/vmware-server-distrib/lib/modules/source/vmnet.tar
    Untarring /home/ivan/VMWare64/vmware-server-distrib/lib/modules/source/vsock.tar
    Untarring /home/ivan/VMWare64/vmware-server-distrib/lib/modules/source/vmci.tar
    Testing patch…
    Applying patch…
    Preparing new tar file for vmmon module
    Preparing new tar file for vmnet module
    Preparing new tar file for vsock module
    Preparing new tar file for vmci module
    Checking that the compiling will succeed…
    Trying to compile vmmon module to see if it works
    Performing make in /home/ivan/VMWare64/vmware-server-distrib/lib/modules/source/vmmon-only
    Using 2.6.x kernel build system.
    /home/ivan/VMWare64/vmware-server-distrib/lib/modules/source/vmmon-only/linux/hostif.c: In function ‘HostIF_APICInit’:
    /home/ivan/VMWare64/vmware-server-distrib/lib/modules/source/vmmon-only/linux/hostif.c:2594: error: implicit declaration of function ‘__fix_to_virt’
    /home/ivan/VMWare64/vmware-server-distrib/lib/modules/source/vmmon-only/linux/hostif.c:2594: error: ‘FIX_APIC_BASE’ undeclared (first use in this function)
    /home/ivan/VMWare64/vmware-server-distrib/lib/modules/source/vmmon-only/linux/hostif.c:2594: error: (Each undeclared identifier is reported only once
    /home/ivan/VMWare64/vmware-server-distrib/lib/modules/source/vmmon-only/linux/hostif.c:2594: error: for each function it appears in.)
    /home/ivan/VMWare64/vmware-server-distrib/lib/modules/source/vmmon-only/linux/hostif.c: In function ‘HostIF_APIC_ID’:
    /home/ivan/VMWare64/vmware-server-distrib/lib/modules/source/vmmon-only/linux/hostif.c:2639: error: ‘FIX_APIC_BASE’ undeclared (first use in this function)
    make[2]: *** [/home/ivan/VMWare64/vmware-server-distrib/lib/modules/source/vmmon-only/linux/hostif.o] Ошибка 1
    make[1]: *** [_module_/home/ivan/VMWare64/vmware-server-distrib/lib/modules/source/vmmon-only] Ошибка 2
    make: *** [vmmon.ko] Ошибка 2
    There is a problem compiling the vmmon module after it was patched. :(

    When I run the same script on I386 with VMware-server-2.0.2-203138.i386.tar.gz all OK.

    What must I do?

    Radu said

    on November 16th, 2009,

    at 12:46 hours

    @Peter: I think it has to do something with VMware’s instability on these newer kernels…

    @Ivan: What Linux are you using? 32-bit or 64-bit?

    padiyar83 said

    on November 16th, 2009,

    at 17:06 hours

    thanks Radu that worked like a charm .. truly you are a super genius

    Mark said

    on November 16th, 2009,

    at 21:48 hours

    Worked like a charm! Thanks Radu!

    Tom said

    on November 16th, 2009,

    at 21:52 hours

    Great job on the script. It was very effective and saved me a lot of troubleshooting time. Thanks!

    Ivan-s said

    on November 17th, 2009,

    at 06:13 hours

    Hi, Radu!

    > @Ivan: What Linux are you using? 32-bit or 64-bit?

    I am using Debian-Lenny 64-bit for AMD

    Radu said

    on November 17th, 2009,

    at 12:02 hours

    Ivan, there must be something in the kernel that holds back that compilation to get done. And no, it’s not a kernel fault, it’s VMware’s fault… As you can see in the comments many people installed VMware x86_64 on x86_64 systems, but they had a 2.6.31 kernel… I am sorry I can’t help you!

    Jason Miller said

    on November 17th, 2009,

    at 13:21 hours

    Hi Radu,

    The installation went well I think. I have a AMD64 and Ubuntu 9.10. I am new to VMware, please help me get it started. Do I enter an URL in Firefox? Then, can I install windows drivers for my digital camera on the virtual machine? Thanks, Jason.

    Radu said

    on November 17th, 2009,

    at 14:01 hours

    Jason, point your browser to http://localhost:8222. Log in, define your virtual machine (add an USB controller to it), install Windows, install VMware Tools in your virtual machine and then connect the camera to your physical machine.

    Jason Miller said

    on November 18th, 2009,

    at 03:05 hours

    Radu,

    Thanks for your tips. It is not accepting my login name and password. I am using my email address for my VMware account and the password, but to no avail. Is there an admin or root login with password?

    Also, how do I set up a Windows Guest on the server or do I need a physical cd of Windows with licence to install? Thanks again, Jason.

    iteman said

    on November 18th, 2009,

    at 09:01 hours

    Thanks!

    Radu said

    on November 18th, 2009,

    at 12:41 hours

    Jason, for the VMware Server’s admin user you should have used your OS user. You are asked somewhere in the installation procedure what user would you like to use as an administrator. To regain access to VMware Server you should follow the second set of instructions from this comment.

    Regarding your other question, RTFM is the only technique that will get you started. The manuals are here. Basically, you need to read “VMware Server User’s Guide” and “Guest Operating System Installation Guide”.

    daxm said

    on November 19th, 2009,

    at 04:18 hours

    You rock!

    Thank you for sharing!

    Duke5A said

    on November 19th, 2009,

    at 06:46 hours

    Just used your script to install Server 2.02 on a fresh install of Ubuntu 9.10. Worked like a charm. Thanks a lot!

    meg said

    on November 19th, 2009,

    at 12:38 hours

    Dear Radu,

    tnx a lot!!!!
    The script running “out of the box”.

    You save my life today :-D

    Phil said

    on November 19th, 2009,

    at 13:38 hours

    Hi,

    Many thanks for your script!

    It works fine for my Koala Karmic 9.10 with a 2.6.31-14-generic 32 bits kernel.

    Phil

    LiNuX NeWb said

    on November 19th, 2009,

    at 22:17 hours

    Hey Radu,

    Thank you for helping me w/the script earlier… Thing is, now I have the problem:

    “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)? [no]”

    When I chose “no” it said “execution aborted”

    So does that mean that the install did not finish correctly? If it didn’t install properly, do I have to choose yes, and if I do, what do I need to make this work?

    Thanks for your help in advance!

    ~LiNuX NeWb

    Radu said

    on November 20th, 2009,

    at 00:55 hours

    N00b, of course you have to build those modules… The patch that this script applies is for those modules… Don’t be frightened though if VSOCK won’t compile (known issue but it’s not a problem).

    Keep me updated with your status after you rerun the script.

    Cooper Lees said

    on November 20th, 2009,

    at 06:23 hours

    Dam legend ! Thanks for sharing your hard work with this script – Appreciate it !

    All installed fine for me (albeit with a LOT of warnings :) )

    Alan Secker said

    on November 20th, 2009,

    at 10:37 hours

    I was having compile troubles on Mandriva 2010 x86_64 when a contributor to the Mandriva newsgroup (alt.os.linux.mandriva) claimed that he had run your (ubuntu) script successfully.

    I tried it and it ran flawlessly. Unfortunately when I got into the web browser stage and asked to log on, my username and password were not recognised! It spoiled the whole effect.

    So, the script should be broadcast across the whole Linux community. It clearly is a huge benefit.

    Thank you so much for your efforts.

    Radu said

    on November 20th, 2009,

    at 11:53 hours

    Alan, to be able to log in in the web UI provide your user as administrator for VMware Server when you are asked about this in the install process.

    Emanuele said

    on November 20th, 2009,

    at 16:07 hours

    VMWare 2.0.1-64 works fine on Opensuse 11.2 with your patch.

    Appreciated job

    Thanks,
    Emanuele

    Antonio Calabrò said

    on November 20th, 2009,

    at 20:27 hours

    Succesfully installed VMware server 2.0.2 64 bit on openSUSE 11.2 64 bit (of course!).

    Thanks a lot for your script!

    Antonio

    Ubuntu Dude said

    on November 20th, 2009,

    at 20:34 hours

    Thanks!!! There were still compile errors, but it worked.

    Nick said

    on November 20th, 2009,

    at 23:50 hours

    Legend! Works great. I previously had 9.10 linux with vmware and when this patch worked I was able to get the server up but it would not open the login window. In firefox I disabled the vmware plugin and it came up fine. THen when I opened the console window in vmware I reinstalled the plugin and then reenabled it. Works a treat! Thanks alot. Just hope I can get this gns3 lab running now grrrrr

    Radu said

    on November 20th, 2009,

    at 23:52 hours

    Nick, I must warn you that even if the install worked, the product isn’t pretty stable unfortunately. Bad coding sessions at VMware…

    Jos said

    on November 21st, 2009,

    at 01:23 hours

    Thanks, after a couple of turns I could install server as well, some of the vmware question are tricky. It says you don;t need to change settings and compile vmnet, but I could only install if I let it compile anyway.
    It works, now I can start making vmware-images to redistribute it with a program.

    Dalton said

    on November 21st, 2009,

    at 22:09 hours

    Eu sou do Brasil.

    Muito obrigado.

    thank you.

    meikelrix said

    on November 22nd, 2009,

    at 18:37 hours

    Thanks a million times, Radu!!!

    kindest regards
    meikelrix

    Niklas said

    on November 23rd, 2009,

    at 15:20 hours

    the link to your script seems to be broken. Could you re-post it please, ie. as a gist on github.com – they can handle the traffic ;-)

    Radu said

    on November 23rd, 2009,

    at 19:33 hours

    Niklas, the script is on the same server as my blog, only in a different folder. The link works okay and my hosting provider really supports the traffic my blog creates. Therefore, I will not move my script on GitHUB since the patch is automatically downloaded by the script from the same folder.

    Adrian said

    on November 24th, 2009,

    at 05:28 hours

    Legend – thanks mate!

    ironchefoklahoma said

    on November 25th, 2009,

    at 01:05 hours

    Worked perfectly for me, too.
    Thank you, Radu.

    CharlyBrown said

    on November 25th, 2009,

    at 13:11 hours

    thanks a lot working very well for me @Kernel 2.6.31-15 ubuntu koala karmic

    kenjiru said

    on November 25th, 2009,

    at 13:15 hours

    Thank you Radu, it works great.

    Sober, Mio said

    on November 25th, 2009,

    at 19:16 hours

    Thanks. Saved the day.

    Max said

    on November 25th, 2009,

    at 20:51 hours

    thanks, I needed that. have a good day!

    [...] thanks go out to Radu Cotescu for his Ubuntu Karmic Koala script which I will use for this guide (with a few [...]

    Netty said

    on November 27th, 2009,

    at 07:22 hours

    Thanks Mate,

    I just managed to get Vmware to compile on Fedora 12 with your script.

    TIm Brownlaw said

    on November 28th, 2009,

    at 06:11 hours

    Thanks a Ton!

    After madly head scratching and inventing new words (not to be repeated) I found your site, implemented what you have provided without any troubles and Viola!

    I have my VMware Server back up.

    I came from Kubuntu 8.04 and wanted to try out the 9.xx distros with the latest VMware.

    “It should just work” , shouldn’t it!

    Thanks again Radu.
    I can run my Windoze again which I only need to run some of the various Online Conferencing software I have to use. I’ve missed two classes which I hope my students won’t lynch me for.

    Cheers
    Tim

    Matt said

    on November 28th, 2009,

    at 06:54 hours

    Thanks for the work Radu! I got VMWare installed, but when I was in Windows setup (at the network config I think) it crashed, and Im getting the following error now:

    The following VMware kernel modules have been found on your system that were
    not installed by the VMware Installer. Please remove them then run this
    installer again.

    vmmon
    vmci
    vmnet

    I.e. – ‘rm /lib/modules/2.6.31-15-generic/misc/.{o,ko}’

    Any tips you can give me?

    [...] Hard Drive (forgetting to partition  my /var/usr separately). In the meantime I’d discovered how to install the latest version of VMware Server 2.0 on 9.10 After what seems a very long time. It worked straight out of the box – well for me it [...]

    Radu said

    on November 28th, 2009,

    at 12:03 hours

    @Matt: VMware Server on 9.10 seems to be a bit unstable. Follow exactly the instructions supplied by the script (remove the modules and do a reinstall).

    Matt said

    on November 29th, 2009,

    at 05:20 hours

    Thanks Radu, I didnt think it would be that simple. Your right about it being a bit unstable, I have to restart via /etc/init.d every so often but its not at all unusable.

    Also – Thanks Holger for the mouse info.. the numlock kept flashing until I used your fix.

    dexter said

    on November 29th, 2009,

    at 05:32 hours

    It worked for me! Very nice script.
    I’m running OpenSuse 11.2, Kernel 2.6.31-5

    Thanks!

    dave said

    on November 29th, 2009,

    at 10:54 hours

    Thank you for this, it worked well, however, how do you uninstall vmware server.

    Radu said

    on November 29th, 2009,

    at 13:17 hours

    Check the latest three or four comments…

    russ990 said

    on November 29th, 2009,

    at 18:26 hours

    I just upgraded to 9.10 and this was a lifesaver, worked great! thank you!

    thomas said

    on November 29th, 2009,

    at 21:17 hours

    Gregor S said
    on November 4th, 2009,
    at 17:18 hours
    Script works perfect.
    I have another problem …vmware-hostd is crashing from time to time. This results in inaccessible Vmware Web Access on port 8333.
    Does anyone have any idea about this problem (before I start googling)?
    I am having the same problem any idea on how it can be resolved. I am using 64-bit could that be a reason.

    Ken said

    on November 30th, 2009,

    at 22:07 hours

    Hi,
    I get the following.

    me@myserver:~$ sudo sh ./vmware-server-2.0.x-kernel-2.6.31-14-install.sh /usr/src/vmware-server-distrib/
    ./vmware-server-2.0.x-kernel-2.6.31-14-install.sh: 64: Syntax error: word unexpected (expecting “)”)

    this is a fresh install of both 9.10 + updates and vmware.
    me@myserver:~$ uname -a
    Linux wns-vh1 2.6.31-15-generic-pae #50-Ubuntu SMP Tue Nov 10 16:12:10 UTC 2009 i686 GNU/Linux
    me@myserver:~$

    VMWARE:VMware-server-2.0.2-203138.i386.tar.gz

    Thanks,
    ken

    Radu said

    on November 30th, 2009,

    at 22:10 hours

    Remove sh from your command… Read the instructions again and check that the folder you supply as argument contains the archive.

    Ken said

    on November 30th, 2009,

    at 22:15 hours

    here is the sh -x ..
    me@myserver:~$ sudo sh -x ./vmware-server-2.0.x-kernel-2.6.31-14-install.sh
    + VMWARE_HOME=
    + PATCH=vmware-server-2.0.x_x64-modules-2.6.30.4-fix.patch
    ./vmware-server-2.0.x-kernel-2.6.31-14-install.sh: 64: Syntax error: word unexpected (expecting “)”)
    me@myserver:~$

    Radu said

    on November 30th, 2009,

    at 22:21 hours

    Why don’t you follow the instructions?

    sudo ./vmware-server-2.0.x-kernel-2.6.31-14-install.sh [path to tar.gz file]

    The shell for which the script is written is BASH.

    seabee said

    on December 1st, 2009,

    at 07:29 hours

    Thank you ! It works on Ubuntu 9.10!

    Linux vmsrv 2.6.31-15-generic-pae #50-Ubuntu SMP Tue Nov 10 16:12:10 UTC 2009 i686 GNU/Linux

    Johny said

    on December 1st, 2009,

    at 15:49 hours

    Radu rules!

    i also had mouse problems on my laptop, but when accessing vmware from remote browser no problems were experienced. i solved the local issue by using ‘terminal services client’ – remote desktop instead of console window. it works perfectly.

    nick said

    on December 1st, 2009,

    at 23:33 hours

    hello
    I installed VMware server 2.0.2 on an madriva pwp 2010.using
    VMware-server-2.0.2-203138.x86_64.rpm but get errors when I run /usr/bin/vmware-config.pl.

    Extracting the sources of the vmmon module.
    Building the vmmon module.
    Using 2.6.x kernel build system.
    make: entrant dans le répertoire « /root/tmp/vmware-config3/vmmon-only »
    make -C /lib/modules/2.6.31.5-desktop-1mnb/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
    make[1]: entrant dans le répertoire « /usr/src/linux-2.6.31.5-desktop-1mnb »
    ...
    make[2]: *** [/root/tmp/vmware-config3/vmmon-only/linux/driver.o] Erreur 1
    make[1]: *** _module_/root/tmp/vmware-config3/vmmon-only Erreur 2
    make[1]: quittant le répertoire « /usr/src/linux-2.6.31.5-desktop-1mnb »
    make: *** http://vmmon.ko Erreur 2
    make: quittant le répertoire « /root/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/go/unsup-linux-products" and
    "http://www.vmware.com/go/unsup-linux-tools".
    Execution aborted

    I downloaded your script in my home directory How I use it ?thank you for your help
    nick

    Radu said

    on December 2nd, 2009,

    at 00:00 hours

    Nick, read the instructions… Take care to have installed gcc, make, patch, your kernel’s header files and I think that should be it. As my script is written for Ubuntu check to see that the Ubuntu specific instructions (package checking) don’t interfere with your system.

    Rachel said

    on December 2nd, 2009,

    at 04:14 hours

    Hey, thanks so much! Worked like a charm.

    Samir Mishra said

    on December 2nd, 2009,

    at 14:14 hours

    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    Package patch is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    E: Package patch has no installation candidate

    This is the error I get when I tried to install the patch using
    sudo apt-get install patch

    What should I do now?

    Matt Flaherty said

    on December 3rd, 2009,

    at 01:26 hours

    Hey. Just wanted to say thanks to you and the other contributors for this solution. It worked without modification on the latest opensuse version 11.2 with kernel 2.6.31.5-0.1. Probably wouldn’t have if I hadn’t already had the kernel headers and other dependencies installed as this distro doesn’t use “apt”, but that’s a very small matter. Thanks again.

    Paul said

    on December 3rd, 2009,

    at 12:23 hours

    This is brilliant – VMWare never seems to ‘play nice’ when upgrading Ubuntu for me but this is a lifesaver :)

    Jami said

    on December 3rd, 2009,

    at 18:09 hours

    Hey there.. i get the following output when running your script (it might be relevant that Im using OpenSUSE 11.2 as opposed to Ubuntu). Any idea whats going wrong?

    You have VMware Server archive:                                                             
            VMware-server-2.0.2-203138.x86_64.tar.gz                                            
    Downloading patch file...                                                                   
    Installing linux-headers-2.6.31.5-0.1-desktop package...                                    
    /home/jamie/bin/vmware-server-2.0.x-kernel-2.6.31-14-install.sh: line 84: apt-get: command not found
    Installing build-essential package...                                                               
    /home/jamie/bin/vmware-server-2.0.x-kernel-2.6.31-14-install.sh: line 90: apt-get: command not found
    Installing patch package...                                                                         
    /home/jamie/bin/vmware-server-2.0.x-kernel-2.6.31-14-install.sh: line 96: apt-get: command not found
    Extracting the contents of VMware-server-2.0.2-203138.x86_64.tar.gz                                 
    Checking patch download and archives from the extracted folders...                                  
    Found .tar file for vmmon module                                                                    
    Found .tar file for vmci module                                                                     
    Found .tar file for vmnet module                                                                    
    Found .tar file for vsock module                                                                    
    Extracting .tar files in order to apply the patch...                                                
    Untarring /home/jamie/bin/vmware-server-distrib/lib/modules/source/vmmon.tar                        
    Untarring /home/jamie/bin/vmware-server-distrib/lib/modules/source/vmci.tar                         
    Untarring /home/jamie/bin/vmware-server-distrib/lib/modules/source/vmnet.tar                        
    Untarring /home/jamie/bin/vmware-server-distrib/lib/modules/source/vsock.tar                        
    Testing patch...                                                                                    
    Applying patch...                                                                                   
    Preparing new tar file for vmmon module                                                             
    Preparing new tar file for vmci module                                                              
    Preparing new tar file for vmnet module                                                             
    Preparing new tar file for vsock module                                                             
    Checking that the compiling will succeed...                                                         
    Trying to compile vmmon module to see if it works                                                   
    Performing make in /home/jamie/bin/vmware-server-distrib/lib/modules/source/vmmon-only              
    Using standalone build system.                                                                      
    ./autoconf/geninclude.c:19:28: error: linux/autoconf.h: No such file or directory                   
    .././autoconf/geninclude.c:19:28: error: linux/autoconf.h: No such file or directory                
    Dependencies for driver.c                                                                           
    In file included from .././include/compat_version.h:35,
                     from .././include/driver-config.h:36,
                     from .././linux/driver.c:20:
    /usr/include/linux/version.h:2:2: error: #error "======================================================="
    /usr/include/linux/version.h:3:2: error: #error "You should not include /usr/include/{linux,asm}/ header"
    /usr/include/linux/version.h:4:2: error: #error "files directly for the compilation of kernel modules."
    /usr/include/linux/version.h:5:2: error: #error ""
    /usr/include/linux/version.h:6:2: error: #error "glibc now uses kernel header files from a well-defined"
    /usr/include/linux/version.h:7:2: error: #error "working kernel version (as recommended by Linus Torvalds)"
    /usr/include/linux/version.h:8:2: error: #error "These files are glibc internal and may not match the"
    /usr/include/linux/version.h:9:2: error: #error "currently running kernel. They should only be"
    /usr/include/linux/version.h:10:2: error: #error "included via other system header files - user space"
    /usr/include/linux/version.h:11:2: error: #error "programs should not directly include  or"
    /usr/include/linux/version.h:12:2: error: #error " as well."
    /usr/include/linux/version.h:13:2: error: #error ""
    /usr/include/linux/version.h:14:2: error: #error "To build kernel modules please do the following:"
    /usr/include/linux/version.h:15:2: error: #error ""
    /usr/include/linux/version.h:16:2: error: #error " o Have the kernel sources installed"
    /usr/include/linux/version.h:17:2: error: #error ""
    /usr/include/linux/version.h:18:2: error: #error " o Make sure that the symbolic link"
    /usr/include/linux/version.h:19:2: error: #error "   /lib/modules/`uname -r`/build exists and points to"
    /usr/include/linux/version.h:20:2: error: #error "   the matching kernel source directory"
    /usr/include/linux/version.h:21:2: error: #error ""
    /usr/include/linux/version.h:22:2: error: #error " o When compiling, make sure to use the following"
    /usr/include/linux/version.h:23:2: error: #error "   compiler option to use the correct include files:"
    /usr/include/linux/version.h:24:2: error: #error ""
    /usr/include/linux/version.h:25:2: error: #error "   -I/lib/modules/`uname -r`/build/include"
    /usr/include/linux/version.h:26:2: error: #error ""
    /usr/include/linux/version.h:27:2: error: #error "   instead of"
    /usr/include/linux/version.h:28:2: error: #error ""
    /usr/include/linux/version.h:29:2: error: #error "   -I/usr/include/linux"
    /usr/include/linux/version.h:30:2: error: #error ""
    /usr/include/linux/version.h:31:2: error: #error "   Please adjust the Makefile accordingly."
    /usr/include/linux/version.h:32:2: error: #error "======================================================="
    In file included from .././linux/driver.c:20:
    .././include/driver-config.h:42:5: error: #error "No Module support in this kernel.  Please configure with CONFIG_MODULES"
    make[1]: *** [driver.d] Error 1
    make: *** [deps] Error 2
    There is a problem compiling the vmmon module after it was patched. :(

    Bradford said

    on December 3rd, 2009,

    at 18:54 hours

    Thank you so much for posting this. It made things much easier for me.

    hewhocutsdown said

    on December 4th, 2009,

    at 00:38 hours

    I’m getting some curious errors; your script installed VMWare Server fine on a brand new Ubuntu Server 9.10 box, but I received the following errors when I try to start vmware and then when I respond to their instructions.

    See the pastebin: http://pastebin.com/f551cfb18

    d m said

    on December 4th, 2009,

    at 01:10 hours

    worked pretty well – even on opensuse 11.2
    thanx a lot…

    Radu said

    on December 4th, 2009,

    at 01:26 hours

    @Jami: Make sure you have the dependencies resolved. For Ubuntu the script takes care of them, but it will fail for OpenSUSE. Open the script and look for the lines with apt-get and install the corresponding packages in your distro.

    @hewhocutsdown: Had you installed VMware Player before you installed VMware Server or did you try to install VMware Server before using my script? Clean those modules and every trace VMware left on your system and re-run my script.

    hewhocutsdown said

    on December 4th, 2009,

    at 02:48 hours

    I installed Ubuntu Server, then build-essential and OpenSSH, then VMWare Server. Nothing else.

    I’ll clean those modules out and then I’ll try your script again tomorrow.

    Superkikim said

    on December 4th, 2009,

    at 03:47 hours

    Works like a charm. Thank you so much

    Hannes said

    on December 4th, 2009,

    at 15:00 hours

    Also works with current kernel:

    2.6.31-15-generic

    Thank you!

    hewhocutsdown said

    on December 4th, 2009,

    at 18:13 hours

    Reinstalling once didn’t fix it; the second time did. It worked for a while, and then I tried to stop it and the virtual ethernet failed to stop. Starting it throws the error:

    VMware Server is installed, but it has not been (correctly) configured
    for the running kernel. To (re-)configure it, invoke the
    following command: /usr/bin/vmware-config.pl.

    Running through this again sometimes fixes it, sometimes doesn’t. Retrying it eventually fixes it, and it works for a while, and then it fails again.

    Reproduced on a 32-bit version of Ubuntu 9.10. I’m going to try and get ahold of VMWare on this one.

    River Hume said

    on December 4th, 2009,

    at 22:45 hours

    Hello,

    I am having trouble with your script. Initially I was gettingt he following error:

    You do have the patch package…
    Checking patch download and archives from the extracted folders…
    The download of vmware-server-2.0.x_x64-modules-2.6.30.4-fix.patch from http://codebin.cotescu.com/vmware/ failed!
    Check your internet connection. :(

    So I downloaded the patchfile manually, and then it seemed to progress further, though now I get the following:


    Checking patch download and archives from the extracted folders…
    Found .tar file for vmppuser module
    Found .tar file for vmmon module
    Found .tar file for vmnet module
    Extracting .tar files in order to apply the patch…
    Untarring /home/arcs/linux/vmware/vmware-server-distrib/lib/modules/source/vmppuser.tar
    tar: vmppuser-only: Cannot mkdir: Permission denied
    tar: vmppuser-only/Makefile: Cannot open: No such file or directory

    tar: Exiting with failure status due to previous errors
    vmppuser.tar tarball failed to extract in the directory vmppuser-only. :(

    The directory I am in is writable, as is every subdirectory… I tried adding the directory myself, but it is difficult to infer where it should even go (I tried my 2 best guesses, and the error was unchanged).

    Any suggestions? Thanks In Advance!

    Radu said

    on December 4th, 2009,

    at 23:58 hours

    River, give me the following data: your distribution, your kernel version, what VMware version have you tried to install and the way you tried to run my script.

    The module you are experiencing errors with doesn’t exist in VMware Server 2.0.x.

    River Hume said

    on December 5th, 2009,

    at 03:08 hours

    Whoops, sorry I forgot to include that:

    Kubuntu 9.10 karmic
    2.6.31-15-generic
    VMware-server-2.0.2-203138.i386.tar.gz
    sudo ./vmware-server-2.0.x-kernel-2.6.31-14-install.sh

    quachcuong said

    on December 5th, 2009,

    at 10:04 hours

    thanks so much Radu. But i don’t know why my vmware only run in few minutes after install. Thus, it crash in next 5 minutes after, I don’t know why.

    Radu said

    on December 5th, 2009,

    at 10:21 hours

    @River: The module vmpuser doesn’t exist in the sense that VMware Server 2.0.x doesn’t have that .tar file in that folder… Try reinstalling using my script. I don’t know what went wrong but you don’t have to interfere with the script like providing the patch or something… Re-run it after you clean the workspace.

    @quachcuong: You experience that because VMware Server on the newer kernels is unstable. It seems that the latest builds of the server were made for kernel 2.6.27…

    nick said

    on December 5th, 2009,

    at 17:51 hours

    hello Radu thanks for help
    ‘my mesg on December 1st, 2009, at 23:33 hours)

    gcc, make, patch are installed About “your kernel’s header ”
    which pakages is?
    linux-userspace-headers-2.6.31-1mnb2.x86_64, kernel-desktop-2.6.31.5-1mnb-1-1mnb2.x86_64, kernel-desktop-2.6.31.5-1mnb-1-1mnb2.x86_64, linux-userspace-headers-2.6.31-1mnb2.x86_64 are also installed
    Si I undestood your script doesn’t work with mandriva
    You can see entire mesg at
    http://communities.vmware.com/thread/244921
    but not
    answe for the moment
    i hope you will unsderstand , my english is “limit”
    thanks
    nick

    Fubie said

    on December 5th, 2009,

    at 23:27 hours

    Hi, I keep getting the following errors after running the script.

    sudo ./vmware-server-2.0.x-kernel-2.6.31-14-install.sh
    You have VMware Server archive:
            VMware-server-2.0.2-203138.i386.tar.gz
    Downloading patch file...
    You do have the linux-headers-2.6.31-15-generic package...
    You do have the build-essential package...
    You do have the patch package...
    Checking patch download and archives from the extracted folders...
    Found .tar file for vmmon module
    Found .tar file for vmnet module
    Found .tar file for vmci module
    Found .tar file for vsock module
    Extracting .tar files in order to apply the patch...
    Untarring /home/fubie/Downloads/vmware-server-distrib/lib/modules/source/vmmon.tar
    Untarring /home/fubie/Downloads/vmware-server-distrib/lib/modules/source/vmnet.tar
    Untarring /home/fubie/Downloads/vmware-server-distrib/lib/modules/source/vmci.tar
    Untarring /home/fubie/Downloads/vmware-server-distrib/lib/modules/source/vsock.tar
    Testing patch...
    Reversed (or previously applied) patch detected!  Skipping patch.
    1 out of 1 hunk ignored -- saving rejects to file vmci-only/Makefile.rej
    Reversed (or previously applied) patch detected!  Skipping patch.
    1 out of 1 hunk ignored -- saving rejects to file vmmon-only/linux/driver.c.rej
    Reversed (or previously applied) patch detected!  Skipping patch.
    3 out of 3 hunks ignored -- saving rejects to file vmmon-only/linux/hostif.c.rej
    Reversed (or previously applied) patch detected!  Skipping patch.
    1 out of 1 hunk ignored -- saving rejects to file vmmon-only/include/x86svm.h.rej
    Reversed (or previously applied) patch detected!  Skipping patch.
    1 out of 1 hunk ignored -- saving rejects to file vmmon-only/Makefile.rej
    Reversed (or previously applied) patch detected!  Skipping patch.
    1 out of 1 hunk ignored -- saving rejects to file vmnet-only/Makefile.rej
    Reversed (or previously applied) patch detected!  Skipping patch.
    6 out of 6 hunks ignored -- saving rejects to file vmnet-only/netif.c.rej
    Reversed (or previously applied) patch detected!  Skipping patch.
    1 out of 1 hunk ignored -- saving rejects to file vsock-only/Makefile.rej
    The patch cannot be applied. :(

    Radu said

    on December 6th, 2009,

    at 00:45 hours

    Fubie, it seems that either you have run the script before but stopped it after applying the patch, either you have extracted the VMware Server’s archive and tried to apply the patch manually. If you would have run the script without having the extracted contents of the archive in that folder the following message would have also appeared:

    Extracting the contents of VMware-server-2.0.2-203138.i386.tar.gz

    If that message doesn’t appear it means that you have the folder vmware-server-distrib in that path, which means that in some way or another you have extracted VMware Server before. Probably by stopping my script from completion. Delete that folder and rerun the script if you are certain that VMware’s modules haven’t been pushed to your system.

    Garan said

    on December 6th, 2009,

    at 09:45 hours

    Works on 2.6.31-16-server too.

    MValdez said

    on December 6th, 2009,

    at 19:35 hours

    It works in Slackware 13 (64 bits) with a custom 2.6.31.3 kernel… but I have to comment out the lines of the script regarding the requirements checking and the calls to dpkg or apt, as we don’t use those in Slack. (However, I have to compile PAM before installing VMware Server).

    Thanks for sharing.

    Have you tried to embed the patch in the script? That would be alot easier for people who don’t have a connection while installing.

    Regards,

    MV

    Radu said

    on December 6th, 2009,

    at 19:39 hours

    MValdez, adapt the script, if you want, for Slackware and publish it somewhere. But keep in mind that VMware is really unstable on the 2.6.31 kernels. How could one embed the patch in the script?

    jebblue said

    on December 6th, 2009,

    at 21:45 hours

    Nice work Radu! Worked on Ubuntu 9.10.

    batibot said

    on December 7th, 2009,

    at 06:26 hours

    Quick question. Why is the patch coming from your ftp site and not from vmware? Did you build it yourself?

    Radu said

    on December 7th, 2009,

    at 09:32 hours

    @Batibot: The patch was posted on VMware Communities site. But since I don’t know if they will change the URLs or not I decided to put it on my webserver. Do you have a problem downloading it or something?

    MikeS said

    on December 7th, 2009,

    at 10:17 hours

    Hi Radu,

    Install went well but server did not start, manual start shows:

    Starting VMware services:
       Virtual machine monitor                                            failed
       Virtual machine communication interface                             done
       Virtual ethernet                                                   failed
       Bridged networking on /dev/vmnet0                                   done
       Host-only networking on /dev/vmnet1 (background)                    done
       DHCP server on /dev/vmnet1                                          done
       Host-only networking on /dev/vmnet8 (background)                    done
       DHCP server on /dev/vmnet8                                          done
       NAT service on /dev/vmnet8                                         failed

    I’ve tried reinstalling, but the script fails when it tries to stop the server.

    Any hints?

    Many thank!
    Mike

    Radu said

    on December 7th, 2009,

    at 10:21 hours

    VMware is pretty unstable on this kernel… To reinstall it first you have to uninstall VMware by using the supplied Perl script made by VMware:

    sudo vmware-uninstall.pl

    Enrico said

    on December 7th, 2009,

    at 18:41 hours

    That’s a great script!! Thank you very much!!!! :) :)

    Enrico

    Mike said

    on December 8th, 2009,

    at 05:16 hours

    Radu, Thank you very much for this tutorial. It worked like a charm. I was about to go back to a 32 bit version until I came across your site. Good Job!

    Ubuntu 9.10 AMD64 | 2.6.31-16-generic

    VM Ware Internet Connection - HEXUS.community discussion forums said

    on December 8th, 2009,

    at 09:36 hours

    [...] Which VMWare product is this? Are you talking about VMWare Server? If so… have you had a look at this? Originally Posted by aidanjt A large root will do ok Please consider sponsoring me to run [...]

    Jasen Hicks said

    on December 9th, 2009,

    at 01:57 hours

    Great script. I tested this on Debian Lenny and with the exception of having to add a symbolic link for gcc, the script ran smoothly. Thanks.

    Osis said

    on December 9th, 2009,

    at 10:37 hours

    thanks for write-up, installed something, but not fully (that is perfect since i do not need vmware running). The weird bit is – vmware-server-console works only if started as root (sudo) else i get /usr/lib/vmware-server-console/bin/vmware-server-console: symbol lookup error: /usr/lib/gtk-2.0/i686-pc-linux-gnu/modules/libcanberra-gtk-module.so: undefined symbol: gtk_icon_view_get_type

    quachcuong said

    on December 9th, 2009,

    at 11:53 hours

    Thanks so much!!!
    To Radu: may be my ubuntu server is not stable.
    I will try it in my ubuntu desktop. I seem more stable than server.
    Maybe, waiting for sometimes before vmware publish new kernel that modified.
    I that time, your code is help me so much for my job. Thanks, my server cannot use 8.04 LTS, so i must to change 9.10. :)

    quachcuong said

    on December 9th, 2009,

    at 11:57 hours

    To Radu and many: How about dkms ???

    peturberg said

    on December 9th, 2009,

    at 15:05 hours

    Thanks, this script finally got the VMware server running for me.

    Keep up the good work

    Dexter said

    on December 10th, 2009,

    at 00:05 hours

    Hi.. i had installed on opensuse 11.2 using this path but vm jut stoped to work. I did uninstalled vmware but now i can’t install again having this error:

    make[4]: ** [/home/joaocarlos/Temp/vmware-server-distrib/lib/modules/source/vmci-only/linux/driver.o] Erro 1
    make[3]: ** [_module_/home/joaocarlos/Temp/vmware-server-distrib/lib/modules/source/vmci-only] Erro 2
    make[2]: ** [sub-make] Erro 2
    make[1]: ** [all] Erro 2
    make: ** [vmci.ko] Erro 2

    I just reinstall all the required packages and got the same error. Any idea for what should i do?
    uname -r gives me:
    2.6.31.5-0.1-desktop
    And i got:

    linux-kernel-headers-2.6.31-3.4.noarch
    gcc-c++-4.4-4.2.x86_64
    automake-1.11-6.2.x86_64
    kernel-source-2.6.31.5-0.1.1.noarch
    gcc-4.4-4.2.x86_64
    make-3.81-130.2.x86_64

    installed on my system.

    Radu said

    on December 10th, 2009,

    at 00:50 hours

    Sorry, Dexter… I don’t have a clue about what’s happening on your system…

    Thomas said

    on December 11th, 2009,

    at 20:43 hours

    It seems the script needs “sudo apt-get install wget” before, otherwise it cannot download the patch and will stop asking to check the internet connection.

    Radu said

    on December 11th, 2009,

    at 21:58 hours

    wget is installed by default. I can’t check for every command the script uses…

    Hell's Grannie said

    on December 12th, 2009,

    at 16:40 hours

    Works like a charm. VMware Server 2.0.2 on Open Suse 11.2 – 64bit – kernel 2.6.31.5-0.

    Make sure gcc, make, patch, kernel-source, linux-kernel-headers and kernel-desktop-devel are installed and you’re good to go.

    Thanks again, Radu

    manfred said

    on December 14th, 2009,

    at 23:10 hours

    dear radu,
    after updating to 9.10 I ve been really sad that AGAIN vmware did not survive the upgrade. (there has been the same problem with, I think 8.04 and I remember that I worked on the problem for days).
    So as you saved me a lot of work and time and did it in such a professional way, I want to give to you my personal
    UBUNTU COMMUNITY EXPERIENCE AWARD 2009
    thank you for your well done work!!
    regards
    manfred

    rodger spooncer said

    on December 14th, 2009,

    at 23:53 hours

    I’ve tried and tried…. no success
    ubuntu 9.10 with
    /home/rodger/Desktop/VMware-server-2.0.1-156745.i386.tar.gz

    rodger@linux-desktop:~/Desktop$ uname -r
    2.6.31-17-generic
    rodger@linux-desktop:~/Desktop$ sudo ./vmware-server-2.0.x-kernel-2.6.31-14-install.sh
    sudo: ./vmware-server-2.0.x-kernel-2.6.31-14-install.sh: command not found
    rodger@linux-desktop:~/Desktop$

    Help please i’ve read your instructions but just mind gone blank after 6 hours of fruitless variations of script – i obviously have no idea of the basics. Can you explain in simple terms. Thanks Rodger

    Radu said

    on December 15th, 2009,

    at 00:31 hours

    It seems that either you have not made the script executable either you don’t have the script in the same folder in which you are trying to run it. Check these two suppositions and see what’s wrong.

    Randy said

    on December 15th, 2009,

    at 07:01 hours

    This worked PERFECTLY !!!!!!!!
    Thank you soooooooo much.

    Luke said

    on December 15th, 2009,

    at 13:48 hours

    Hi Radu, I’m having problems getting VMWare Server 2.0.2 installed on ubuntu 9.10 server 64bit with kernel 2.6.31-14

    I run your script and get the following output:
    [long error message removed]
    Can you help?

    rodger spooncer said

    on December 15th, 2009,

    at 21:02 hours

    Hi Radu. the archive file VMware-server-2.0.1-156745.i386.tar.gz is on my Desktop.

    I ran the script sudo ./vmware-server-2.0.x-kernel-2.6.31-14-install.sh from ~/Desktop (in Terminal).

    Dare I be so unknowledgeable and ask how do you make the script executable if this is needed ?? Sorry if I’m so dumb.

    Thanks rodger

    Radu said

    on December 16th, 2009,

    at 01:15 hours

    @Luke: remove that trailing slash at the end… I don’t see any other problem…
    @Rodger: chmod +x vmware-server-2.0.x-kernel-2.6.31-14-install.sh

    sandra said

    on December 16th, 2009,

    at 01:57 hours

    Hey, Radu, is it possible to unsubscribe from comments? :D

    Dave said

    on December 16th, 2009,

    at 06:34 hours

    Thanks worked Great!!

    Well, after I changed the default admin to a user instead of root. still not used to using sudo.

    installed fine on ubuntu ultimate edition 64 bit 9.10

    Thanks again.

    Dave

    Radu said

    on December 16th, 2009,

    at 12:37 hours

    Yes Sandra… Under the comment form there is a link which will take you to the subscription manager. If you cannot do it yourself give me a sign (that would mean that something is wrong with my comment subscription manager).

    Neo said

    on December 16th, 2009,

    at 23:40 hours

    Nicely done Radu, that works really fine.

    rodger spooncer said

    on December 17th, 2009,

    at 12:11 hours

    Hi Radu,

    This time the extraction and installation worked fine… to a point.
    The installation completed but could you tell me where the launch exec file is located because in the pre install clean up the old launch button was removed from the toolbar.
    I have tried /usr/bin/vmrun to no effect.

    Regards Rodger

    Radu said

    on December 17th, 2009,

    at 12:23 hours

    Rodger, by default VMware Server is set to start when your system boots. If by any chance your server doesn’t start, try

    sudo /etc/init.d/vmware start

    To access the console go to http://localhost:8222.

    rodger spooncer said

    on December 17th, 2009,

    at 12:53 hours

    This is what I get in terminal.

    Starting VMware services:
    Virtual machine monitor failed
    Virtual machine communication interface done
    Virtual ethernet failed
    Bridged networking on /dev/vmnet0 done
    Host-only networking on /dev/vmnet1 (background) done
    DHCP server on /dev/vmnet1 done
    Host-only networking on /dev/vmnet8 (background) done
    DHCP server on /dev/vmnet8 done
    NAT service on /dev/vmnet8 failed

    …but no indication that anything is running anywhere.
    Rodger

    rodger spooncer said

    on December 17th, 2009,

    at 13:04 hours

    Hi Radu,
    getting it bit by bit…..

    localhost:8222
    use root and password..

    …but when I select power on for windows xp in the VMware screen it gets to 95% and then I get a display showing “power on virtual machine fails to complete”.

    Rodger

    Radu said

    on December 17th, 2009,

    at 14:33 hours

    Check that you meet VMware Server’s system requirements. But if vmmon is still down, you have no luck… VMware Server is unstable on this kernel anyway…

    rodger spooncer said

    on December 17th, 2009,

    at 18:19 hours

    Hi Radu,
    Thank you for your patience. I think I must have drawn the short straw trying to upgrade to 9.10. I no longer can use Skype and the sound with pulseaudio doesn’t work either. I will just have to acknowledge that I don’t have the skills to work from basic principles and wait till a version of ubuntu comes through that sort of works-out-of-the-box.
    Looks like back to Windows for the moment.
    Should have stayed with 9.04 !!

    Best Regards

    Rodger

    Radu said

    on December 17th, 2009,

    at 18:22 hours

    Go to 9.04. Don’t go back to Windows… :)

    Luke said

    on December 18th, 2009,

    at 14:18 hours

    Hi Radu,

    I can’t see my output as it was removed but I assume you mean remove the trailing slash from the command like so:

    support@ubuntu-vpn-1:~$ sudo ./vmware-server-2.0.x-kernel-2.6.31-14-install.sh /home/support

    Is this what you’re saying? If so, it still does not work and I get the same errors.

    Radu said

    on December 18th, 2009,

    at 15:07 hours

    Luke, I don’t know what to say… Maybe the patch doesn’t work with the kernel you’re running (I still have your output in an email)… I am so sick of VMware issues. Sorry I can’t help.

    Jim Fieser said

    on December 18th, 2009,

    at 19:34 hours

    Bravo Radu!

    Shuvam said

    on December 19th, 2009,

    at 09:00 hours

    I think I found a good way to set the environment variable VMWARE_USE_SHIPPED_GTK once and for all, for an Ubuntu GNOME desktop user. You can do it once and it will remain effective across reboots or logouts.

    Just create a file ~/.gnomerc and put the line in it:
    export VMWARE_USE_SHIPPED_GTK=yes

    You may need to make the file executable. Once this is done, the env var is visible to any application fired through the GNOME menus or from terminal command-prompt.

    I’m now thinking of putting other commands, e.g. ssh-agent, into my .gnomerc.

    Thanks, Radu, for the patch and script. It saved my life, like many others. :)

    vinyloup said

    on December 19th, 2009,

    at 18:52 hours

    Hello Radu,
    I confirm that your script works – as is – on Mandriva 2010 (kernel 2.6.31.6-desktop-1mnb). I’ll try to fill up the time lost…
    A thousand thank you from Grenoble (Fr).

    Harry said

    on December 20th, 2009,

    at 16:32 hours

    Hello Radu,
    Many Thanks on u for this all! My Respect.

    My distro is:
    Linux harry-desktop 2.6.31-16-generic #53-Ubuntu SMP Tue Dec 8 04:02:15 UTC 2009 x86_64 GNU/Linux

    With each new kernel I need to recompile. This is well aware. Where can I get her the new patch?
    Today when I wanted to start VMWare, it did not work. Then I thought that I must re-patch. But, I received the following message:

    Testing patch...
    Reversed (or previously applied) patch detected!  Skipping patch.
    1 out of 1 hunk ignored -- saving rejects to file vmci-only/Makefile.rej
    Reversed (or previously applied) patch detected!  Skipping patch.
    1 out of 1 hunk ignored -- saving rejects to file vmmon-only/linux/driver.c.rej
    Reversed (or previously applied) patch detected!  Skipping patch.
    3 out of 3 hunks ignored -- saving rejects to file vmmon-only/linux/hostif.c.rej
    Reversed (or previously applied) patch detected!  Skipping patch.
    1 out of 1 hunk ignored -- saving rejects to file vmmon-only/include/x86svm.h.rej
    Reversed (or previously applied) patch detected!  Skipping patch.
    1 out of 1 hunk ignored -- saving rejects to file vmmon-only/Makefile.rej
    Reversed (or previously applied) patch detected!  Skipping patch.
    1 out of 1 hunk ignored -- saving rejects to file vmnet-only/Makefile.rej
    Reversed (or previously applied) patch detected!  Skipping patch.
    6 out of 6 hunks ignored -- saving rejects to file vmnet-only/netif.c.rej
    Reversed (or previously applied) patch detected!  Skipping patch.
    1 out of 1 hunk ignored -- saving rejects to file vsock-only/Makefile.rej
    The patch cannot be applied. :(

    Can you help me please?

    Adrian said

    on December 20th, 2009,

    at 19:49 hours

    Well done that man!

    Worked like a charm

    Radu said

    on December 20th, 2009,

    at 20:37 hours

    Harry, delete the extracted contents of the VMware archive (the vmware-server-distrib folder), uninstall your existing VMware Server and reuse my script. But this seems a bit strange. From what I know, the server should detect the kernel changes and automatically recompile the modules.

    Harry said

    on December 20th, 2009,

    at 21:44 hours

    Ok. Thank you. Now it running again. But, there are many lines that display errors. Look here:

    [message removed]
    This is only a part of very many lines. The server starts, but the messages worry me.
    Often stands in the rows following warning:

    warning: “__FreeBSD__” is not defined

    I hope that you have an explanation. From the first use of the script, I had these messages also. And I had the problem that the keyboard and mouse in the virtual machine is not working properly.

    Regards
    Harry

    Andre said

    on December 20th, 2009,

    at 22:40 hours

    Thanks for the solution!

    Radu said

    on December 21st, 2009,

    at 10:13 hours

    @Harry: Please read my post again. I have written about these messages and also about the mouse and keyboard problems.

    Henning Schmidt said

    on December 21st, 2009,

    at 12:31 hours

    Thanks a lot, your script saved me lots of time!

    matthew yong said

    on December 21st, 2009,

    at 15:19 hours

    yay! finally one patch that works with Karmic Koala.

    Jason Landstrom said

    on December 21st, 2009,

    at 22:19 hours

    I ran this on Fedora 11 and it worked.

    Thank you!!!!!!!!!!!!

    Mehdi said

    on December 22nd, 2009,

    at 02:28 hours

    Hello Radu,
    executing ./start-VMware-console.sh I get this error:
    …mozilla/firefox/cudadof8.default/extensions/VMwareVMRC@vmware.com/plugins/bin/vmware-vmrc: error while loading shared libraries: libexpat.so.0: cannot open shared object file: No such file or directory
    Could you tell me what the solution is?
    I have still problems with my mouse in my win-guest!!!
    Thanks,

    Radu said

    on December 22nd, 2009,

    at 12:33 hours

    It seems that your VMware Console plug-in hasn’t been installed okay. That library should be located in ~/.mozilla/firefox/cudadof8.default/extensions/VMwareVMRC@vmware.com/plugins/lib/libexpat.so.0/libexpat.so.0. If the library is there try checking the file permissions, otherwise remove the plug-in and reinstall it.

    sil said

    on December 22nd, 2009,

    at 18:51 hours

    Cool thing! Thanks a lot!

    Axeman said

    on December 23rd, 2009,

    at 13:20 hours

    Thanks Dude.. worked like charm..

    Thanks a lot.

    Mary Christmas !!!

    dave said

    on December 23rd, 2009,

    at 15:29 hours

    In your script you have done some patches and obviously you have copied from vmware forums where are the credits for this

    dave said

    on December 23rd, 2009,

    at 15:32 hours

    I am talking about outside script i.e in your article if you hide this link in your script no one knows everone thinks you wrote your own but this is some one elses

    Radu said

    on December 23rd, 2009,

    at 19:14 hours

    Dave, read the post again. There is a link to the topic from VMware’s Communities where you can find the patch and the script on which my script is based on.

    And of course, there’s the line in the script which presents the same URL from VMware’s Communities.

    Do you have any other complaints? Oh, and on that specific topic you can find one of my posts where I thank Michele for his script that let me develop the one used by the whole Linux community (users of Ubuntu and derivatives, Fedora, Mandriva and OpenSUSE).

    JoeBob said

    on December 23rd, 2009,

    at 19:44 hours

    Many thanks. Works perfect on OpenSuse 11.2.

    Now the real question is why a big outfit like VMWARE can’t whip something out for their users that’s as simple as this. For that matter as far as I know VMWARE has not even put out an official statement on the problem with the newer kernels.

    Radu said

    on December 23rd, 2009,

    at 20:16 hours

    There are many reasons here:

    1. VMware Server is free (even though you can buy support for it)
    2. Ubuntu isn’t quite considered an enterprise distribution (nor Mandriva, Fedora or OpenSUSE)
    3. there is no kernel list in the official documentation on which the server is certified to work without problems

    Last but not the least VMware Server’s purpose is to attract buyers for VMware vSphere or ESX…

    Boyd Lynn Gerber said

    on December 27th, 2009,

    at 01:00 hours

    Warning very long post with all details

    Thanks for your great worked. I only I was not so dumb from my current illness I could have figured out what i going wrong. VMWare Server has done exactly that moved people to VSphere or ESX. I have shown them how my system works and how they could use either product. I often demostrate to them using VMWare Server 2.0.2. On my system which I only do OSS work. Because VMWare was never had a problem I did not think I would have to do much.(Wrong) But thanks to your patches I was able to get it to build on openSUSE 11.2 and ran it. But I could not get it to see my vmware client images already on the system.. I removed every thing in .

    rm /lib/modules/2.6.31.5-0.1-default/misc/*

    and then tried it again. all I ever get now is a execution aborted with the message

    vmblock
    vmmemctl
    vmci
    vmxnet
    vmhgfs

    I.e. –
    ‘rm /lib/modules/2.6.31.5-0.1-default/misc/.{o,ko}’

    Execution aborted.

    The complete log of running the script to build VMWare 2..0.2 using your script is at

    http://pastebin.com/m16573e91

    I can now never get past the message ro remove the modules and run the script again but their i nothing there.

    suse104:/root/# l /lib/modules/2.6.31.5-0.1-default/misc/
    total 8
    drwxr-xr-x 2 root root 4096 2009-12-24 15:44 ./
    drwxr-xr-x 10 root root 4096 2009-12-26 14:37 ../

    I am at a loss for what to try next. I guess openSUSE 11.2 just will not work with the free VMware Server 2.0.2.

    i have tried for over a week to get it to work but I am at a loss as to what else to try.

    suse104:/root/ # /usr/bin/vmware-config.pl
    gives same message. I could understand this is there were something in the directory but there is nothing there. I even tried the old windows reboot and then on my open’SUSE 11.2 running as root

    suse104:/vmware/build # /usr/bin/vmware-config.pl
    with same old results. do you have any ideas?

    suse104:/root/ # /usr/bin/vmware-config.pl

    always thinks there spmething there. I have checked every module on my sytem and they all have nothing in them as well.

    suse104:/vmware/build # l /lib/modules/
    total 44
    drwxr-xr-x 9 root root 4096 2009-12-24 15:51 ./
    drwxr-xr-x 14 root root 12288 2009-12-22 23:02 ../
    drwxr-xr-x 6 2.6.31.5-0.1-debug/
    drwxr-xr-x 10 2.6.31.5-0.1-default/
    drwxr-xr-x 8 2.6.31.5-0.1-desktop/
    drwxr-xr-x 4 2.6.31.5-0.1-trace/
    drwxr-xr-x 4 2.6.31.5-0.1-vanilla/
    drwxr-xr-x 6 2.6.31.5-0.1-xen/

    I really need to get this to work. any ideas?

    Thanks,

    Boyd Lynn Gerber
    gerberb@zenez.com

    Radu said

    on December 27th, 2009,

    at 14:38 hours

    Try running sudo vmware-uninstall.pl and then reinstall VMware using my script. To see your old virtual machines, change the datastore from VMware’s web interface to the location where those files are stored.

    wakmo said

    on December 29th, 2009,

    at 19:29 hours

    VMWare Server 2.0.2 on Ubuntu 9.10 often fails to start and often crashes.
    Hi All,

    I’m having a bit of an issue with “VMware Server 2 for Linux Operating Systems 64-bit version Version 2.0.2 | 203138 – 10/26/09″. I’m running Ubuntu 9.10 Karmic Koala with all updates as of this writing. Basically the Web Interface randomly crashes and doesn’t always restart upon system restart. I’m often forced to “sudo /etc/init.d/vmware restart”. Also, all of my Guest OSes crawl, even after updating VMWare Tools.

    Thanks in advance.

    Boyd Lynn Gerber said

    on December 31st, 2009,

    at 04:31 hours

    Hi, I’m the one that always gets
    Starting VMware Server original install script…
    The following VMware kernel modules have been found on your system that were
    not installed by the VMware Installer. Please remove them then run this
    installer again.

    vmblock
    vmmemctl
    vmci
    vmxnet
    vmhgfs

    I.e. – ‘rm /lib/modules/2.6.31.5-0.1-default/misc/.{o,ko}’

    Execution aborted.

    Housekeeping…
    Thank you for using the script!
    Author: Radu Cotescu
    http://radu.cotescu.com

    I could not get or find the command on my system, so I gunzip’d the tfile tne
    tar xfv VMware-server-2.0.2-203138.x86_64.tar.gz

    cd intovmware-server-distrib and found the file you mentioned. I ran it and it said it removed all of VMWare.
    But when I ran your script again it did everything and letft me with the above messages.

    I even removed misc and it still gives me the message.
    I really am at a loss on how to get past this error message.
    Any other ideas?

    volker mischi said

    on December 31st, 2009,

    at 22:17 hours

    huge help!! Thank you very very much!!! -and a happy new year
    Volker

    oli said

    on January 3rd, 2010,

    at 03:12 hours

    This worked fine in Fedora 11 using 2.6.30.8-64.fc11.i686.PAE as well.

    Thank you very much.

    James said

    on January 3rd, 2010,

    at 05:45 hours

    Radu!!! Mad Thanks, I was able to get Vmware installed on Jaunty running 2.6.31.9. The trick is to completely remove all vmware traces.

    [...] to this post from Radu Cotescu.  Read up.  Note that Radu’s post, problem, and fixes are all about Ubuntu.  Do not [...]

    Scott said

    on January 4th, 2010,

    at 15:39 hours

    Upgraded to Ubuntu 9.10 then suddenyl couldn’t runj VMWare Server. You saved me! Thanks!

    ov3rPlop said

    on January 4th, 2010,

    at 16:54 hours

    It’s simply very very well, your script work’s immediately and has resolv all my problems. I thank you a lot.

    Fr33dom said

    on January 6th, 2010,

    at 10:54 hours

    after downloading vmware and the patch

    chmod +x vmware-server-2.0.x-kernel-2.6.31-14-install.sh
    sudo ./vmware-server-2.0.x-kernel-2.6.31-14-install.sh

    i was asked which files i want to patch!
    help?!

    Radu said

    on January 6th, 2010,

    at 11:36 hours

    Describe me what was your folder setup when you ran the script, please (where was the archive located, where was the script, etc.).

    Dee said

    on January 6th, 2010,

    at 12:26 hours

    Hi Radu,
    I’m experiencing lot of warning messages during the script run:

    Trying to compile vmnet module to see if it works
    Performing make in /home/dee/install/vmware-server-distrib/lib/modules/source/vmnet-only
    Using 2.6.x kernel build system.
    In file included from /home/dee/install/vmware-server-distrib/lib/modules/source/vmnet-only/vnet.h:27,
                     from /home/dee/install/vmware-server-distrib/lib/modules/source/vmnet-only/vnetInt.h:24,
                     from /home/dee/install/vmware-server-distrib/lib/modules/source/vmnet-only/driver.c:54:
    /home/dee/install/vmware-server-distrib/lib/modules/source/vmnet-only/vm_basic_types.h:108:7: warning: "__Fr                    eeBSD__" is not defined
    In file included from /home/dee/install/vmware-server-distrib/lib/modules/source/vmnet-only/vnet.h:28,
                     from /home/dee/install/vmware-server-distrib/lib/modules/source/vmnet-only/vnetInt.h:24,
                     from /home/dee/install/vmware-server-distrib/lib/modules/source/vmnet-only/driver.c:54:
    /home/dee/install/vmware-server-distrib/lib/modules/source/vmnet-only/vm_atomic.h:329:7: warning: "_MSC_VER"                     is not defined

    I’m running Ubuntu 9.10 server 64bit,
    >> dpkg-query -W -f=’${Status} ${Version}\n’ linux-headers-`uname -r`
    install ok installed 2.6.31-14.48
    Maybe running it on 64bit server is not a good idea.

    fr33dom said

    on January 6th, 2010,

    at 12:37 hours

    i had all files in home.
    should i have specified the directory!? i dont know how to do that btw!

    VMware-server-2.0.2-203138.i386.tar.gz and vmware-server-2.0.x-kernel-2.6.31-14-install.sh were both in file system\home\fr33dom

    Radu said

    on January 6th, 2010,

    at 12:42 hours

    @Dee: it’s normal to get those warnings. And yes, VMware is unstable on 2.6.31 kernels.

    @fr33dom: please rerun the script (take care to delete the vmware-server-distrib folder before that) and give me the output.

    fr33dom said

    on January 6th, 2010,

    at 13:25 hours

    worked well got to step 6, i thank u much
    then i cannot follow, as in i dont understand the whole step.
    i know id rather have it automated as in option 2 than typing into the terminal, as i am not familiar with it just yet.
    but i dont understand where this line goes!

    Radu said

    on January 6th, 2010,

    at 13:55 hours

    Search the web for environment variables in Ubuntu (Linux).

    Dee said

    on January 6th, 2010,

    at 14:19 hours

    Thank you for quick response. This is not only about warnings, VMWare is not running and when I try:

    :~$ sudo /usr/bin/vmware-config.pl

    I will get:

    The following VMware kernel modules have been found on your system that were
    not installed by the VMware Installer. Please remove them then run this
    installer again.
    vmmon
    I.e. - 'rm /lib/modules/2.6.31-14-server/misc/.{o,ko}'

    ====
    I did try to recompile that but only message that vmmon cannot be compiled:

    make[2]: *** [/tmp/vmware-config0/vmmon-only/linux/driver.o] Error 1
    make[1]: *** [_module_/tmp/vmware-config0/vmmon-only] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.31-14-server'
    make: *** [vmmon.ko] Error 2
    make: Leaving directory `/tmp/vmware-config0/vmmon-only'
    Unable to build the vmmon module.

    Dee said

    on January 6th, 2010,

    at 14:35 hours

    My apology… I do not know how, but I did repeat install process and it looks like working. Thanx for your help.

    mootoh said

    on January 7th, 2010,

    at 09:05 hours

    It works! Thanks a lot!

    LinuxWarrior said

    on January 7th, 2010,

    at 11:39 hours

    Trying to install it on Ubuntu 910 with Kernel 2.6.31-16-generic and got the following error message using your script
    “there is a problem compiling the vmci module after it was pacthed”

    Sources and Headers for this kernel has been installed.
    Maybe your script does not works with Kernel 2.6.31.-16-generic ??

    Radu said

    on January 7th, 2010,

    at 14:13 hours

    I don’t know. I haven’t tested it on anything but 2.6.31-14 (the first kernel from 9.10) and as I said in many other comments I am still using 9.04. Though I had a 9.10 machine for testing.

    hariks0 said

    on January 7th, 2010,

    at 20:19 hours

    I did everything right. Now what? Where do I find the VMWare server in the applications? Or is it not yet installed? hould I search for a vmware*.blah ?

    Please complete your guide upto the end.

    Radu said

    on January 7th, 2010,

    at 20:31 hours

    Hariks0, my post doesn’t replace the manual for VMware Server. The single purpose of the post is to help you automatically apply the patch to this product, therefore my post is complete and you can see that by the number of people who successfully handled the situation.

    RTFM is the only technique that will get you started. The manuals are here. Basically, you need to read “VMware Server User’s Guide” and “Guest Operating System Installation Guide”.

    Have fun and try to be more wise in the future! Especially when it comes to people helping you for free.

    [...] Server 2.0.x on Ubuntu 9.10 All you need to know is here: http://radu.cotescu.com/2009/10/30/how-to-install-vmware-server-2-0-x-on-ubuntu-9-10-karmic-koala/. Works perfectly… much better than banging my head against the [...]

    bcbc said

    on January 9th, 2010,

    at 02:56 hours

    The script didn’t work on 2.6.31-16 for me, but worked like a charm on 2.6.31-17.
    Thanks for your help!

    Colin Barker said

    on January 9th, 2010,

    at 09:26 hours

    Thanks for the script works well! — Got it working on Fedora 12, with Kernel version – 2.6.31.5-127 (32bit) and VMware Server 2.0.2-203138. It complained at the start cause Fedora doesn’t have APT-GET, but I think I already had all the required packages to get it working. — Although this was for Ubuntu, thank you again for sharing this!

    Colin

    blogfeuer said

    on January 9th, 2010,

    at 11:52 hours

    Hello,

    i upgrade to 2.6.32-17. After that, vmnet is not starting any more.

    Do you have any ideas how to fix this?

    If i reboot, select old 2.6.32-16 kernel, and remove the “not_configured” in /etc/vmware everything is working again..

    Radu said

    on January 9th, 2010,

    at 12:53 hours

    @bcbc – This is strange, as @blogfeur just above seems to have no problems with 2.6.31-16.

    @Colin Barker: Colin, do you think you can adapt my script for RPM based distributions? Basically you would have to change those lines regarding apt-get and probably the ones which contain dpkg-query. Add yourself to the authors list and maybe we can create a script which should work without modification for at least three of the most widespread distributions: Ubuntu and all the Debian based ones, Fedora and OpenSUSE.

    @blogfeur: You can invoke sudo vmware-config.pl and it will recompile the patched modules. There is no need to rerun my script if you patched the server once.

    blogfeuer said

    on January 9th, 2010,

    at 19:53 hours

    wow. cool. that did it. did the invoke sudo vmware-config.pl

    did not know I had to do that after kernel update.

    Gabor Hegedus said

    on January 9th, 2010,

    at 20:59 hours

    Hello Radu,

    I have Ubuntu 9.10 2.31.16 dual boot with Win XP on Acer Extensa 5620Z. I have upgraded from Ubuntu 8.04 & VMWare 1.0.6. Because of some mistakes I run some uninstall-install pairs with system upgrades between them. Now my situation is precisely the same as the one described by Rodger Spooncer (Dec 17 12:53 and 13:04), but at a former stage I could start Win in VM including sign in. It was slow and sent messages
    msg.vmxaiomgr.retrycontabort.rudeunplug:Operation on file “/dev/sda” failed.
    If the file resides on a remote file system, please make sure your network connection and the server where this disk resides are functioning properly. If the file resides on removable media, reattach the media.
    Choose Retry to attempt the operation again.
    Choose Abort to terminate this session.
    Choose Continue to forward the error to the guest operating system.
    By my hope it may help experts to find the reason of instability you mentioned answering to Rodger.
    Thank you
    Gabor

    Boyd Lynn Gerber said

    on January 9th, 2010,

    at 22:04 hours

    I have the start of adapting your script for openSUSE and SUSE systems. I had it working till the last kernel upgrade this week.. You can get it at

    ftp://ftp.zenez.com/hidden-out/vmware-server-2.0.x-kernel-2.6.31-14-install-001.sh

    The kernel version openSUSE 11.2 released is 2.6.31.8-0.1 with an other one in the works for some security fixes. SUSE/Novell back ports the securitiy fixes to the released verson. The release I have the script woking with was 2.6.31.5-0.1-desktop/ What I really wanted to run on this machine is the -default. That is what I am looking at working on over the week end as time permits. You may want to download from my machine your modified script. I am trying to make sure my patches to your script work with all openSUSE 11.2 types and SLES releases till VMWare releases a new version.

    Boyd Lynn Gerber said

    on January 9th, 2010,

    at 22:36 hours

    This is a very ruff script modifications. I have not added the read and question asking them if they have the required packages installed. Just you question made me think you maybe interested in what I am doing to your script. It would have had a modified by in it as well.

    Fernando Ortiz said

    on January 11th, 2010,

    at 02:00 hours

    Dude, you rock.. I thought I was out of luck with Karmic, until I saw your post..

    Ramon de Carvalho Valle said

    on January 11th, 2010,

    at 06:06 hours

    I released a patch for VMware Server 2.0.2 that properly adds support for newer versions of the Linux kernel:

    http://risesecurity.org/2010/01/10/vmware-server-2-0-2-update-patch/

    This patch addresses the problems mentioned above with newer versions of the Linux kernel. You will probably want to use it with your script.

    Ravindran said

    on January 11th, 2010,

    at 13:08 hours

    You rock!
    Works with 2.6.31-17-generic-pae
    Will try with 2.6.31-18-generic-pae and let you know.

    mach7out said

    on January 11th, 2010,

    at 13:29 hours

    well, all is good and well, my question is using the vmware to create a virtual machine. am using the web interface, i dont know if there is another, anyway, i dont want to create the machine in home dir, i want it on one of the other drives D: for instance.

    how is that possible since when i attempt creating the vm it only shows me one dir called standard.

    if i try to add a new datastore, i cant go past identifying the directory path which is supposed to be /dev/sda1 labeled wis.

    help?

    Radu said

    on January 11th, 2010,

    at 15:20 hours

    @Boyd, thank you for indicating which packages are needed on OpenSUSE.

    @Ramon: You give me a great news. Have you got the chance to test the patch thoroughly? Does vmmon stop anymore? What about vsock? I will test your patch in the weekend on Ubuntu.

    @mach7out: are you new to Linux? If so, please learn the basics of the files and folders structure on *nix OS. /dev/sda1 represents the first hard disk partition of your first SATA/SCSI drive. To be able to create a new datastore go to the folder you choose on that partition’s mount point.

    Ramon de Carvalho Valle said

    on January 11th, 2010,

    at 17:29 hours

    I tested the patch extensively on Ubuntu 9.10 and had no problems so far. I’ll work on the vsock module as time permits. Let me know if you have any problems with the patch.

    PatricioD said

    on January 13th, 2010,

    at 05:10 hours

    Excellent work..!!!
    I try the script with Fedora Core 12 width kernel 2.6.31.9-174.fc12.i686 and it´s working..!!
    Very good job..!!
    Patricio

    David said

    on January 13th, 2010,

    at 17:19 hours

    Worked for me. ubuntu 9.10 kernel 2.6.31-17-generic. I had gone through the process about a month ago and it took several hours first to figure out what was going wrong and then to patch so that it worked reliably. I was so pleased to find you published a script that did it all.

    Thanks!

    Pocimus said

    on January 13th, 2010,

    at 20:12 hours

    Lot of tanks

    Rodger Spooncer said

    on January 14th, 2010,

    at 13:25 hours

    Hi Radu,
    9.10 Karmic Koala. I keep on trying (last exchanges with you mid December). I have revisited the sequence to re-configure VMware Server for a number of different kernels as they come along. The latest shows to be 2.6.31-18-generic. But the result is consistently the same.

    I use sudo /usr/bin/vmware-config.pl. ok (removing modules if required and then re-run the config command).

    I use sudo /etc/init.d/vmware start command. ok

    I open Firefox and login at http:/localhost:8222/ui/#. ok

    This opens VMware Infrastructure Web Access (root@localhost). ok

    I select windows xp as my virtual machine and start /power on(green arrow). ok

    At 95% the system freezes with message “Power on Virtual Machine failed to complete”.

    I seem to be consistently so close but cannot get to 100% and run XP as a virtual machine.

    Do you know why? If I can just get over this last hurdle…..
    Regards
    Rodger

    Radu said

    on January 14th, 2010,

    at 13:33 hours

    Yes. It’s unstable. But I have some good news: Ramon made a patch that he says will remove these issues. Since I haven’t had the time to take care of this, I have postponed testing and incorporating his patch into my script until the week-end.

    amin said

    on January 15th, 2010,

    at 16:52 hours

    hi, i have a problem installing with your script. although i ve internet connected and working fine it says :

    root@people-laptop:~# ./vmware-server-2.0.x-kernel-2.6.31-14-install.sh VMware-server-2.0.2-203138.i386.tar.gz
    You have VMware Server archive:
    VMware-server-2.0.2-203138.i386.tar.gz
    You do have the linux-headers-2.6.31-16-generic package…
    You do have the build-essential package…
    You do have the patch package…
    Extracting the contents of VMware-server-2.0.2-203138.i386.tar.gz
    tar: VMware-server-2.0.2-203138.i386.tar.gz/VMware-server-2.0.2-203138.i386.tar.gz: Cannot open: Not a directory
    tar: Error is not recoverable: exiting now

    gzip: stdin: unexpected end of file
    tar: Child returned status 2
    tar: Exiting with failure status due to previous errors
    Checking patch existence…
    Downloading patch file…
    VMware-server-2.0.2-203138.i386.tar.gz/vmware-server-2.0.x_x64-modules-2.6.30.4-fix.patch: Not a directory
    The download of vmware-server-2.0.x_x64-modules-2.6.30.4-fix.patch from http://codebin.cotescu.com/vmware/ failed!
    Check your internet connection. :(

    Joe said

    on January 15th, 2010,

    at 23:53 hours

    Thanks Radu! Very helpful; saved me hours of work trying to figure out what was going on with the default VMware Linux install instructions.

    Boyd Lynn Gerber said

    on January 16th, 2010,

    at 00:49 hours

    should have been just released kernels.

    sudeep said

    on January 16th, 2010,

    at 11:36 hours

    Thank You . This script works perfectly .

    Keep it up !!!! :)

    blogfeuer said

    on January 16th, 2010,

    at 13:35 hours

    To tell you the truth now, I switched to Virtualbox OSE, that ist running much more smoothly than vmware server 2.0

    ~moi~ said

    on January 17th, 2010,

    at 00:58 hours

    Thank you!!!

    Boyd Lynn Gerber said

    on January 17th, 2010,

    at 03:19 hours

    How can/may I get Ramon’s patch?

    davolixx said

    on January 17th, 2010,

    at 03:55 hours

    I managed to work on my suse 11.2 you helped me … now I upgraded my system to a new kernel 2.6.31.8, it appeared this error helps me.

    davola@Suse-11-2:~> sudo ./vmware-server-2.0.x-kernel-2.6.31-14-install.sh
    Senha:
    You have VMware Server archive:
    VMware-server-2.0.2-203138.i386.tar.gz
    Downloading patch file…
    Installing linux-headers-2.6.31.8-0.1-desktop package…
    ./vmware-server-2.0.x-kernel-2.6.31-14-install.sh: line 84: apt-get: comando não encontrado
    Installing build-essential package…
    ./vmware-server-2.0.x-kernel-2.6.31-14-install.sh: line 90: apt-get: comando não encontrado
    Installing patch package…
    ./vmware-server-2.0.x-kernel-2.6.31-14-install.sh: line 96: apt-get: comando não encontrado
    Checking patch download and archives from the extracted folders…
    Found .tar file for vmci module
    Found .tar file for vsock module
    Found .tar file for vmnet module
    Found .tar file for vmmon module
    Extracting .tar files in order to apply the patch…
    Untarring /home/davola/vmware-server-distrib/lib/modules/source/vmci.tar
    Untarring /home/davola/vmware-server-distrib/lib/modules/source/vsock.tar
    Untarring /home/davola/vmware-server-distrib/lib/modules/source/vmnet.tar
    Untarring /home/davola/vmware-server-distrib/lib/modules/source/vmmon.tar
    Testing patch…
    ./vmware-server-2.0.x-kernel-2.6.31-14-install.sh: line 135: patch: comando não encontrado
    The patch cannot be applied. :(
    davola@Suse-11-2:~>

    davolixx said

    on January 17th, 2010,

    at 05:23 hours

    expiry resolved now also works in the kernel

    davola @ Suse-11-2: ~> uname-a
    Suse Linux-11-2 2.6.31.8-0.1-desktop # 1 PREEMPT SMP 2009-12-15 23:55:40 +0100 i686 athlon i386 GNU / Linux

    muito obrigado Cadu..

    Radu said

    on January 17th, 2010,

    at 12:53 hours

    @davolixx: Install patch…

    Boyd Lynn Gerber said

    on January 17th, 2010,

    at 20:54 hours

    When I use Ramon’s patches I get

    cd /vmware/build/vmware-server-distrib/
    sudo ./vmware-install.pl
    Unable to open kernel module dependency file.Execution aborted

    sudo ./vmware-install.pl -d
    Unable to open kernel module dependency file.Execution aborted.

    All the different versions have a have a modules.dep. Below is the listing of all that is installed on my system for testing.

    I think I am gettting the error is thd .pl script is getting confused by all the choices and not using using uname -r

    ls -la /lib/modules/
    total 64
    drwxr-xr-x 3 root root 4096 2010-01-08 11:43 2.6.31.5-0.1-debug/
    drwxr-xr-x 6 root root 4096 2010-01-08 12:36 2.6.31.5-0.1-default/
    drwxr-xr-x 4 root root 4096 2010-01-08 12:37 2.6.31.5-0.1-desktop/
    drwxr-xr-x 3 root root 4096 2010-01-08 11:42 2.6.31.5-0.1-xen/
    drwxr-xr-x 6 root root 4096 2010-01-15 00:18 2.6.31.8-0.1-debug/
    drwxr-xr-x 7 root root 4096 2010-01-17 04:15 2.6.31.8-0.1-default/
    drwxr-xr-x 7 root root 4096 2010-01-15 00:15 2.6.31.8-0.1-desktop/
    drwxr-xr-x 2 root root 4096 2010-01-08 12:37 2.6.31.8-0.1-pae/
    drwxr-xr-x 4 root root 4096 2010-01-08 12:37 2.6.31.8-0.1-trace/
    drwxr-xr-x 4 root root 4096 2010-01-08 12:34 2.6.31.8-0.1-vanilla/
    drwxr-xr-x 6 root root 4096 2010-01-15 00:13 2.6.31.8-0.1-xen/

    Any idea?

    Radu said

    on January 17th, 2010,

    at 21:06 hours

    Not a clue… I am really busy with exams right now and I still haven’t had the time to test Ramon’s patch…

    pouria said

    on January 18th, 2010,

    at 00:14 hours

    Thank you very much.
    Excellent work!
    everything worked following ur steps.

    i connect to my ubuntu server using open ssh, and i installed everything remotely.
    i still haven’t figure out how launch it remotely. even though i used ssh -X to connect. i get this when launching vmware;
    vmware
    Failed to launch VMware Web Access: unable to find a graphical web browser.

    Radu said

    on January 18th, 2010,

    at 00:38 hours

    Pouria, you can access VMware’s Server web console by going to https://your-servers-ip:8333.

    Jerzy said

    on January 18th, 2010,

    at 09:34 hours

    Hi

    I am unable to run it!
    tail of my log…

    Trying to compile vsock module to see if it works
    [removed uninteresting error messages]
    Starting VMware Server original install script...
    ./vmware-server-2.0.x-kernel-2.6.31-14-install.sh: line 188: /home/jerzyo/programs/vmware/vmware-server-distrib/vmware-install.pl: No such file or directory
    Housekeeping...
    Thank you for using the script!
    Author: Radu Cotescu
    http://radu.cotescu.com

    patrick said

    on January 18th, 2010,

    at 10:59 hours

    Radu,

    I get this after my attempt to install VMWare by using your script. Both files (script and VMWare tarball are in this directory, (~/opslag)

    Can you point me out whats this error is about,

    Thx in advance,

    Patrick

    patrick@server1:~/opslag$ sudo ./vmware-server-2.0.x-kernel-2.6.31-14-install.shYou have VMware Server archive:
            VMware-server-2.0.2-203138.i386.tar.gz
    You do have the linux-headers-2.6.31-14-generic-pae package...
    Installing build-essential package...
    Pakketlijsten worden ingelezen... Klaar
    Boom van vereisten wordt opgebouwd
    De status informatie wordt gelezen... Klaar
    E: Kon pakket build-essential niet vinden
    You do have the patch package...
    Checking patch existence...
    Checking archives from the extracted folders...
    Found .tar file for vmmon-temp module
    Found .tar file for vsock module
    Found .tar file for vmnet-temp module
    Found .tar file for vmci module
    Found .tar file for vmnet module
    Found .tar file for vsock-temp module
    Found .tar file for vmmon module
    Found .tar file for vmci-temp module
    Extracting .tar files in order to apply the patch...
    Untarring /home/patrick/opslag/vmware-server-distrib/lib/modules/source/vmmon-temp.tar
    vmmon-temp.tar tarball failed to extract in the directory vmmon-temp-only. :(
    patrick@server1:~/opslag$

    Radu said

    on January 18th, 2010,

    at 12:20 hours

    @Jerzy: It looks like you or something else deleted the vmware-server-distrib folder or the Perl script which was supposed to be run wasn’t executable, in which case you should comment line 193 from the script and run vmware-install.pl from /home/jerzyo/programs/vmware/vmware-server-distrib manually, after you have set it to be executable.

    @Patrick: Something seems to have gone wrong with your archive. Delete what has been extracted (vmware-server-distrib) and rerun the script.

    Thomas Schukraft said

    on January 18th, 2010,

    at 12:34 hours

    Very good description. But I have some problem after installing.

    After installation VMWare 2.02 is running on my 9.10 Ubuntu. My 2 Windows VMs in Bridged Mode are starting and habe access to the internet.

    If I reboot the machine the VMs start but have no access to Internet!

    Then I have to stop the vms and restart vmware with

    /etc/init.d/vmware restart

    and if I then start the 2 vms everything is ok until the next reboot of the host system.

    Any ideas???

    Radu said

    on January 18th, 2010,

    at 12:37 hours

    Thomas, VMware is unstable on these newer kernels. Ramon, one of the people who commented here on this post, said that he made a patch resolving the issues. Since I haven’t had the time to test it I haven’t used it in my script yet. The good news is that I have some time right now. :D

    patrick said

    on January 18th, 2010,

    at 12:58 hours

    Radu,

    Done what your instructed,

    Still some errors i can’t get away with. would be fine to help a little more.

    Thankyou.

    patrick@server1:~/opslag$ sudo rm -rf vmware-server-distrib
    patrick@server1:~/opslag$ ls
    VMware-server-2.0.2-203138.i386.tar.gz
    vmware-server-2.0.x-kernel-2.6.31-14-install.sh
    vmware-server-2.0.x_x64-modules-2.6.30.4-fix.patch
    VMware-vix-1.6.2-203138.i386.tar.gz
    patrick@server1:~/opslag$ sudo ./vmware-server-2.0.x-kernel-2.6.31-14-install.shYou have VMware Server archive:
            VMware-server-2.0.2-203138.i386.tar.gz
    You do have the linux-headers-2.6.31-14-generic-pae package...
    Installing build-essential package...
    Pakketlijsten worden ingelezen... Klaar
    Boom van vereisten wordt opgebouwd
    De status informatie wordt gelezen... Klaar
    E: Kon pakket build-essential niet vinden
    [removed some lines here]
    make: cc: Command not found
    [removed some lines here]
    make[1]: gcc: Command not found
    make[2]: gcc: Command not found
    /bin/sh: gcc: not found
    make[2]: *** [/home/patrick/opslag/vmware-server-distrib/lib/modules/source/vsock-only/linux/af_vsock.o] Error 127
    make[1]: *** [_module_/home/patrick/opslag/vmware-server-distrib/lib/modules/source/vsock-only] Error 2
    make: *** [vsock.ko] Error 2
    There is a problem compiling the vsock module after it was patched. :(
    patrick@server1:~/opslag$

    patrick said

    on January 18th, 2010,

    at 13:10 hours

    Radu,

    For your info,

    I’m running 9.10

    patrick@server1:~/opslag$ head /proc/version
    Linux version 2.6.31-14-generic-pae (buildd@rothera) (gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8) ) #48-Ubuntu SMP Fri Oct 16 15:22:42 UTC 2009

    Erro’s seems to be in this area

    E: Kon pakket build-essential niet vinden (can’t find package build-essential)

    and later on,

    Performing make in /home/patrick/opslag/vmware-server-distrib/lib/modules/source/vsock-only
    Using 2.6.x kernel build system.
    make: cc: Command not found
    /usr/src/linux-headers-2.6.31-14-generic-pae/scripts/gcc-version.sh: line 25: gcc: command not found
    /usr/src/linux-headers-2.6.31-14-generic-pae/scripts/gcc-version.sh: line 26: gcc: command not found
    /usr/src/linux-headers-2.6.31-14-generic-pae/arch/x86/Makefile:80: stack protector enabled but no compiler support
    make[1]: gcc: Command not found
    make[2]: gcc: Command not found
    /bin/sh: gcc: not found
    make[2]: *** [/home/patrick/opslag/vmware-server-distrib/lib/modules/source/vsock-only/linux/af_vsock.o] Error 127
    make[1]: *** [_module_/home/patrick/opslag/vmware-server-distrib/lib/modules/source/vsock-only] Error 2
    make: *** [vsock.ko] Error 2
    There is a problem compiling the vsock module after it was patched. :(
    patrick@server1:~/opslag$

    Radu said

    on January 18th, 2010,

    at 13:17 hours

    Install the build-essential package. It seems that the script cannot perform this operation and I don’t seem to figure it out why it doesn’t perform that. Maybe your cached packages are out of date. Perform an update and an upgrade and then rerun the script…

    Thomas Schukraft said

    on January 18th, 2010,

    at 13:22 hours

    I have installed this patch some weeks ago:

    wget http://communities.vmware.com/servlet/JiveServlet/download/1285430-24471/vmware-server.2.0.1_x64-modules-2.6.30-fix.patch

    wget http://communities.vmware.com/servlet/JiveServlet/download/1285430-24471/vmware-server.2.0.1_x64-modules-2.6.30-fix.sh

    Without this patch I could not install VMware Server 2.02 on Ubuntu 9.10.

    Server itself is running without any more problems. My 2 Windows vms run since many, many days without reboot. No crashes aso. So I have no problems with the stability.

    Only this necessary “restart” after a host reboot is annoying.

    patrick said

    on January 18th, 2010,

    at 13:27 hours

    Radu,

    will do that tomorrow,

    have to go now, thx so far and i guess it’s possible b’cause this testserver isn’t allowed for internet acces right now. So tomorrow it’s the first i will do.

    Will be back then,

    Patrick

    Radu said

    on January 18th, 2010,

    at 13:32 hours

    @Thomas: The patches are a bit different in the sense that the one I used in my script (which can also be found on VMware’s Communities) includes a section for the newer kernels. And yes, what you are experiencing is still called instability. I am guessing that either vmmon or vmnet modules have some problems. Anyway, I’ve started my test machine to see what Ramon’s patch is able to do… Keeping fingers crossed!

    [...] Seeing the success I have encountered with the blog post about installing VMware Server on Ubuntu Karmic Koala and helped by Ramon de Carvalho Valle with a better patch regarding the installation of the [...]

    amadib said

    on January 19th, 2010,

    at 06:30 hours

    Does your script fix any of the problems associated with bridging over wlan? At this point I just want to manage my expectations before ripping vmware out and installing it again…

    This Bridging issue is driving me mad…

    I’m running ubuntu 9.10 (2.6.31) on an AMD Athlon 64 Duel Core Processor with VMware Server v2.0.2 installed. My wireless card is a USB Linksys WUSBGS54.

    I am able to successfully bridge via eth0 and connect via NAT. Bridging over wlan is my problem.
    I just tried this patch.
    [commenter supplied a broken link]
    Then patched to fix the vsock problem during installation. I don’t wanna keep messing around with all these patches.

    At first I thought it was my VMs (moved over from my Windows machine), but I have been using a clean VM. I tried modifying the .vmx file. I have VMware Tools installed and even went as far as disabling my eth connections (I have two). It doesn’t seem to change anything. A static IP doesn’t show the VM receiving any traffic and setting to DHCP gives me the LIMITED OR NO CONNECTIVITY message with a local host only ip of 169.254.x.x.

    It seems that this is a very common problem…