How To Install VMware Server 1.0.x On A Debian Lenny Desktop

Want to support HowtoForge? Become a subscriber!
 
Submitted by falko (Contact Author) (Forums) on Mon, 2009-03-23 18:55. :: Debian | VMware | Desktop | Virtualization

How To Install VMware Server 1.0.x On A Debian Lenny Desktop

Version 1.0
Author: Falko Timme <ft [at] falkotimme [dot] com>
Last edited 02/19/2009

This tutorial provides step-by-step instructions on how to install VMware Server 1.0.x (1.0.8 at the time of this writing) on a Debian Lenny desktop system. This is for those who prefer VMware Server 1.0.x over VMware Server 2.

With VMware Server you can create and run guest operating systems ("virtual machines") such as Linux, Windows, FreeBSD, etc. under a host operating system. This has the benefit that you can run multiple operating systems on the same hardware which saves a lot of money, and you can move virtual machines from one VMware Server to the next one (or to a system that has the VMware Player which is also free).

Also, with VMware Server you can let your old Windows desktop (that you previously converted into a VMware virtual machine with VMware Converter, as described in this tutorial: http://www.howtoforge.com/vmware_converter_windows_linux) run under your Debian desktop. This can be useful if you depend on some applications that exist for Windows only, or if you want to switch to Linux slowly.

I do not issue any guarantee that this will work for you!

 

Installing VMware Server 1.0.x

To download VMware Server, go to http://www.vmware.com/download/server/ and click on the Download link of the latest release of the VMware Server 1.0.x series (not VMware Server 2!):

Accept the license agreement by clicking on Yes:

Then download the VMware Server for Linux .tar.gz file (not the rpm file!) to your desktop (e.g. to /home/falko/Desktop):

To get the serial number that you need to run VMware Server, go to http://register.vmware.com/content/registration.html. Fill in your personal details. Afterwards you will get a page with a serial number for VMware Server. Write it down or print it out:

Then open a terminal (Applications > Accessories > Terminal):

Become root:

su

Run the following command to install some necessary packages:

apt-get install linux-headers-`uname -r` build-essential xinetd gcc-4.1

The Debian Lenny kernel was built using gcc 4.1, however we now have gcc 4.3 installed. The VMware installer will complain about this and fail, unless we make /usr/bin/gcc a symlink to /usr/bin/gcc-4.1:

ln -sf /usr/bin/gcc-4.1 /usr/bin/gcc

Then go to the location where you saved the VMware Server .tar.gz file, e.g. /home/falko/Desktop (replace falko with your own username!):

cd /home/falko/Desktop

Unpack the VMware Server .tar.gz file and run the installer:

tar xvfz VMware-server-*.tar.gz
cd vmware-server-distrib
./vmware-install.pl

The installer will ask you a lot of questions. You can always accept the default values simply by hitting <ENTER>. If the installation fails with an error like this...

make[1]: Entering directory `/usr/src/linux-headers-2.6.26-1-686'
CC [M] /tmp/vmware-config2/vmmon-only/linux/driver.o
/tmp/vmware-config2/vmmon-only/linux/driver.c:146: error: unknown field ‘nopage’ specified in initializer
/tmp/vmware-config2/vmmon-only/linux/driver.c:147: warning: initialization from incompatible pointer type
/tmp/vmware-config2/vmmon-only/linux/driver.c:150: error: unknown field ‘nopage’ specified in initializer
/tmp/vmware-config2/vmmon-only/linux/driver.c:151: warning: initialization from incompatible pointer type
make[2]: *** [/tmp/vmware-config2/vmmon-only/linux/driver.o] Error 1
make[1]: *** [_module_/tmp/vmware-config2/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.26-1-686'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config2/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/download/modules/modules.html" and
"http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".

Execution aborted.

debian:/home/falko/Desktop/vmware-server-distrib#

... go to http://vmkernelnewbies.googlegroups.com/web/vmware-any-any-update117c.tar.gz in a browser, click on the download link and save the file vmware-any-any-update117c.tar.gz on your desktop:

Then do this:

cd /home/falko/Desktop
tar -zxf vmware-any-any-update117c.tar.gz
cd vmware-any-any-update117c
./runme.pl

This will patch the VMware installer and continue the installation. Again, you can accept the default values simply by hitting <ENTER>.

When the installer asks you

In which directory do you want to keep your virtual machine files?
[/var/lib/vmware/Virtual Machines]

you can either accept the default value or specify a location that has enough free space to store your virtual machines.

At the end of the installation, you will be asked to enter a serial number:

Please enter your 20-character serial number.

Type XXXXX-XXXXX-XXXXX-XXXXX or 'Enter' to cancel:

Fill in your serial number for VMware Server.

After the successful installation, you can delete the VMware Server download file and the installation directory:

cd /home/falko/Desktop
rm -f VMware-server*
rm -fr vmware-server-distrib/
rm -fr vmware-any-any-update117c*

You will now find VMware Server under Applications > Other > VMware Server Console:

When you start it, select Local host:

Afterwards, you can create virtual machines (or import your virtual Windows machine that you created with VMware Converter):

 

Links


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.
Submitted by Anonymous (not registered) on Mon, 2010-02-15 13:27.
For Debian 5.04 amd64 works this modification:
ln --symbolic --force /usr/bin/gcc-4.1 /usr/bin/gcc
cp -v /usr/lib/gcc/$(uname -m)-linux-gnu/4.3/cc1plus /usr/lib/gcc/$(uname -m)-linux-gnu/4.1/
wget -c http://download3.vmware.com/software/vmserver/VMware-server-1.0.10-203137.tar.gz
tar xfz VMware-server-1.0.10-203137.tar.gz
cd vmware-server-distrib
./vmware-install.pl
cd ..
wget -c http://vraidsys.com/software/vmware-update-2.6.26-5.5.7.tgz.gz
tar xzf vmware-update-2.6.26-5.5.7.tgz.gz
cd vmware-update-2.6.26-5.5.7/
./runme.pl
rm /usr/bin/gcc
Submitted by Anonymous (not registered) on Tue, 2010-06-29 06:09.

This method also worked for me for VmWare Server 1.0.10-203137 on Debian 5.0 32-bit.

Thank you very much for mentioning it, I was just about to give up!

Submitted by Christian (not registered) on Tue, 2010-02-09 22:46.

  Bonjour à tous,

Sur mon upgrade Debian Etch (4.01) -> Lenny ( 5.03 ), la version vmware-any-any-update117c.tar.gz présentée ici ne fonctionne pas. J'ai du retrouver la version originale vmware-any-any-update117-itpsycho.tar.bz2 présente sur le site:

http://www.it-psycho.de/2008/07/27/vmware-server-106-mit-kernel-2626/

Merci aussi à Laurent Besson & sa procédure d'install ( en français ) sur son site:

http://monblog.system-linux.net/blog/2009/05/11/installation-de-vmware-serveur-version-109-sur-une-debian-lenny/534/#comment-2186

J'ai notamment pu retrouver mon astuce pour compiler ce patche avec un compilo gcc-4.1 compatible avec le noyau. Si qq'un a une manière plus "propre" de faire la même chose, qu'il n'hésite pas à rajouter un commentaire, je suis preneur.

Cordialement à tous,

Christian

Submitted by Anonymous (not registered) on Fri, 2009-09-11 10:41.
This howto does not work. The drivers compiles, but starting a VMware instance ist not possible.
Submitted by Anonymous (not registered) on Thu, 2009-04-16 11:40.

same problem here trying to start an existing machine.

 

also, beware vmware 2, it really sucks and has a lot of overhead, full ack! if the server console dont come back ill switch to kvm or qemu instead.

Submitted by Wirasto S. Karim (not registered) on Mon, 2009-03-30 08:59.

Are you sure this works correctly? When I try to create a new virtual machine and run it, I get the message

"Unable to change virtual machine power state: The process exited with an error:
End of error message."

Submitted by Anonymous (not registered) on Mon, 2009-03-30 17:25.

yes, same problem..

Any fix..:??

Submitted by seraphyn (registered user) on Mon, 2009-03-23 20:22.

The new one with tomcat for the Webmanagementsoftware sucks absolutly.

Thanks falko for pointing this out, errrm, thanks for helping other ones to use the better and leaner one.

Greetings