How to install VMware Server on 2.6.31 kernels

Posted on January 19th, 2010 at 1:20, in How To, Linux, VMware, Virtualization.

UPDATE: The script should also work with 2.6.32 kernels from version 1.2.

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 virtualization server on the newer kernels found in three of the most popular Linux distributions – Ubuntu, Fedora and openSUSE – I’ve managed to provide a script which should be able to install the server on all of these distros. Furthermore, by placing some trivial checks in a function of the script one may enlarge the applicability to a lot more distributions with common roots (Debian and all Debian-based distributions, Red Hat and all of its derivatives).

I have managed to test the script on both the 2.6.31-14 and 2.6.31-17 kernels which can be found in Ubuntu 9.10 and on the 2.6.31.9-174.fc12 kernel found in Fedora 12. Since I didn’t have an openSUSE machine I am not sure of what is the outcome on this distribution (regarding the kernel sources; people who commented previously on my blog had no problems installing VMware Server using the previous script) but the script is made so that it automatically determines on what kind of distribution is run and according to this information it automatically installs the needed packages. Careful though, as this requires Internet access for the specific machines.

The good news regarding Ramon’s patch is the fact that now VMware Server seems stable. No more warnings appear when compiling modules, except for vsock, which – miraculously – builds on Fedora.

Regarding the installation of VMware Server on Fedora, I have encountered some difficulties after the installation completed successfully. Basically I wasn’t able to log into the web administration interface because of multiple factors. The steps which should be followed will be reminded to the Fedora users after the script completes but I’m gonna mention them here too:

  1. edit /etc/services and replace the entry located on TCP/902 port with vmware-authd
  2. disable SELinux it by editing the /etc/selinux/config file (permissive mode isn’t enough – see comments)
  3. reboot your system

The general instructions are the same as the ones for the previous version of the script.

How to

  1. Download VMware Server (2.0.1 or 2.0.2) – gz format, not rpm. 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. On Ubuntu at least, 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.3x-install.sh
    sudo ./vmware-server-2.0.x-kernel-2.6.3x-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 login 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
  7. If the solution worked well for you please share this info wherever you can. :D

I am looking forward for your feedback because running the script and the server under multiple kernel versions and distributions will provide the real way to see if this latest patch really handles all the flaws in VMware Server or not. And if it does, this means that Ramon and I (but mostly Ramon) can shout a big “In your face, VMware!”.

P.S. All my open-source work can also be found on GitHUB. This is useful if you think that you have some other non up to date versions of my scripts. Anyway, the scripts which can be found on my server represent the latest version.

Similar Posts:


171 Comments

[...] made by Ramon de Carvalho Valle which provides a more stable experience. More details can be read here although the instructions presented on this page are still [...]

Ramon de Carvalho Valle said

on January 19th, 2010,

at 03:00 hours

Thanks Radu! Now, let’s wait for feedback from users. And if any problems arise, we can correct them.

Anonymus Gravatar

RISE Security » VMware Server 2.0.2 Update Patch said

on January 19th, 2010,

at 03:31 hours

[...] January 18, 2009: Radu Cotescu integrated this patch to the latest version of his script, that now applies the patch automatically in Ubuntu, Fedora and openSUSE. The script is available here. [...]

[...] This post was mentioned on Twitter by RISE Security, Radu Cotescu. Radu Cotescu said: How to install VMware Server on 2.6.31 kernels – http://bit.ly/6aGBVs [...]

Anonymus Gravatar

OpenSuse 11.2 and VMware Server - Page 4 - openSUSE Forums said

on January 19th, 2010,

at 13:04 hours

[...] the right packages) could you please test it and tell me how it worked? The script is located here. Please post your comments on my post, since it will be easier for me to track them and offer a [...]

