How to install VMware Server on 2.6.32 kernels

Posted on February 21st, 2010 at 0:41, in How To, Linux, Ubuntu, VMware, Virtualization.

Recently I have updated the script and the patch used for installing VMware Server on the 2.6.30 and 2.6.31 kernels to include support for the 2.6.32 release as well. Also I have modified the script so that now the VSOCK module 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 from this post.

Similar Posts:


40 Comments

[...] Posted on October 30th, 2009 at 4:13, in How To, Linux, Ubuntu, VMware, Virtualization. Hello there! If you are new here, you might want to subscribe to the RSS feed for updates on this topic. var fbShare = {url: 'http://radu.cotescu.com/2009/10/30/how-to-install-vmware-server-2-0-x-on-ubuntu-9-10-karmic-koala/',size:'small'} UPDATE 2: The script has been updated to work with kernels 2.6.32 too. Please post your comments regarding kernel 2.6.32 here. [...]

Anonymus Gravatar

aloysius said

on February 22nd, 2010,

at 20:57 hours

Im new to ubuntu 9.10 and linix i tried my best to understand the process but when i try to run the scrip in terminal i get command not found and i lost help.

Radu said

on February 22nd, 2010,

at 22:55 hours

Make the script executable. Follow the instructions because there’s nothing more to it than that.

Anonymus Gravatar

JB said

on February 23rd, 2010,

at 12:13 hours

Hi,

I’ve got Debian with 2.6.32-trunk and 2.6.30-2 kernel and while your patch seems to work fine I’ve got not network (hostonly/nat).
The type of the vmnet devices in ifconfig is AMPR NET/ROM, I’ve got not MAC adress on the host.

If I launch the vmnet-sniffer no packets from the host are going into it.

I tried to modify the netif.c by putting the ether_setup(dev); on line 212 instead of inside the condition. I’ve got the ethernet type and mac address but doesn’t work either :/ Should miss something else.
Do you have any input ?

Radu said

on February 24th, 2010,

at 01:04 hours

It seems to be almost a known problem regarding VMware Server on kernels 2.6.30 and upwards. It’s like a lottery. I haven’t played with VMware’s code and I’m sure I won’t do it soon. The patches I used in my scripts were either posted on VMware Communities, either provided to me by Ramon de Carvalho Valle. The only thing I did was the knitting of bash scripts around them to provide an automated installation. Although I can program in C, I prefer not to waste time with VMware’s bad coded products. I am sorry that I cannot help you more.

By the way, on what kernel have you done the tests: 2.6.30 or 2.6.32? For 2.6.30-2 there’s another patch (also on VMware Communities) which I haven’t used mainly because at first I only wanted to handle the problems for 2.6.31-14 (which at that time was the default kernel for Ubuntu 9.10).

Anonymus Gravatar

nathan said

on February 26th, 2010,

at 03:44 hours

thanks radu, I really had too many problems with 2.6.31-12 so I tried it with 2.6.32-8 but getting some weird

./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 .././linux/driver.c:20:
.././include/driver-config.h:42:5: error: #error “No Module support in this kernel. Please configure with CONFIG_MODULES”

very odd, any idea? I’m using latest script…

Anonymus Gravatar

Peter Joseph Harris said

on March 30th, 2010,

at 20:58 hours

