How To Install VMware Server 2 On Ubuntu 8.10

Want to support HowtoForge? Become a subscriber!
 
Submitted by falko (Contact Author) (Forums) on Mon, 2008-11-24 18:04. :: Ubuntu | VMware | Desktop | Virtualization

How To Install VMware Server 2 On Ubuntu 8.10

Version 1.0
Author: Falko Timme <ft [at] falkotimme [dot] com>
Last edited 11/01/2008

This tutorial provides step-by-step instructions on how to install VMware Server 2 on an Ubuntu 8.10 desktop system. 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 Ubuntu 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 want to say first that this is not the only way of setting up such a system. There are many ways of achieving this goal but this is the way I take. I do not issue any guarantee that this will work for you!

 

1 Preliminary Note

I'm using the user name falko with the home directory /home/falko here - please adjust this appropriately.

 

2 VMware Server

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

To download VMware Server, go to http://www.vmware.com/products/server/ and click on Download Now:

On the next page, log in with your existing VMware account or create a new one:

Follow the on-screen instructions. At the end, you should receive an email with a link to your download page. On the download page, you should see two license numbers, one for Windows and one for Linux. Write down or save the one for Linux and scroll down.

Then download the VMware Server for Linux TAR image (not the RPM image!) to your desktop (e.g. to /home/falko/Desktop):

Then open a terminal (Applications > Accessories > Terminal) and run the following command to install some necessary packages:

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

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
sudo ./vmware-install.pl

The installer will ask you a lot of questions. You can always 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/

If you have accepted all default values during the installation, root is now the VMware Server login name. On Ubuntu, root has no password by default, therefore we create a password now:

sudo passwd root

VMware Server 2 does not have a desktop application for managing virtual machines - this is now done through a browser (e.g. Firefox). You can access the management interface over HTTPS (https://<IP ADDRESS>:8333) or HTTP (http://<IP ADDRESS>:8222); the management interface can be accessed locally and also remotely. If you want to access it from the same machine, type https://127.0.0.1:8333 or http://127.0.0.1:8222 into the browser's address bar.

If you're using Firefox 3 and use HTTPS, Firefox will complain about the self-signed certificate, therefore you must tell Firefox to accept the certificate - to do this, click on the Or you can add an exception... link:

Click on Add Exception...:

The Add Security Exception window opens. In that window, click on the Get Certificate button first and then on the Confirm Security Exception button:

Afterwards, you will see the VMware Server login form. Type in root and the password you've just created:

This is how the VMware Server web interface looks. The structure is similar to the old VMware Server 1 desktop application, so the usage of the web interface is pretty straightforward.

 

3 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 Thu, 2009-09-24 22:16.

Congratulations,

excelent tutorial. Everything goes perfect without changing any setting from tutorial.

While google persist, this tutorial will help many users.

I'm using ubuntu 9.04 Desktop 64bits.

 

:-)

Submitted by gab (not registered) on Wed, 2009-08-19 04:21.

Please help I get the following error after following the steps:

An incompatible VMware product is already installed on this machine.  You must
uninstall it by running vmware-uninstall.
 

Submitted by Crovegno (not registered) on Mon, 2009-05-18 06:00.
Thank you, very much!
Submitted by Anonymous (not registered) on Wed, 2009-04-29 01:10.

Kudos to Mr. Falko for writing such a detailed document. It is truly step-by-step.

Outstanding.

Regards,

Danesh Forouhari

Submitted by dominoconsultant (not registered) on Fri, 2009-02-20 02:02.
I had to add an explicit exception for 127.0.0.1 for my proxy setting to be able to get to the web interface.
Submitted by yhuda (not registered) on Thu, 2009-05-07 19:09.
Had a problem login to the web interface. Just got a blank page. It was solved after changing the proxy settings in my Firefox. Thanks!
Submitted by michel (not registered) on Fri, 2009-05-15 14:03.

Thanks !

I had the same issue, blank page.

Maybe also this is because I did not change the default user name proposed by the installer (it proposed me a blanck user name as well).

 