[...] problem, and fixes are all about Ubuntu.  Do not fear.  (Post-publish update, 20100119:  See http://radu.cotescu.com/2010/01/19/how-to-install-vmware-server-ubuntu-fedora-opensuse/ for a new version that I have not tested [...]

Anonymus Gravatar

Bill Carroll said

on January 21st, 2010,

at 03:01 hours

Thanks for this. Worked for me on 32-bit Fedora 12 — but, if I go to rerun vmware-config.pl to reconfigure the networking, it immediately complains with:

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

vmci
vmnet
vmmon

Execution aborted!”

Not sure what to do – remove the modules as suggested and have them recompiled again?

Radu said

on January 21st, 2010,

at 14:52 hours

Bill, I’ve tried this on my Fedora VM and it happened to me too. I don’t know how VMware checks the “authenticity” of the kernel modules but it’s safe to remove the old ones and let the script recompile them because by using my script you have the patched sources in the /lib folder. I really don’t know why is this happening.

Anonymus Gravatar

Franck said

on January 21st, 2010,

at 14:59 hours

It works fine on OpenSuse 11.2 x64 !!! Thanks a lot!!

Anonymus Gravatar

Eric said

on January 21st, 2010,

at 18:18 hours

Ok ! the VMWARE console work ! Very good procedure ! Thank you !
the console asked a login. I tryed root without password => bad user name and password (I don’t provide a user name during procedure) Is it possible to provide a user name and password or do you know the default password of root ?

My linux is UBUNTU 9.10

Thank you very much for your help

Radu said

on January 21st, 2010,

at 21:03 hours

Eric, you have two solutions:

run sudo vmware-config.pl and put your user as an administrator for VMware (recommended)
set a password for root because Ubuntu by default disables this (not recommended because your root account becomes more vulnerable)

Anonymus Gravatar

Dako said

on January 22nd, 2010,

at 17:10 hours

Not working :(

[removed error messages]
There is a problem compiling the vmci module after it was patched. :(

Radu said

on January 22nd, 2010,

at 17:18 hours

Dako, you seem to use an old version of the script. Please download the script again and clean your system before running it so that you don’t have traces from a previous VMware installation.

Anonymus Gravatar

Maurice Fonhof said

on January 25th, 2010,

at 12:32 hours

I tried your script, and yes!!! in vmwares face!!!
Thanks!

Now i only have to solve the login problem

Anonymus Gravatar

Its_me said

on January 26th, 2010,

at 01:15 hours

Worked great for me on OpenSuse 11.2 only vsock didn’t compile, but that doesn’t matter.

Found one “bug” in the script though, if you provide a path for the VMware server archive while executing the script from the directory containing the archive, the script will tell you that the provided file does not contain VMware server.

If you just run the script without providing the archive path it works like a charm… THANKS!

Radu said

on January 26th, 2010,

at 01:18 hours

If you provided the .tar.gz file in the path it’s normal to tell you that it cannot find the archive because that’s the way I built it: offer the PATH (not the file) so that the script will set a workspace. Anyways, I am glad that it worked.

Anonymus Gravatar

mihai said

on January 29th, 2010,

at 10:45 hours

Hi, the script installed the vmware just fine on my Fedora 12, but how do I launch it (localhost:8222 in firefox doesn’t load vmware login page)?
Thanks

Radu said

on January 29th, 2010,

at 11:50 hours

You have your answer in the post where I describe the additional steps Fedora users must follow. Also, the same steps were displayed in your terminal after you had installed VMware Server.

Anonymus Gravatar

mihai said

on January 29th, 2010,

at 15:34 hours

this is my /etc/services:

vmware-authd    902/tcp                 # self documenting Telnet Door

and Selinux is disabled:
SELINUX=disabled
SELINUXTYPE=targeted

Restarted, but can’t access http://localhost:8222 nor https://localhost:8333
but, after

nmap -sT -O localhost I get : 902/tcp  open  iss-realsecure

and no open port for 8222/ 8333.
Is it ok?

Radu said

on January 29th, 2010,

at 16:58 hours

Mihai, it happened to me too once I’ve updated the kernel. If you run sudo vmware-config.pl everything should be okay. Before running this configuration wizard, to be sure that it’s about the kernel modules which have to be recompiled, try restarting VMware with sudo /etc/init.d/vmware restart. If you get an error message about VMware’s kernel modules, then it’s clear what you have to do.

Anonymus Gravatar

mihai said

on February 1st, 2010,

at 11:07 hours

Yes sir! works just fine after restarting vmware and issuing sudo vmware-config.pl
Anyway, I got:

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.
 
vmci
vmnet
vmmon
 
I.e. - 'rm 
/lib/modules/2.6.31.12-174.2.3.fc12.i686.PAE/misc/.{o,ko}'
 
Execution aborted.

after sudo vmware-config.pl execution, so I think just restarting the vmware was enough.
Thanks again, keep up the good work!

Anonymus Gravatar

Jim said

on February 1st, 2010,

at 14:18 hours

I’m having trouble with the vsock module. It compiles with a few warnings, but compiles. But when you try to load it, you get this error:

insmod: error inserting 'vsock.ko': -1 Unknown symbol in module
Ubuntu 9.10
Linux r51jimb 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 16:20:31 UTC 2009 i686 GNU/Linux
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.1-4ubuntu9' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu9) 
GNU ld (GNU Binutils for Ubuntu) 2.20

Not sure what’s going on here, but seems like the linker is producing a bad module.

Anonymus Gravatar

Jim said

on February 1st, 2010,

at 15:42 hours

Updating my previous comment, this insmod error is due to unresolved symbols:

[ 8199.818878] vsock: no symbol version for VMCIDatagram_Send
[ 8199.818891] vsock: Unknown symbol VMCIDatagram_Send
[ 8199.819234] vsock: no symbol version for VMCI_GetContextID
[ 8199.819241] vsock: Unknown symbol VMCI_GetContextID
[ 8199.823465] vsock: no symbol version for VMCIDatagram_DestroyHnd
[ 8199.823472] vsock: Unknown symbol VMCIDatagram_DestroyHnd
[ 8199.823813] vsock: no symbol version for VMCIDatagram_CreateHnd
[ 8199.823821] vsock: Unknown symbol VMCIDatagram_CreateHnd

This is related to the linker (ld) warnings seen during the make:

WARNING: "VMCIDatagram_CreateHnd" [/tmp/vmware-config0/vsock-only/vsock.ko] undefined!
WARNING: "VMCIDatagram_DestroyHnd" [/tmp/vmware-config0/vsock-only/vsock.ko] undefined!
WARNING: "VMCI_GetContextID" [/tmp/vmware-config0/vsock-only/vsock.ko] undefined!
WARNING: "VMCIDatagram_Send" [/tmp/vmware-config0/vsock-only/vsock.ko] undefined!

It seems that somewhere in the source or Makefile, the linker needs to be told where to find those symbols (they’re routines in vmci). It’s probably just some simple LDFLAG or something, but I have no idea how to do this. :-)

Radu said

on February 1st, 2010,

at 16:39 hours

@Jim: Yeah, on Ubuntu the vsock module still doesn’t work. Ramon has promised that if he has some free time he will try to handle that module in a future patch. Still, some people told me that the previous patch of VMware (for Ubuntu 9.04 and before) handles this just well, in which case I can fix those problems just by applying that patch too. I’ll figure it out these days.

Anonymus Gravatar

brad clements said

on February 7th, 2010,

at 05:49 hours

I used vmware-server-2.0.x-kernel-2.6.31-14-install.sh to install VMware-server-2.0.2-203138.x86_64.tar.gz on ubuntu 9.10 running 2.6.31-19-server X86_64

All vmware modules compiled except for vsock and VIX.

Unfortunately NAT and host-only network are not working quite right. I cannot reach the guest from the host. The only way to get to the guest is to go through a forwarded nat connection (specified in nat.conf).

Before upgrading to 9.10 (from 8.04), this used to work. The host could ping the guest using either the guests’ NAT ip address or host-only ip.

Now ping does not work. Also the guest can no longer ping the host.

I’m open to suggestions.. qemu? :-(

Radu said

on February 7th, 2010,

at 17:01 hours

I’d go for VirtualBox.

Anonymus Gravatar

Drew said

on February 16th, 2010,

at 08:09 hours

Radu,

Trying to use this patch to compile VMware server 2.02 under a 2.6.32-trunk kernel. Running Debian Squeeze.

The script exits trying to compile the vmnet module. Has any one fixed this problem it’s driving me MAD! I’ve tried the Ubuntu patches with no-luck and several others.

-Drew

Radu said

on February 16th, 2010,

at 11:29 hours

Drew, the patch I am using in the script is for kernel 2.6.31. I thought that was clear. Anyway, a guy who commented in here tried to “fix” the script and the patch in an ugly way which I don’t approve. I will integrate the new patch for 2.6.32 in the existing script. Just give me some time.

Anonymus Gravatar

Nathan said

on February 16th, 2010,

at 18:39 hours

Well I’m having some issues.. But thanks so much for your patch because its definitely working better… I am installing and it’s telling me GCC version installed (4.4.2) doesn’t match the one the kernel was compiled with (4.4.2) I continue the install but only the web interface loads but it doesn’t let me log into anythign it jsut times out.. Is this possibly teh cause?

I’m running Fedora 12, 2.6.31-12 andVmware Server 2.0.2… It appears to install and be able to run the services but nothing seems to run, and the odd time it will just hang when I attempt to service vmware shutdown…. Any ideas????

Radu said

on February 18th, 2010,

at 10:16 hours

Nathan, you should try to use the same compiler used for compiling your kernel when you try to install VMware Server.

Anonymus Gravatar

Warren said

on February 19th, 2010,

at 06:06 hours

My vmware machine can reach the network through the vmware NAT network, but I cannot ssh/telnet/http into the machine through the host.

[...] compiles and loads perfectly into the running kernel. All the needed instructions can be found here. For comments related to the way VMware works on the 2.6.32 kernels please use the comment form [...]

Anonymus Gravatar

Karl said

on February 21st, 2010,

at 18:38 hours

@Radu and Ramon,

thank You very much – it worked at first attempt.
To be honest, I’ve tried to move to VirtualBox, but the migration of my guest-vm left me without a working network-adapter. Now I am very happy, that you have updated your script – thanks again!
Karl

Anonymus Gravatar

mike said

on February 22nd, 2010,

at 20:20 hours

I ran into some issues stating the there were modules already loaded that were not installed by VMWare. I deleted the contents of /lib/modules/2.6.31-20-generic/misc/. It still gave me the error and complained about the vmnet module. I had to add it to the /etc/modprobe.d/blacklist (Ubuntu), reboot, lsmod | grep vmnet to make sure it wasnt loaded and then reran vmware-configure.pl. Everything work well. All modules compiled and loaded correctly. Just make sure to remove the blacklist line, and reboot again. I now have my system working wtih VMWare Server 2.0.2 and kernel 2.6.31-20

Anonymus Gravatar

Matthew said

on February 23rd, 2010,

at 06:50 hours

With regards to the problem people are having rerunning vmware-config.pl: “The following VMware kernel modules have been found on your system that were not installed by the VMware Installer.”

This is an annoying problem since you sometimes need to reconfig e.g. to change ethernet settings.

The simplest way to is modify vmware-config.pl itself so that it will ignore the module check. This may have some downsides but personally I’d rather have vmware-config working rather than removing the kernel modules and then rerunning vmware-config.

The required changes are around line 11231. There are multiple ways to do it but I did it by changing:

if (scalar(@modules) > 0) {

TO

if (scalar(@modules) > 9) {
Anonymus Gravatar

Nathan said

on February 23rd, 2010,

at 06:59 hours

For some reason, after the install is complete, I followed your directions completely and I am Fedora 12 2.6.31-12… I can access the server login page, but when I log in it says Server not responding, and even though processes are running…. I try to stop and restart the services and it fails to stop Virtual Machines, Host Agent, and Virtual Ethernet… I go to kill the processes stop and start it again and it asks to reconfigure because its not running right for the kernel…. Is it because I’m on .31-12?

Anonymus Gravatar

Niels said

on February 24th, 2010,

at 00:15 hours

I am using Ubuntu 9.10 with the new script (21-feb-10).
It seems that the file vmci-temp.tar contains a sub folder named vmci-only, this results as far as I can see in the following error:
vmci-temp.tar tarball failed to extract in the directory vmci-temp-only. :(

Can you please verify this.
Thanks Niels

Radu said

on February 24th, 2010,

at 00:51 hours

@Nathan: I experienced that too once on Fedora. But afterwards I could just run sudo vmware-config.pl to recompile the modules.
@Niels: Clean the workspace and rerun the script. It shouldn’t stop because of that (I’ve thoroughly tested the script’s behaviour).

Anonymus Gravatar

maldex said

on February 25th, 2010,

at 08:59 hours

fedora core 12, x64, vmserver 2.0.2:
worked perfectly! thanks a lot for your work!

Anonymus Gravatar

Niels said

on February 26th, 2010,

at 20:00 hours

thanks a billion.
i copied the files to a new directory, and it worked like a charm.
i’m running the pae-kernel, and initially i thought that was the problem.

Anonymus Gravatar

John said

on February 26th, 2010,

at 23:34 hours

https://help.ubuntu.com/community/VMware/Server
worked perfectly for me.
Ubuntu 9.10.
Thank you for an excellent script that made it brain-dead simple.

Anonymus Gravatar

aloysius said

on February 27th, 2010,

at 11:09 hours

i still have the same problem: i unpacked the file to stan@stan-Desktop: ~/Downloads/vmware-server-distrib$
but when i try to run chmod +x vmware-server-2.0.x-kernel-2.6.3x-install.sh I get cannot access ‘vmware-server-2.0.x-kernel-2.6.3x-install.sh’ no such file or directory found. When i try to run sudo ./sudo ./vmware-server-2.0.x-kernel-2.6.3x-install.sh. i get command not found. Can you please advised im new to this and need help

Anonymus Gravatar

aloysius said

on February 27th, 2010,

at 11:38 hours

Thank you radu i installed vmware sucessfully

Anonymus Gravatar

Dave said

on March 1st, 2010,

at 07:19 hours

Thanks very much! This worked almost flawlessly.

The only thing I had to do differently on my Fedora 12 install was change the start runlevel in /etc/rc.d/init.d/vmware from 19 to 89 (and then issue “chkconfig vmware resetpriorities”) — otherwise the admin interface wouldn’t initially listen on port 8222 and 8333 after a reboot.

(I suspect vmware was starting before the network was ready — but didn’t spend a lot of time digging into it. Actually, I’m a little puzzled how it got configured with a start priority value of 24, since, as I mentioned above, /etc/rc.d/init.d/vmware had an original chkconfig: start value of 19).

Thanks again!

Anonymus Gravatar

Stefano said

on March 3rd, 2010,

at 17:06 hours

Same problema as Warren:
“My vmware machine can reach the network through the vmware NAT network, but I cannot ssh/telnet/http into the machine through the host.”

Any ideas? I’m running an ubuntu 9.10 64 bit with kernel 2.6.31-20-generic #57-Ubuntu and the last version of the script.
Thanks in advance.

Radu said

on March 3rd, 2010,

at 17:13 hours

Stefano, apparently this is a known problem for which currently I don’t have a solution (other than suggesting you to use bridged networking).

Anonymus Gravatar

Sayre Swarztrauber said

on March 3rd, 2010,

at 22:23 hours

Thank you for your script. It allowed me to install on 2.6.31 Fedora 11. Unfortunately I have exactly the same problem as Brad Clements, similar to the problem of Stefano.

Before the kernel was upgraded to 2.6.31 host only networking worked (I could ping both ways from the guest to the host and vice versa). I used samba on the Fedora host to a share on an XP guest. Now I cannot see the guest from the host or the host from the guest. Bridged networking is only a solution when I am online with an Ethernet connection. If I unplug the Ethernet Windows flags the adapter as unplugged. This is not always good as this computer is a laptop. I need host only networking to work in order to work offline. Any help would be greatly appreciated.

Anonymus Gravatar

Warren said

on March 4th, 2010,

at 01:08 hours

I can’t network directly into the machines but port forwarding works OK. Set up forwards in /etc/vmware/vmnet8/nat/nat.conf:
[incomingtcp]
# Use these with care – anyone can enter into your VM through these…
2222 = 192.168.5.128:22

Then ssh to your localhost on the port:

ssh -p 2222 myuser@localhost

Anonymus Gravatar

Stefano said

on March 4th, 2010,

at 10:45 hours

Thanks Warren for the solution. Port forwarding works well! Even the solution of the bridge works, but I prefer to use the machine behind a NAT.

Anonymus Gravatar

valentina said

on March 4th, 2010,

at 12:40 hours

Hi Radu,thanks for your script.
I want to report that I’ve the same Sayre’s problem, host only network configuration doens’t work.
I’ve installed two new servers with Ubuntu 9.10-64bit with vmware 2.0.2, kernel 2.6.31-19.
I cannot reach the virtual machine from the host (ping or ssh), I cannot ping the gateway from the virtual machine.
I’ve configured ip_forward active and iptables mascherade,
Bridge network works properly.

thanks
valentina

Radu said

on March 4th, 2010,

at 12:48 hours

@valentina: I know but unfortunately I couldn’t find a better patch to do the job. Try to follow Warren’s solution to address the problem.

Anonymus Gravatar

Sayre Swarztrauber said

on March 4th, 2010,

at 19:14 hours

@valentina: I switched last night to Sun’s VirtualBox and solved all of my problems. I am using Fedora 11 x86_64 with 2.6.31 as the host and XP as the guest. Vbox installed without a patch or a hitch. Host only, bridged and NAT all worked as desired. After putting in their “guest additions” the mouse worked better than VMware. The shared folders worked great! I got it all done with one hour last night and this morning in 3 hours. Note: I did NOT try to import my old VM. I created a new one and reinstalled the apps. I cannot vouch for the import feature.

Anonymus Gravatar

valentina said

on March 5th, 2010,

at 15:32 hours

@Sayre:Thanks Sayre. I just reinstall the two servers using the ubuntu 9.04 iso with kernel 2.6.28.11 and after update kernel 2.6.28.18 (i’ve got the same configuration in production environment and it works properly).I’ll be careful in case of kernel headers update. I’ve got to many production servers with vmware server to switch to Virtual Box now, but i think we have to switch to virtual box or kvm or qemu,we don’t have any other choice.thanks

[...] discussionなどを除いていたらubuntuで動かしている人がいたのでこれを試してみてようやく [...]

Anonymus Gravatar

Julio said

on March 15th, 2010,

at 02:35 hours

Thank you very much radu. I installed vmware server 2 sucessfully

Anonymus Gravatar

VMware Server and kernel 3.6.33 » Tuinslak said

on March 15th, 2010,

at 18:33 hours

[...] As the latest kernel doesn’t seem to contain this file, I took the autoconf.h file from 2.6.22.2, and copied it to the correct place. This made VMware compile (until it errored on other stuff, which can be fixed using this script). [...]

Anonymus Gravatar

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

on March 16th, 2010,

at 01:25 hours

[...] Editado el enlace al script: la fuente original actualizada How to install VMware Server on 2.6.31 kernels [...]

Anonymus Gravatar

Scott said

on March 16th, 2010,

at 18:18 hours

Any word on getting this script to work with 2.6.32.9-70?

I’m using FC12 and ran the yum updates before I did any installs…

Radu said

on March 16th, 2010,

at 21:07 hours

Read the update at this post’s beginning. :D

Anonymus Gravatar

Matt said

on March 17th, 2010,

at 02:10 hours

I just ran your script with vmware server 2.0.2 and ubuntu server 9.10 and it worked FLAWLESSLY. EXACTLY AS DESCRIBED.

Thank you so much for your contribution to the community! You saved me several hours tonight provisioning my first Ubuntu server to serve as a dedicated virtual host.

Anonymus Gravatar

Thierry said

on March 19th, 2010,

at 18:50 hours

Thanks for your script.

It ran ok on Fedora (F11 updated to 2.6.30.10-105.2.23.fc11.i586) and VMware-server-2.0.2-203138.i386.tar.gz

But… the web access page gives:
‘The server is not responding. Please check that the server is running and accepting connections.’.

Anonymus Gravatar

Thierry said

on March 19th, 2010,

at 19:26 hours

A follow-up on my own post.

I got it running disabling SELinux (not just set it up to permissive).

I found about it
http://forums.fedoraforum.org/showthread.php?t=202235

This other thread seems to have more details about PAM, but I have not tried it:
http://tommi.org/2008/09/28/vmware-server-20-and-fedora-9-fedora-10/

Anonymus Gravatar

Thierry said

on March 20th, 2010,

at 00:00 hours

Just to report that even if VMware server seems to have successfully installed and if disabling SELinux seems to solve the login, the Web Access UI eventually locks up after few screens.

(my system: Fedora11 2.6.30.10-105.2.23.fc11.i586 and VMware-server-2.0.2-203138.i386.tar.gz)

Anonymus Gravatar

Carlos E. R. said

on March 20th, 2010,

at 12:10 hours

I get this error:

Extracting the contents of VMware-server-2.0.2-203138.i386.tar.gz VMware-server-2.0.2-203138.x86_64.tar.gz
tar: /root/Download/vmware/vmware/VMware-server-2.0.2-203138.i386.tar.gz\nVMware-server-2.0.2-203138.x86_64.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Exiting with failure status due to previous errors

The problem is that I have both i386 and .x86_64 versions of vmware in the same download directory (it is an external disk, shared for two installs), and thus, the variable VMWARE_ARCHIVE contains:

VMware-server-2.0.2-203138.i386.tar.gz
VMware-server-2.0.2-203138.x86_64.tar.gz

in two lines.

I had to split my download directory in two. No big deal, but it should be known.

Anonymus Gravatar

stig said

on March 21st, 2010,

at 02:53 hours

Radu,

Thanks for your script. I’ve used your script in the past to install vmware on debian lenny and now am trying to use it on ubuntu 9.10 with 26.31-20. The script compiles the modules and vmware starts, but I’m having some problems with the host-only networks. The VMss can ping each other over vmnet1, but the host OS can’t ping the guess over vmnet1. On the host OS the vmnet doesn’t have link type ether, mtu, broadcast or multicast:

stig@uffda:~$ uname -a
Linux uffda 2.6.31-20-generic #58-Ubuntu SMP Fri Mar 12 05:23:09 UTC 2010 i686 GNU/Linux
 
stig@uffda:~$ ip addr show vmnet1
5: vmnet1:  mtu 0 qdisc noqueue state UNKNOWN 
    link/generic 
    inet 172.16.117.1/24 brd 172.16.117.255 scope global vmnet1

Any ideas?

Radu said

on March 21st, 2010,

at 11:04 hours

@Stig: Known issue… Use port forwarding or bridged networking…

Anonymus Gravatar

Chris said

on March 21st, 2010,

at 21:07 hours

Thanks for putting this together Radu! I owe you a Sunday :-)

Worked beautifully on openSUSE 11.2 2.6.31.12-0.1-desktop with VMware Server 2.0.2 build-203138.

Anonymus Gravatar

Peter Stein said

on March 21st, 2010,

at 21:44 hours

Path works also on “Ubuntu 10.04 Lucid Lynx Beta-1″. Thanks!

Anonymus Gravatar

Anders said

on March 25th, 2010,

at 21:01 hours

Thanks for all your hard work!

Just a quick comment, when you write:

@Stig: Known issue… Use port forwarding or bridged networking…

Do you know if this can or will be solved? Using bridged networking leaves me with mediocre transfer speeds between guest vm and host..

Thanks in advance!

Radu said

on March 25th, 2010,

at 21:56 hours

Since I don’t work for VMware I really don’t know their development schedule. All I can tell you is that I really dislike the way they write their code for this product. While VMware Player and Workstation work great on 2.6.31 (without the need of applying any patch), the Server seems to support only legacy OS (which have become a bit outdated). What I suggest is either trying to use a headless VirtualBox instance (which I’m currently testing for one of my projects after not being able to use NAT on VMware Server due to the known issues) or migrating to a type 1 hypervisor: Xen or ESXi.

Anonymus Gravatar

Opensuse killed my VM - Spanspek said

on March 26th, 2010,

at 11:20 hours

[...] with a 32-bit install (which mine is).Fortunately, because Google is my friend, I discovered an install script. Instead of using the rpm, it uses the gzipped source and builds the server.It worked [...]

Anonymus Gravatar

Hernan said

on March 27th, 2010,

at 01:45 hours

Great Job Radu, Ramon. I think I’m going to try VirtualBox, I need to use NAT to.

Thanks

Anonymus Gravatar

sybille said

on March 27th, 2010,

at 18:08 hours

Confirmed working on Fedora 12, kernel 2.6.32.9-70.fc12.x86_64, VMware-server-2.0.2-203138.x86_64.tar.gz.

SELinux needs to be disabled (permissive mode is not enough).

Great job! Thank you.

Anonymus Gravatar

Jay Mallar said

on March 28th, 2010,

at 21:59 hours

Confirmed working with my machine:

* Fedora Core 12
* Kernel: 2.6.32.9-70.fc12.i686.PAE
* VMWare Server: 2.0.2-203138 (i386)

You must disable SELinux, permissive mode isn’t enough.

Works via Firefox 3.6.2 at http://localhost:8222/

Anonymus Gravatar

Figgy B said

on March 29th, 2010,

at 18:35 hours

It would be great if this would work on the rpm… I hate having tarballs throw files all over the place and not having a way to cleanly uninstall a package :(

Anonymus Gravatar

dustin said

on March 29th, 2010,

at 21:40 hours

confirmed working:
* ubuntu 10.4 beta
* kernel: 2.6.32-17-generic #26-Ubuntu SMP
* 2.0.2-203138.i386

thanks for this script, i wasted way too much time fighting it myself.

Radu said

on March 30th, 2010,

at 00:14 hours

@Figgy: Try sudo vmware-uninstall.pl. It might do wonders. :P

Anonymus Gravatar

Pascal said

on April 2nd, 2010,

at 11:53 hours

Confirmed working with my machine:

* Fedora Core 12
* Kernel: 2.6.32.10-90.fc12.i686
* VMWare Server: 2.0.2-203138 (i386)

You must disable SELinux, permissive mode isn’t enough.

I did an upgrade from an erlier version of Fedora. I had to reinstall vmware server via script and reset /etc/pam.d/vmware-authd like described here:

http://tommi.org/2008/09/28/vmware-server-20-and-fedora-9-fedora-10/

After the pam-change, I had to do /etc/init.d/vmware-mgmt start

Otherwise I was not able to connect the sever via http://localhost:8222

Anonymus Gravatar

Johan VM said

on April 7th, 2010,

at 00:26 hours

Performed an upgrade today from Fedora 11 to 12.
Thanks to the instructions on this page, managed to get vmware up and running. Virtual machines get started, but I’m not able to open the console.
When opening the console, following error is logged :

Apr  6 23:18:37 zeus abrt[10628]: saved core dump of pid 10627 (/home/johan/.mozilla/firefox/ttg8ezd8.default/extensions/VMwareVMRC@vmware.com/plugins/bin/vmware-vmrc) to /var/cache/abrt/ccpp-1270588716-10627.new/coredump (25051136 bytes)
Apr  6 23:18:37 zeus abrtd: Directory 'ccpp-1270588716-10627' creation detected
Apr  6 23:18:37 zeus abrtd: Executable '/home/johan/.mozilla/firefox/ttg8ezd8.default/extensions/VMwareVMRC@vmware.com/plugins/bin/vmware-vmrc' doesn't belong to any package
Apr  6 23:18:37 zeus abrtd: Corrupted or bad crash /var/cache/abrt/ccpp-1270588716-10627 (res:4), deleting

Kernel : 2.6.32.10-90.fc12.i686.PAE
VMWare Server: 2.0.2-203138 (i386)
I already rebooted several times, reinstalled the firefox plugin also, no success. Also tried out the start-VMware-console.sh, but no luck
Any hints ?

Radu said

on April 7th, 2010,

at 10:25 hours

If by any chance you are using Firefox greater than 3.5.8, then VMware’s console plugin won’t work.

Anonymus Gravatar

Georgi Manov said

on April 7th, 2010,

at 17:44 hours

Hello everybody

I successfully installed vmawre server 2.0.2 on fedora 12 x86_64 but I have the following problem. Whenever I try to restart vmware it says that I need to run vmware-config.pl again because there is configuration but it is not compatible with my kernel and so I have to re-config. It is not a big deal but it is kind of “unpleasant” to do it every time I want to use vmware…
Thank you in advance.

Anonymus Gravatar

Quentin said

on April 8th, 2010,

at 08:46 hours

Oh my!!

After spending my entire day trying other patches on the net for VMWare Server 2.x on Ubuntu 9.10 I managed to get the install script to work including the vsock module, but the web admin interface absolutely would not work, though the process was running.

My installation had become botched and I followed some instructions to manually remove VMWare:
http://ubuntuforums.org/showthread.php?p=1072324#post1072324

Then I was able to run this script and it so far appears to be working! Maybe I won’t have to re-install with 8.04LTS afterall.

Thanks!

Anonymus Gravatar

Johan VM said

on April 8th, 2010,

at 12:14 hours

I was running firefox 3.5.9, downgraded to 3.5.4 but that did not solve the issue. I’m using now VMplayer which is sufficient for my purposes. Maybe one day I’ll be able to switch back to the plug-in.
Thanks for the great script.

Anonymus Gravatar

harttigu said

on April 10th, 2010,

at 23:40 hours

Thanks a lot for the script (still wondering why VMware itself cant handle this) With it , I was sucessful installing on a Debian testing/unstable mix with kernel 2.6.32-3-686 (VMware ServerVersion 2.0.2 Build 203138)
Only major problem I had afterwards was no access to the Webgui. It turned out that Tomcat wouldnt start because of a problem with the IPv6 setup of the system. The command ‘sysctl -w net.ipv6.bindv6only=0′ solved the issue

Anonymus Gravatar

Edmir said

on April 13th, 2010,

at 04:23 hours

I’m using Fedora 12 and after the execution of the script everything worked well.
But … after a reboot, it stoped to work and Firefox give me the message “Firefox can’t establish a connection to the server at nemo.jvbti:8222″.
Some help ?

Anonymus Gravatar

David Rodger said

on April 13th, 2010,

at 04:55 hours

For Firefox 3.6+, you can use a stand-alone console:
http://communities.vmware.com/message/903606#903606

You still have to use the VMServer web interface for configuration, but this is a reasonable work-around for now.

Anonymus Gravatar

SomeGuy said

on April 15th, 2010,

at 20:23 hours

Bravo for this!

Working perfectly on:
Fedora release 12 (Constantine)
Kernel 2.6.32.11-99.fc12.i686
VMware-server-2.0.2-203138.i386

You put a lot of work into that script. Nicely done!

If you’re interested, I wrote a VMWare VLAN script a while back to allow VLAN support in GSX and VMWare Server. It doesn’t modify source code, it’s just a behind the scenes hack that utilizes bridges. Network throughput suffers enough that I wouldn’t use it in an Enterprise production environment, but it is perfect for personal or small business use.

Anonymus Gravatar

virtual64 said

on April 16th, 2010,

at 20:17 hours

Great THX !!!!

Worked fine on Ubuntu 9.10 ;)

Anonymus Gravatar

ae said

on April 19th, 2010,

at 06:57 hours

awesome, wish I had read this before i spent an hour trying to fix myself… Ubuntu 9.10

Anonymus Gravatar

René said

on April 19th, 2010,

at 19:08 hours

Hi Radu

Got this post after days with troubles with Debian 5 and Kernel 2.6.32-trunk-amd64

The error what i’m getting is:

There is a problem compiling the vsock module after it was patched. :(

But my installation of debian is a clean install. not an upgrade. Its a fresh server. what shall I do?

Cheers
René

Radu said

on April 19th, 2010,

at 19:53 hours

Rene, use another hypervisor. VMware Server is just a pain in the a55 on the newer kernel releases.

Anonymus Gravatar

lucs said

on April 20th, 2010,

at 00:46 hours

Works on Fedora 12 x64. Good work, thx

Anonymus Gravatar

rene said

on April 20th, 2010,

at 09:31 hours

hi radu

what should i use? have you any suggestions?

cheers

rene

Radu said

on April 20th, 2010,

at 17:46 hours

I am currently using VirtualBox with VboxTool.

Anonymus Gravatar

Toni said

on April 22nd, 2010,

at 17:31 hours

It works on Debian Squeeze (testing). Kernel 2.6.32-3-686

Thanks.
Cheers.

Anonymus Gravatar

Keith said

on April 26th, 2010,

at 19:18 hours

Thanks VERY MUCH for the patching script. However – I implemented this on F12 and things built and worked – sort of. I was experiencing all sorts of inconsistencies when trying to start the web gui where it would take forever to load and sometimes never even get a login and just doing a show inventory with no machines setup it would either sit there forever or return after a minute or so…

So I abandoned F12 and then went to use a CentOS 5.4 host OS and after installing vmware-server with zero problems, I found basically the same experience with the web gui behavior! After much digging around, I found this article telling me to yum downgrade glibc and things came to life and the web gui works and all seems well.
http://communities.vmware.com/thread/230842

So – now it seems that to really get a well functioning host system it looks like a host install of CentOS 5.3 is the best bet. While this looks like a good solution to get a well functioning vmware host, I still admit that I would have really liked to still use F12 so that I can gain all the rest of the good stuff that goes with it.

Has anyone else run into this same issue with Fedora 12? What did you do to solve it? It seems that the patch(s) provided here are great and essential to get the product installed but it seems to me that so far – it only exposes other problems that still leave me unable to use F12. I wonder if I am missing something yet? If anyone knows – please do tell ;-)

Many Thanks!!

Anonymus Gravatar

dave said

on April 26th, 2010,

at 21:21 hours

Hey, many thanks to you both!!
It works well on my Ubuntu 9.10

Just two things though;

1) When I boot my machine, I have to restart vmware otherwise I cannot to connect to the web.

2) When I load a VM and I connect to the console, the arrow keys don’t work among other keys. I have to ssh to the VM to work properly with the command line.

Any help with this will be very much appreciated.

Cheers

Radu said

on April 26th, 2010,

at 21:34 hours

I got you covered for 2). Check here.

Anonymus Gravatar

freekvos said

on April 26th, 2010,

at 23:15 hours

Hi Radu,

Think saturday or sunday i got it working perfectly.
Today vmware told me to run install again.

I wanted to do so but i can’t get further, bump into an error.

It there a problem with your website????
Running the install -script to get vmware running on ubuntu 9.10 gives me:

Resolving codebin.cotescu.com... 174.120.9.219
Connecting to codebin.cotescu.com|174.120.9.219|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2010-04-26 22:08:03 ERROR 404: Not Found.

Radu said

on April 26th, 2010,

at 23:32 hours

I have moved my blog to another server and on this new one I don’t host the contents of codebin because that proved to be a bit inefficient. Instead I’m using URL redirect for any request made for a script I wrote to serve you the latest tarred version from my repos at GitHub. Regarding the scripts for VMware, I have updated them to not look for the patch on the web anymore since you can now download the whole package (scripts + patches). Also this is more convenient if you want to install VMware on a machine without Internet connection. To use this new version of my script please click here, save the archive to your machine, untar it and then run the script as usual.

Anonymus Gravatar

VMware Server 2.0 on Fedora 12 : Resa’s Blog said

on April 27th, 2010,

at 18:46 hours

[...] this thread in the VMware Communities I was directed to radu cotescu’s blog post: How to install VMware Server on 2.6.31 kernels. These instructions and his patch worked like a [...]

Lunitix said

on April 30th, 2010,

at 12:51 hours

Thank you !

It worked for me as well on Debian 64 bit squeeze.

Anonymus Gravatar

Mat said

on May 3rd, 2010,

at 11:40 hours

No errors during setup. Thanks a lot!

Anonymus Gravatar

Gustavo Carvalho said

on May 4th, 2010,

at 17:10 hours

I just updated my Ubuntu to 10.04 and I couldn’t log in. So I applied the issues (edit /etc/services, disable SELinux and reboot) that you made to fedora and worked.

Radu said

on May 4th, 2010,

at 17:40 hours

SELinux is not installed by default on Ubuntu 10.04, therefore you don’t have to disable anything. Here’s some data from my machine:

radu@riker:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 10.04 LTS
Release:        10.04
Codename:       lucid
radu@riker:~$ uname -a
Linux riker 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:09:38 UTC 2010 x86_64 GNU/Linux
radu@riker:~$ cat /etc/services | grep 902
radu@riker:~$

gabriel said

on May 6th, 2010,

at 03:33 hours

I got the exact same result with this as folowing http://communities.vmware.com/message/1401588#1401588

which sadly is ‘not much’ :-/

(130) ~
partearth$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 10.04 LTS
Release:        10.04
Codename:       lucid
 
(0) ~
partearth$ uname -a
Linux partearth 2.6.32-22-generic #33-Ubuntu SMP Wed Apr 28 13:27:30 UTC 2010 i686 GNU/Linux

it install alright, with both patches. (the other one with more compile warnings)

Then it all came up alright

my 1st request to the web interface goes alright. and then it dies.

the only weird thing i notice is the amount of TIME_WAIT connections on port 8333

(0) ~
partearth$ netstat -an --inet | grep 8333 | wc -l
21

then i stop it, and when i’m about to start it again I get

partearth$ sudo /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.
Anonymus Gravatar

Rob said

on May 6th, 2010,

at 16:17 hours

Im having problems on the new release of Ubuntu 10.04… Error message

[error message removed]

Radu said

on May 6th, 2010,

at 18:24 hours

@Rob: I think you had some problems with VMware’s files after they were extracted. Coincidentally I’ve run the installer yesterday on a 10.04 64-bit instance and it worked okay (I’ve seen those compile warnings too, but the product worked).

Anonymus Gravatar

Reiner Geiger said

on May 7th, 2010,

at 14:30 hours

Hi, Radu!

The script worked well with Ubuntu 10.4 i386!

Upgraded from Ubuntu 9.10 with an running custom Kernel and VMWare Server 1.0.10. The virtual machines (Ubuntu 8.4) are working like set up with the VMWare Console in Server 1.0.10.

Access with Firefox 3.6.3 is working without any issues – up to now ;-)

Thanks for saving a lot of time.

Anonymus Gravatar

Kevin said

on May 11th, 2010,

at 10:08 hours

This worked flawlessly. using Ubuntu 9.10 Server using Kernel 2.6.31-21-Server

Thanks Again

Anonymus Gravatar

jacob said

on May 11th, 2010,

at 16:25 hours

I am getting the following error can anyone help me out?
Thanks

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)?