I got VMware Server 2.0.2 (build ?????) running WITHOUT scripts by first installing VMware Player on [kernel 2.6.31.5-127.fc12] The freeware player compiles the modules in /usr/lib/vmware/modules/source then cp v*tar modules to the same path in Server. –keep a copy at hand! (Workstation will probably work, too right?) The installer needs a tweak to recognize these extraneous modules. because it disowns them. That is, I figure more workable than using patches for every kernel, I wish dkms made VM modules, I think VMware vmx config is kind of versatile, and the secure web interface is awesome! (Tomcat, huh?) the browser console plugin is a pain, Wow I wish I had a server! I don’t (For this reason Virtual Box is more to the point for me, but I love to tinker! It just doesn’t give me enough to do!
I imagine that ESXi would be a bit more efficient for data platform with a thick client web browser like Server. Also I thought I saw something about a VMware filesystem partition (maybe I dreamt it up?) will double check. Also I don’t code yet. but if I can help, let me know.

Radu said

on March 30th, 2010,

at 21:41 hours

Changing the modules every time your kernel updates with the ones from other products is a much bigger pain in the a55 comparing it to invoking vmware-config.pl to recompile them. Furthermore, those modules don’t work on VMware Server (e.g. one cannot start the defined VMs). Been there, tried that.

Anonymus Gravatar

Peter Ruckdeschel said

on April 1st, 2010,

at 15:41 hours

Tried your patch to install VMware server on Suse 11.2 with kernel 2.6.32; thanks a lot for providing this; unfortunately the script stops with an error message:
>>>
Trying to compile vmmon module to see if it works
Performing make in /home/xxx/Dokumente/vmware-server-distrib/lib/modules/source/vmmon-only
Using standalone build system.
cc: error trying to exec ‘cc1′: execvp: file not found
cc: error trying to exec ‘cc1′: execvp: file not found
Dependencies for driver.c
cc: error trying to exec ‘cc1′: execvp: file not found
make[1]: *** [driver.d] error 1
make: *** [deps] error 2
There is a problem compiling the vmmon module after it was patched. :(

Would you have a clue what this is?
Any comments welcome;
Best, Peter

Ramon de Carvalho Valle said

on April 2nd, 2010,

at 06:40 hours

I released a new patch which brings some improvements, adds support for newer versions of the Linux kernel and fixes all aforementioned problems. The new patch is available here.

Anonymus Gravatar

Quentin said

on April 9th, 2010,

at 00:24 hours

Ya here I thought I had everything working yesterday with the script only to find I can no longer rouse the web admin interface.

It is really frustrating to have one of the most well known virtualization softwares and one of the most well known Linux OS’s and not be able to have them work together at all.

Went to install 8.04LTS this morning and it boots and starts the install, but only gets a little ways in before it decides it can’t find the CD-ROM.

Well …. at least it’s not as bad as my very first experience with Linux in ’99 when I tried re-compiling a kernel to support AGP at the time. Yikes.

Anonymus Gravatar

Peter Ruckdeschel said

on April 9th, 2010,

at 17:41 hours

as to my posting April 1st: found out that it was due to a misconfiguration of my gcc compiler; my bad! thanks a lot for providing the patches to both Radu and Ramon; with these it worked out fine in the end; best Peter

Anonymus Gravatar

Josh STephens said

on April 12th, 2010,

at 05:26 hours

Thanks, I have been trying to get this working for quite sometime. For whatever reason I could not get the patches working. However you script has worked perfectly. I am using Ubuntu 10.4 beta 2 release with kernel 2.6.32-19-generic

Anonymus Gravatar

zigzag said

on April 20th, 2010,

at 00:04 hours

on Fedora 12 with kernel 2.6.32.11-99 works great. thx a lot.

Anonymus Gravatar

zigzag said

on April 27th, 2010,

at 13:02 hours

BUT ONLY FOR A FEW DAYS :(

yesterday FC noted, “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

Radu said

on April 27th, 2010,

at 14:51 hours

You probably updated your kernel. Open a terminal, remove the modules and then run vmware-config.pl using super user privileges.

Anonymus Gravatar

zigzag said

on April 29th, 2010,

at 11:52 hours

i have still same kernel and unfortunately removing the modules didn´t help, see http://pastebin.com/8c0YL0eF

Anonymus Gravatar

zigzag said

on April 29th, 2010,

at 20:02 hours

after rebooting system, vmware-config.pl start correctly but, after next reboot, vmware again notice problem with
vmci
vmnet
vmmon
:(

Radu said

on April 29th, 2010,

at 20:20 hours

I am sorry. On Ubuntu it works okay.

Anonymus Gravatar

zigzag said

on April 29th, 2010,

at 21:17 hours

never mind. so, i have to wait for Wmware corp.
here my problem is mentioned too.

Anonymus Gravatar

Kongo_86 said

on May 5th, 2010,

at 18:14 hours

Yo! thanks alot for the script. i just tried on Ubuntu 10.4 LTS 64bit after hours of troubleshooting. SWEET!

Anonymus Gravatar

Raj W. said

on May 6th, 2010,

at 05:16 hours

Thank you VERY much. I had been trying to get VMware Server 2.0.1 installed on Ubuntu 10.04 LTS for two days with no luck. Your script worked *perfectly*.

Anonymus Gravatar

M-jack said

on May 6th, 2010,

at 18:26 hours

works great on ubuntu desktop 10.04 lucid lynx
many thanks !!

Anonymus Gravatar

RE said

on May 8th, 2010,

at 02:05 hours

Help me plzz, i cant install it!:(. report:
Extracting .tar files in order to apply the patch…
Untarring /media/Data_/VMware/vmware-server-distrib/lib/modules/source/vmnet.tar
Untarring /media/Data_/VMware/vmware-server-distrib/lib/modules/source/vmnet-temp.tar
vmnet-temp.tar tarball failed to extract in the directory vmnet-temp-only. :(

How to fix this problem?!
Thanks for your supporting!

Radu said

on May 8th, 2010,

at 14:14 hours

Delete the folder vmware-server-distrib and re-run the script. There was a problem with you VMware Server archive.

Anonymus Gravatar

RE said

on May 9th, 2010,

at 13:14 hours

thank you so much, Radu! But i cant start the web interface, https://127.0.0.1:8333/ not work!:(
Plz help me!

Anonymus Gravatar

Claudia said

on May 10th, 2010,

at 22:47 hours

I ran the script on VMware Server 2.0.2 on Debian kernel 2.6.32-trunk-686 and I got the kernel modules installed and running. Nevertheless I have problems getting samba to kommunicate with the VMware guest. The guest can’t see the host and vice versa. On booting kernel 2.5.26 (Debian Lenny) with exact the same setting I can work with samba on host and guest without problems. Any suggestions?

Radu said

on May 10th, 2010,

at 22:51 hours

Use another virtualization platform than VMware Server. VMware doesn’t intend to support the newer kernels on the Server product yet.

Anonymus Gravatar

Ollie said

on May 11th, 2010,

at 18:03 hours

I had actually upgraded my distro from Ubuntu 9.10 to 10.04. Ubuntu 9.10 was running it just fine but it stopped working when I upgraded. I ran Radu’s script and got a helpful message telling me that I had to delete a certain file, the vmmon module. The command I used is:

rm /lib/modules/2.6.32-22-server/misc/vmmon.{o,ko}

- the output is very useful as it does tell you the correct syntax.

I hope that this helps anyone else and kudos to Radu for creating the script!

Anonymus Gravatar

lukasz said

on May 20th, 2010,

at 15:30 hours

Your script works perfectly! After several problems with vmware implementation without your help I found this pages which sorted out all my problems just by using one GOOD script!
Great Thanks!
Lukasz

Anonymus Gravatar

Scott Pinkston said

on May 21st, 2010,

at 18:25 hours

Hi Radu. I’m running Fedora 12 kernel 2.6.31.5-127.fc12.x86_64. After days of failed tries trying to get VMWare server 2.0.1 up and running, I happily found your web site and script. The script worked and I’m hosting a few Win XP VPC’s. However, I have an issue using the browser based management tool using Firefox. After successfully creating 3 virtual machines, I cant seem to create any more. When I click on create a dialog is presented prompting me for a name, which I enter. The problem is this: When I click on the “Next” button nothing seems to happen. I’ve tried and tried to no avail. Any ideas?

Thanks again for your script…

Anonymus Gravatar

AJ N said

on May 23rd, 2010,

at 17:05 hours

I followed the instructions to install vmware 2.0.2 64bit and it worked perfectly. Since reboot, all I get is “503 Service not available” when I try to access vmware. I been search for solution but nothing clear as to what the problem maybe.

luchango said

on May 27th, 2010,

at 01:23 hours

worked great for me Ubuntu 10.4 Server 64bit
vmware server 2.0.2 build-203138

not sure what it fixed but it works great!

Anonymus Gravatar

Russell said

on June 1st, 2010,

at 17:23 hours

Thanks for providing the script – it works beautifully, and saved me a lot of time patching things up myself!

Anonymus Gravatar

Rob said

on June 4th, 2010,

at 15:39 hours

I installed the vmware server on Ubunto 10.04 (Lucid) x64

kernel: 2.6.32-22-generic
files:
VMware-server-2.0.2-203138.x86_64.tar.gz
raducotescu-vmware-server-linux-2.6.3x-kernel-592e882.tar.gz

When I run “vmware” I don’t get the login windows in firefox
(https://127.0.0.1:8333/).

The same vmware server worked fine for me under Ubunto 8.04 (Hardy).

Any help would be apreciated.

Thanks,

Rob

Anonymus Gravatar

Howard Weise said

on June 5th, 2010,

at 01:10 hours

Thanks! This worked like a champ on Lucid x86 2.6.32-22

Anonymus Gravatar

Karl said

on June 6th, 2010,

at 11:17 hours

@Rob,
this could be the problem associated with firefox 3.6. Try firefox-portable 3.5 because (thats what I read) SSL2 is not active in FF3.6.
about:config
search for “securitiy.enable.ssl2″ and change it from false to true
Now the webinterface should be working, but the console-window still does not!

another tip I found somewhere:
You can start the plugin without firefox!

1. search for vmware-vmrc in directory .mozilla
2. adapt the file-rights and start via bash. example:
bash vmrare-vmrc -h 192.168.99.7:8333

You should be asked for username and passwordt!

I had some quirks to get this running, but I forgot the details. If you still have problems, I can look it up in the office – just give me a note.
Karl
PS: Many thanks to Radu!

Anonymus Gravatar

xokaido said

on June 23rd, 2010,

at 14:42 hours

i’ve installed vmware server on the gentoo system with this script, didn’t need any modifications, just hitting enter did the job. thanks a lot

Anonymus Gravatar

xokaido said

on June 23rd, 2010,

at 19:43 hours

I’m sorry, my previous message was less informative. I’ve successfully installed vmware server 2 on the gentoo system using kernel 2.6.32. I just needed to create directory /etc/rc.d/
and sub-directories starting from rc0.d/ and ending with rc6.d/
there was no need to modify anything in the script or anything else. Thanks a lot for such a great job.

Anonymus Gravatar

Justin said

on June 24th, 2010,

at 23:45 hours

I love you so badly right now. ;)

No, seriously, i was working around and around and around and couldn’t figure this out. I thought i was going to have to start all over with an older version.

Thank you so much!

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