Firefox was set to use the system proxy - which I don't have - so Iǘe put into auto discovery mode and now I have the login window, !!

 

Now I have to find a way to authenticate...

Submitted by Erik (not registered) on Sun, 2009-02-15 21:52.

thanks for the tutorial. two short notes:

1. it works without xinetd for me

2. it worked on 8.10 without the patch mentioned in the comments

Submitted by Carlos (not registered) on Wed, 2009-03-25 10:14.

I Can't get the file to load.. Does any one know What I'm Doing Wrong...  I ran the code in the  termail off the  listed in the page, but only got errors saying couldn't find pakage..

Can Any offer any advise for me?? I'm Trying to run VMware on Xubuntu 8.10  on the PS3

Submitted by RogerT (not registered) on Thu, 2009-02-05 16:40.
Thanks so much!  I'd installed VMware 2.0 on the Fedora Core using an RPM, so was reasonably familiar with the concepts, but having this step-by-step made my transition to Ubuntu much easier.
Submitted by Daniel (not registered) on Wed, 2009-02-04 09:05.

Thx a lot for posting this helpful tutorial!

Saved precious time - hope i get it running :)

 

great work!

peace, daniel

Submitted by Chuck (not registered) on Mon, 2009-01-19 03:34.

Worked like a charm!

Wow, did that save a lot of time. Thank you for posting this.

Submitted by Anonymous (not registered) on Sun, 2009-02-01 17:39.

Thanks you man....you are GOD...this was really what i need..:-)

Cheers

 

Submitted by bubuzzz (not registered) on Fri, 2008-12-26 10:20.
I already installed it successfully, but i didn't like it very much. So i decide to go back to virtualbox. How can i uninstall vmware from my system ?
Submitted by Xoff (not registered) on Thu, 2008-12-25 03:05.

This was very helpful for a new user to linux, I tryed to do this with vmware 1.2 but didnt work. Thanks a million for this post, worked great!!!

 

Oh and Merry Christoff

Submitted by Anonymous (not registered) on Wed, 2008-12-17 21:54.
Very helpful for a Linux Beginner. Thanks
Submitted by Fr33th0t (not registered) on Sat, 2008-12-06 23:33.

I am on Intrepid and can confirm Balboa's patch is needed.  Also if you are installing the guest from an ISO, start the guest and use the cdrom icon on the bottom right of the console window to disconnect from the cd drive and then to connect to the "client" and point to the ISO.  On boot you may have to hit enter after the PXE boot fails in order to boot to the ISO.   I've read that you can change the boot point in the BIOS, but my keyboard is mismapped in the bios so I was not able to.

 There is no prompt to boot from the cd.  I just hit enter and it started.

Submitted by smaglio81 (not registered) on Tue, 2009-02-17 07:39.
Thank you for describing how to load an ISO image into the CD Rom drive. That seemed very unintuitive.
Submitted by balboa41 (not registered) on Wed, 2008-12-03 18:21.

I followed this guide and it works well for Ubuntu 8.04.  But, installing on 8.10 (Intrepid Ibex), you get a problem when installing the VSOCK module.  I could solve it at the Ubuntu Forums.  Anyway, do a Google search at:

vmware-config.pl.patch.txt

That is the patch, after installing VMware, then do:

sudo patch /usr/bin/vmware-config.pl /path/to/vmware-config.pl.patch

and then ru:

vmware-config.pl

After that, everything should install ok.

 

Submitted by louish (not registered) on Tue, 2009-02-24 18:53.
I run the patch and vmware server loads. But I get a blank page in firefox. I have added the exception, but still only get a blank webpage. I'm using https://127.0.0.1:8333 Anyone have any suggestions. TIA Louis
Submitted by Anonymous (not registered) on Thu, 2010-06-24 11:15.
plz use http://127.0.0.1:8222 it works with firefox
Submitted by Fred (not registered) on Wed, 2009-04-15 08:44.