Radu said

on May 11th, 2010,

at 16:27 hours

It’s not an error if you see that message during the install process. Just let it compile the modules for your kernel.

Radu said

on May 11th, 2010,

at 16:40 hours

@jacob: Compile all the modules. It won’t hurt you if you read VMware’s documentation on how to install VMware Server. ;)

Anonymus Gravatar

jacob said

on May 11th, 2010,

at 18:02 hours

my apologies it was early and i didn’t see that it was talking about a different module the second time around. Everything seems to be working now I just have to figure out how to use the new web management interface to try and add hosts and create clusters as it seems the thick console isn’t supported any more.

Thanks again for the help Radu.

Anonymus Gravatar

jacob said

on May 12th, 2010,

at 17:22 hours

Just when I thought everything was working as it should I am now getting the following error

The server response included one or more errors.
If these problems persist, please contact your system administrator.DetailsServiceNotAvailableException: Web service not available.

From what I have found in other forums this is a problem with vware 2.0.2. Has anyone lese run into this error and found a fix. Thanks for the help.

techdiver said

on May 14th, 2010,

at 10:27 hours

Hi there,

When I try to run the script, I keep getting: -su: ./vmware-server-2.0.x-kernel-2.6.3x-install: cannot execute binary file

I’m running ubuntu 10.4 amd64

Any help will be great!
Thanks,

Radu said

on May 14th, 2010,

at 13:29 hours

Please show me how you try to run the script.

techdiver said

on May 14th, 2010,

at 13:43 hours

First, I made it executable by using “chmod +x vmware-server-2.0.x-kernel-2.6.3x-install.sh” and then as the root user I did ” ./vmware-server-2.0.x-kernel-2.6.3x-install.sh /home/techdiver/Downloads/VMware-server-2.0.2-203138.x86_64.tar.gz”

I also tried as my user running “sudo ./vmware-server-2.0.x-kernel-2.6.3x-install.sh /home/techdiver/Downloads/VMware-server-2.0.2-203138.x86_64.tar.gz”

None of those worked.

techdiver said

on May 14th, 2010,

at 14:30 hours

I made it executable first and then as root I ran: ./vmware-server-2.0.x-kernel-2.6.3x-install.sh /path/to/vmware-archive

I also tried as my user, using sudo. I also tried “sh /vmware-server-2.0.x-kernel-2.6.3x-install.sh /path/to/vmware-archive” which also didn’t work.

Anonymus Gravatar

ubik said

on May 15th, 2010,

at 01:27 hours

Full success here with a Debian Squeeze running kernel 2.6.32 and VMware Server 2.0.2.
Even the vsock module did compile.