I too had issue at first and getting a blank page when calling https://192.168.1.101:8333 from firefox 3.

then if I tried https://192.168.1.101:8333/ui/# (as that is what you get when using IE7) and then it all worked fine from firefox!

Submitted by blahjake (not registered) on Wed, 2009-05-13 15:18.
I had this problem as well but there was no fix from the client side. For me, I found that running '/etc/init.d/vmware stop' did not actually stop all the processes correctly and on starting the services back up there would be multiple webAccess processes that seem to interfere with each other. I fixed it by doing:

$ sudo /etc/init.d/vmware stop $ ps auwx | grep vmware # note the PIDs $ sudo kill <PIDs> $ sudo /etc/init.d/vmware start
After this client machine running Firefox was able to get the actual login screen rather than a blank page with Javascript errors.
Submitted by Anonymous (not registered) on Fri, 2009-05-22 11:50.

Same happened on my Ubuntu 8.10 x64/FF 3.0.10; to get the web interface to work I had to stop vmware, kill two rogue processes by hand, and then start vmware again.

 

Submitted by David C. Menges (not registered) on Wed, 2009-02-18 07:30.
I too got the vsock error and applied this patch to the letter, but it barfed:

Hunk #1 FAILED at 4121.
Hunk #2 FAILED at 4148.
Submitted by sarafan (not registered) on Thu, 2009-02-19 16:19.
You probably need to install the OS updates, or you may not have installed the headers.
Submitted by trlkly (not registered) on Mon, 2008-12-01 23:57.
While this guide is appreciated, it seems you could have simply put a link to your 8.04 guide.
Submitted by fmo (not registered) on Sat, 2008-11-29 09:34.

you don't need to specify "linux-headers" in the apt-get, build-essential automatically installs it.

Also if you have keyboard problems  installating Ubuntu as a VM you need to create ~/.vmware/config and add xkeymap.nokeycodeMap = TRUE inside the file. Save it, restart your browser and it should work fine, I had the problem installing Ubuntu JEOS Server on Vmware 2.

 I also confirm that setting a root password is unnecessary.

 Great tutorial, thanks for your work !

Submitted by Anonymous (not registered) on Wed, 2008-11-26 18:44.
If the setup tells you, that you do not have the killall binary - then install the package psmisc
Submitted by Redg (not registered) on Tue, 2008-11-25 10:35.
In newer versions of VMware Server 2 the installerscript asks for a root or superuser privileged user's username, the default is '' (at least in my Ubuntu install), so there is no need to create a root password and compromise the security.
Submitted by gjarboni (not registered) on Sat, 2009-01-17 05:35.

With the 2.6.27-10-server headers, VMware complains that the header version (2.6.27-7) doesn't match the running kernel. This can be fixed by editing /usr/src/linux-headers-2.6.27-10-server/include/linux so that it looks like this:


#define UTS_RELEASE "2.6.27-10-server"

Submitted by Anonymous (not registered) on Thu, 2009-02-12 20:30.

Sorry , as I see ,


Quote:

This can be fixed by editing /usr/src/linux-headers-2.6.27-10-server/include/linux so that it looks like this:

#define UTS_RELEASE "2.6.27-10-server"

 /usr/src/linux-headers-2.6.27-10-server/include/linux is a DIRECTORY, not a file.. Could you be please more precise, as I finfd myself in this trouble installing?. Thanks in advance.

 

Admin: I now this is not right place, just tries to be a correction, but anyway I would be very interested in this point. Of course edit if you think is fair; just let us know ;)

Submitted by Prometeo Lucifer (not registered) on Mon, 2008-11-24 19:34.

Por si os interesa tengo el manual de “Instalación de VMware Server 2 en Ubuntu 8.10 Intrepid Ibex”, es similar a este y aunque trae un detalle adicional.
http://www.elleonplateadodeojosrojos.es/blog/vmware-server-2

Hasta Siempre

Submitted by UbuntuBaby (not registered) on Mon, 2009-03-16 18:09.
thanks it worked!!