To get the web interface running, I had to set net.ipv6.bindv6only = 0 in /etc/sysctl.d/bindv6only.conf. Otherwise, I got HTTP 501 errors.

Another hint about VMware server on Debian Squeeze: after a default Squeeze install I got the 2.6.32-trunk-686 kernel. The headers for that kernel are not available from the repositories anymore, so I installed kernel 2.6.32-3 to proceed with the installation of vmware server.

Thank you for your work!

techdiver said

on May 17th, 2010,

at 09:04 hours

After downloading the package again, it worked fine. Thanks for the patch!

LatinSuD said

on May 17th, 2010,

at 17:53 hours

saved my life:
Distro: Fedora 12 updated to 2010-05-17
Kernel: 2.6.32.11-99.fc12.i686
gcc: gcc version 4.4.3 20100127 (Red Hat 4.4.3-4) (GCC)
vmware: server-2.0.2-203138.i386

Anonymus Gravatar

Vtense said

on May 18th, 2010,

at 12:41 hours

It works!
Distro: Ubuntu 10.04 LTS updated to 2010-05-18
Kernel: 2.6.32-22-generic-pae
gcc: gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
vmware: server-2.0.2-203138.i386

Anonymus Gravatar

fred said

on May 18th, 2010,

at 17:10 hours

for me, install is ok, but I can’t connect to the web access with the account root (I have create a user, but it’s the same issue) I have disable
my /etc/services: vmware-authd 902/tcp

Selinux is disabled:
SELINUX=disabled
SELINUXTYPE=targeted
Restarted, I can’t access http://IP:8222 with user.
all service are running
My distrib fedora12 kernel 2.6.32.11-99

Radu said

on May 18th, 2010,

at 23:45 hours

You wasn’t supposed to create a user but to give permissions to an existent user from you system to log into VMware Server’s web interface. Therefore if the user you indicated doesn’t actually exists in your system you are locked out. Your root user cannot access the server’s web UI for the same reason. Run vmware-config.pl again and this time indicate an existing user from your system.

Anonymus Gravatar

fred said

on May 19th, 2010,

at 08:32 hours

When I run vmware-config.plI have the error :

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

vmci
vmnet
vmmon

Execution aborted!”

the solution was to changing:

if (scalar(@modules) > 0) {
TO
if (scalar(@modules) > 9) {
in the file vmware-config.pl ( line 11213). After, I have been able to run vmware-config.pl and specify a new user. Now that works. Thanks a lot for your help Radu and all people of this blog.

Best regards.

Anonymus Gravatar

qmemo said

on May 20th, 2010,

at 15:28 hours

Hello, thank you for your work, how ever I got this error and I am sure it’s nothing.

# ./vmware-server-2.0.x-kernel-2.6.3x-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
Checking for needed packages on Fedora
You do have the wget package...
You do have the xinetd package...
You do have the kernel-headers package...
You do have the kernel-devel package...
You do have the gcc package...
You do have the patch package...
You do have the make 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
find: `VMware-server-2.0.2-203138.i386.tar.gz/vmware-server-distrib/lib/modules/source': Not a directory
.tar files from VMware-server-2.0.2-203138.i386.tar.gz/vmware-server-distrib/lib/modules/source appear to be missing!

Cannot continue process. :(
I am running Fedora 12 (2.6.32.11-99.fc12.i686.PAE) and tried to install VMware-server-2.0.2-203138.i386.tar.gz
Thanks in advance

Radu said

on May 20th, 2010,

at 15:44 hours

@qmemo: You are running it wrong. If you have the archive in the same folder as the script run it without parameters. :D

Anonymus Gravatar

qmemo said

on May 20th, 2010,

at 16:48 hours

I confess, I did not read your instructions carefully.
it worked like a charm, thank you for creating this.

Anonymus Gravatar

Jon Ide said

on May 20th, 2010,

at 17:47 hours

Thanks Radu – your script worked great on Ubuntu 10.04 (2.6.32-21-generic-pae #32-Ubuntu SMP)

Anonymus Gravatar

Peter said

on May 22nd, 2010,

at 22:23 hours

Thanks for the script, finally got it working thanks to this, one problem tho, when I reboot our server VMware doesn’t seem to work anymore, when I try to start VMware manually I get the following 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.

Whenever I run the script it’s working fine, but when I reboot, VMware ain’t working anymore, any idea’s how to fix this ?

Anonymus Gravatar

Tux said

on May 26th, 2010,

at 04:01 hours

You saved me hours of log reading and troubleshoot…. thanx !!!!

I ran your script on SuSE 11.2 x64 and it is now up and running !

Anonymus Gravatar

jon said

on May 27th, 2010,

at 21:32 hours

have you seen this error:

vmnet-temp.tar tarball failed to extract in the directory vmnet-temp-only

I had vmware 2.0.2 running, updated the system (fedora 11) and vmware would not start. I receive the above error when attempting to re-run the patch.

Radu said

on May 28th, 2010,

at 00:15 hours

It happened to a few of you, but I really don’t understand why. Of course, it’s something in the way you are using the script because it never happened to me. Try deleting the artefacts the script left behind and then run it again.

Anonymus Gravatar

Lucas said

on May 31st, 2010,

at 19:37 hours

Thanks Radu! Worked very well for me. I’m using Ubuntu 10.04 64 bits and VMware 2.0.2. At the moment everything is going fine.

Anonymus Gravatar

Bill said

on June 5th, 2010,

at 18:53 hours

Thank you for your work on the script. The script worked perfectly on Mandriva 2010×64 PowerPack and VMware server 2.02.

GREAT JOB! THANK YOU!!!

Bill

Anonymus Gravatar

Kevin said

on June 9th, 2010,

at 07:54 hours

Thank you! The script works fine for me in Ubuntu 9.10 (kernel: 2.6.31-22).

Anonymus Gravatar

kerimbey said

on June 13th, 2010,

at 15:52 hours

Great work!

VMware 2.0.2. (203138) now running on my machine with OpenSuse 11.3 x64 (kernel 2.6.31.5-0.1-default).
But Server console is very slow (running a Q8300). No Idea why they changed rich client to web based console

Bye, kerim.

Anonymus Gravatar

TheReal Loser said

on June 14th, 2010,

at 16:16 hours

Did just like in you said (Ubuntu 10.04 64bit)
No errors, BUT:

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

and

loser@NetDesk1:~$ sudo /etc/init.d/vmware start
[sudo] password for jani:
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.

So what a f&%¤%#/¤E% ? I just can’t understand this Vmware issue at all. This is something why to use Citrix Xen, but I tryed once more if there would be any help available. This script installation is ok by me, but it did not work for me!

Last thing I tryed:

loser@NetDesk1:~/VM_Asennus$ sudo /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
vmnet
vmci

I.e. - 'rm /lib/modules/2.6.32-22-generic/misc/.{o,ko}'

Execution aborted.

I just started to HATE Vmware. It’s like Windows – nothing works and users has to debug and figure it out for them.

So far you have been closest to real clean installation but the disappointment was huge when I hit on these errors.

I must be stupid and total loser ;-)

Radu said

on June 14th, 2010,

at 19:50 hours

It’s not your fault or mine. :P

Anonymus Gravatar

Filipe Veloza said

on June 17th, 2010,

at 18:25 hours

Hi,

I just got the exact same error as the TheReal Loser, on Fedora 13… :( no idea why

Anonymus Gravatar

Sebastian said

on June 21st, 2010,

at 18:54 hours

Should VSOCK compile or not on Ubuntu 10.04 with Kernel 2.6.32-22? I get sort of mixed messages here…

Anonymus Gravatar

sebastian said

on June 21st, 2010,

at 19:06 hours

Never mind! I got it working perfectly with your script. Thanks man great work!

Anonymus Gravatar

florin said

on June 24th, 2010,

at 07:09 hours

Hi Radu,

I have installed recently Ubuntu 10.04 TLS – the Lucid Lynx.
kerbel-version: #36-Ubuntu SMP Thu Jun 3 23:14:23 UTC 2010
Downloaded: VMware-server-2.0.2-203138.i386.tar.gz

I followed the instructions to install the VMware.but something didn’t go right. I’m not very familiar with Linux/Ubuntu.
Both lines below were running on the user with admin rights.

and
sudo ./vmware-server-2.0.x-kernel-2.6.3x-install.sh /home/f11/Documents/VMware-server-2.0.2-203138.i386.tar.gz

None of those worked.

I need help.
Thx.

Radu said

on June 24th, 2010,

at 13:02 hours

Don’t put the archive in the path. The path is formed only by the archive’s parent folder. In case you have the archive in the same folder with the script you must run it with empty arguments.

Anonymus Gravatar

me said

on June 25th, 2010,

at 15:00 hours

Hi,

can someone test if hostonly network is working with this patch and 2.6.32.15?

Install went without issues but hostonly is dead for me.

Anonymus Gravatar

Jason Weden said

on June 25th, 2010,

at 17:43 hours

On Ubuntu 10.04, I also needed the following in order to get the mouse to work:

export GTK_NATIVE_WINDOWS=1

I would recommend adding this to Step 6.

Anonymus Gravatar

Robert Margeson said

on June 26th, 2010,

at 14:50 hours

You are the MAN!

Another successfully install of VMware Server 2.0.2!!

I was able to run the script provided on Fedora 13 i686 / 32-bit running kernel 2.6.33.5-124.fc13.i686

Thank you for your time in providing us this script. I don’t usual give comments on sites but I feel there is a need for your offering, time and skills to be shown appreciation.

Thanks again!
Rob Margeson

Anonymus Gravatar

Ian said

on June 27th, 2010,

at 23:43 hours

The machine is AMD 64 – Fresh install of Ubuntu 10.04 LTS and vmware server 2.0.2…

I had vmware 2.0.1 on ubuntu 9.0.4 last week…

ian@shark:~/vmware$ uname -r
2.6.32-21-generic

I get a problem applying the patch, as follows:

ian@shark:~/vmware$ sudo ./vmware-server-2.0.x-kernel-2.6.31-14-install.sh ./vmware.2.0.2
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.32-21-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 vmci module
Found .tar file for vmnet module
Found .tar file for vsock module
Extracting .tar files in order to apply the patch...
Untarring ./vmware.2.0.2/vmware-server-distrib/lib/modules/source/vmmon.tar
Untarring ./vmware.2.0.2/vmware-server-distrib/lib/modules/source/vmci.tar
Untarring ./vmware.2.0.2/vmware-server-distrib/lib/modules/source/vmnet.tar
Untarring ./vmware.2.0.2/vmware-server-distrib/lib/modules/source/vsock.tar
Testing patch...
patch unexpectedly ends in middle of line
patch: **** Only garbage was found in the patch input.
The patch cannot be applied. :(

I don’t think this is a problem with the patch – more likely the ‘fresh install’ bit and I’ve missed some setting to allow the patch to download correctly…

Any advice – appreciated.

Radu said

on June 28th, 2010,

at 01:33 hours

Have you tried to download the archive again? Maybe it got corrupted…

Anonymus Gravatar

Akeem said

on June 28th, 2010,

at 17:46 hours

A Linux Newbie here. I have been trying without success to install. The error I get is as follows.
sudo: ./vmware-server-2.0.x-kernel-2.6.3x-install.sh: command not found
I dont know what I am doing wrong.
Please help

Ubuntu 10.04 LTS – the Lucid Lynx – released in April 2010

marvin avilez said

on June 28th, 2010,

at 20:02 hours

Radu,

Tried the script today…and no luck.

Can you shed any light to this error?

thanks.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmnet-only’
make -C /lib/modules/2.6.32-22-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-22-generic’
CC [M] /tmp/vmware-config0/vmnet-only/driver.o
CC [M] /tmp/vmware-config0/vmnet-only/hub.o
CC [M] /tmp/vmware-config0/vmnet-only/userif.o
CC [M] /tmp/vmware-config0/vmnet-only/netif.o
CC [M] /tmp/vmware-config0/vmnet-only/bridge.o
CC [M] /tmp/vmware-config0/vmnet-only/filter.o
CC [M] /tmp/vmware-config0/vmnet-only/procfs.o
CC [M] /tmp/vmware-config0/vmnet-only/smac_compat.o
CC [M] /tmp/vmware-config0/vmnet-only/smac.o
CC [M] /tmp/vmware-config0/vmnet-only/vnetEvent.o
CC [M] /tmp/vmware-config0/vmnet-only/vnetUserListener.o
LD [M] /tmp/vmware-config0/vmnet-only/vmnet.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/vmware-config0/vmnet-only/vmnet.mod.o
LD [M] /tmp/vmware-config0/vmnet-only/vmnet.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-22-generic’
cp -f vmnet.ko ./../vmnet.o
make: Leaving directory `/tmp/vmware-config0/vmnet-only’
Unable to make a vmnet module that can be loaded in the running kernel:
insmod: error inserting ‘/tmp/vmware-config0/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!

Radu said

on June 28th, 2010,

at 23:31 hours

@Akeem: I do not know either. :) Because you have failed to provide me with sufficient details. Check my other comments on the VMware posts…
@Marvin: You’ve got it all there: check your header files. Normally the script should have installed the ones for your running kernel…

Anonymus Gravatar

rec9140 said

on June 29th, 2010,

at 03:11 hours

Downloaded the script several times, re-downloaded several times and all I get is:

$ sudo ./vmware-server-2.0.x-kernel-2.6.3x-install.sh ./vmware
./vmware-server-2.0.x-kernel-2.6.3x-install.sh: 3: Syntax error: Unterminated quoted string

Ubunutu 10.04 Lucid

Radu said

on June 29th, 2010,

at 10:55 hours

Check line 3… Is is that hard? Also check it in the repo… Are you downloading the archive and to the script by itself?

Anonymus Gravatar

rec9140 said

on June 29th, 2010,

at 15:32 hours

“Check line 3… Is is that hard? ”

Yeah it is … All I get is “@!(*$&!(*&Y IKnbsajkDGUKAy%F OC! TR!RV!KJ&*! ^R!YJDNBQ”

Where exactly is line 3 in that? ?

Radu said

on June 29th, 2010,

at 16:50 hours

Which part of the right click, save as fails with your setup? When you do that using the link in the instructions your browser will get a tar.gz archive file. You should then extract this archive to a convenient folder and run the script as instructed.

Anonymus Gravatar

Cliff said

on June 29th, 2010,

at 23:52 hours

Worked well on SLES 11 SP1 (Kernel 2.6.32.12-0.7 64bit)
Thank you very much!!!

Anonymus Gravatar

Thomas Fritzsche said

on July 6th, 2010,

at 09:08 hours

Many thanks for this very good script, is hard to find out the bugs, but this script make the installation for VMWARE Server 2.0.2 on OpenSuse 11.2(Kernel 2.6.31.12) very easy

Anonymus Gravatar

Erik said

on July 10th, 2010,

at 14:27 hours

Works flawlessly on SLES11 64bits – many thanks for the script.

Anonymus Gravatar

Pedro Tarrinho said

on July 12th, 2010,

at 13:05 hours

I’m getting this error when trying to connect via vmware console (your script):

Unable to connect to the MKS: Pipe: Read failed.

And this via the firefox browser 3.6.6:

“Cannot access virtual machine console. The request timed out.
The attempt to acquire a valid session ticket for “server1″ took longer than expected. If this problem persists, contact your system administrator.”

Anyone?

Anonymus Gravatar

Antti said

on July 13th, 2010,

at 13:52 hours

Thanks for the script, it appears to install VMware-server on my 64bit Fedora 12. However, I do run into some issues that I don’t quite understand.

The main problem is that VM’s do not power off appropriately, they always hang at 95%. This does not depend on the OS of the guest (well, at least it happens on both XP guest and Ubuntu guest). Also, the mouse behaves weird in all the VM’s, looks like it recognizes only a certain part of the virtual “screen”, and bringing the mouse outside that invisible border causes the VM to loose the grab of the mouse.

At first I thought this might be because my running kernel was built with gcc 4.4.3, while the gcc I have is 4.4.4 (and the installer warns about this, but going on it says modules load perfectly to the running kernel). I rebuilt the kernel with gcc 4.4.4, but this did not solve the issue, so now I’m at a loss. The installation goes smoothly, but something weird is going on.

Are there issues related to 64bit vs. 32bit vmware-server? Obviously the 32bit version will not install on my system.

Any help would be greatly appreciated.

Anonymus Gravatar

Antti said

on July 13th, 2010,

at 21:26 hours

I would like to add that while shutting the VM’s down leads to problems (that is, they won’t, and the VM becomes useless), just restarting them works fine. Is anyone else experiencing similar issues with 64bit Fedora 12?

Anonymus Gravatar

Davi said

on July 15th, 2010,

at 00:47 hours

Hi!
Your script worked perfectly on fedora 12 (kernel 2.6.32), more precise: 2.6.32.11-99.fc12.x86_64.
But I´ve noticed that haldaemon must be running. I couldn´t get to open the port 8333 until I start haldaemon.
So before people try to run vmware webaccess, make sure haldaemon is running.
Thanks!

Anonymus Gravatar

Brendan said

on July 18th, 2010,

at 23:34 hours

Confirmed and works on Fedora 13 (X86_64)!!!
Thanks so much for this

Anonymus Gravatar

stefan said

on July 20th, 2010,

at 17:01 hours

After a reboot of server (running Fedora 13) the vmserver is not working:

service vmware status
Bridged networking on /dev/vmnet0 is running
Host network detection is not running
Host-only networking on /dev/vmnet1 is running
DHCP server on /dev/vmnet1 is running
Host-only networking on /dev/vmnet8 is running
DHCP server on /dev/vmnet8 is running
NAT networking on /dev/vmnet8 is not running
Module vmmon loaded
Module vmnet loaded

Do you know what I can do to start the vmware server properly, because now if I try to start the vmware service, he require to run vmware-config.pl and if I run it still is not working.

Thank you.

Anonymus Gravatar

GregCPX said

on July 20th, 2010,

at 19:32 hours

The script worked great thanks!

I do have a question, not sure if this is the right place or not, but when I open up the Web Access page, the properties of the server shows only 1 cpu and I have 1 physical CPU’s (4 cores in each)

Suggestions?

Joe said

on July 21st, 2010,

at 08:11 hours

Worked perfectly for me using ubuntu 9.10 Thanks!!!!

Anonymus Gravatar

Rafael Nize said

on July 22nd, 2010,

at 16:10 hours

Does the patch modify MTU limit in bridge module for VLAN support ?

Radu said

on July 23rd, 2010,

at 13:26 hours

@stefan: There are still some problems with VMware running on the unsupported kernels. This was detailed by me here.

@GregCPX: VMware issue.

@Nathan: Have you downloaded the archive correctly? I hope you haven’t browsed to GitHUB and downloaded just the script…

@Rafael Nize: From what I know the patch does not mess with the MTU value.

Anonymus Gravatar

Rutger said

on July 28th, 2010,

at 18:18 hours

Fix worked. Thanks!
My system info: OpenSuse 11.3 with kernel 2.6.34-12-pae.

Think you've got something to say?

For leaving comments including source code or terminal output, please use the the following tags like in the next example:

[language]
code lines
[/language]
where you substitute language with the programming laguage used throught the code example (for terminal output that would be bash), e.g:
[bash]
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
[/bash]

To see a list of all the supported languages, please check this page.

If you want to include code bits inline, please use the code tags like in the following example:

The <code>$USER</code> variable holds the current logged in username.

Subscribe without commenting


Bear