Cheap VPS & Xen Server

Residential Proxy Network - Hourly & Monthly Packages

How To Install VMware Server 2 On Ubuntu 10.10 (Kernel 2.6.35)


This tutorial provides step-by-step instructions on how to install VMware Server 2 on an Ubuntu 10.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.Kreationnext.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.Kreationnext.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:

1

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

2

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.

3

Then download the VMware Server 2 for Linux .gz image (not the .rpm image!) to your computer (e.g. to /home/falko/Downloads) – I used the Manually Download link instead of the Start Download Manager button. Make sure you pick the right one for your architecture (32-bit or 64-bit):

4

5

6

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/Downloads (replace falko with your own username!):

cd /home/falko/Downloads

Take a look at the contents of the directory:

ls -l

falko@falko-virtual-machine:~/Downloads$ ls -l
total 463304
-rw-r–r– 1 falko falko 474415801 2010-12-17 13:56 VMware-server-2.0.2-203138.x86_64.tar.gz
falko@falko-virtual-machine:~/Downloads$

Because the original VMware installer doesn’t work for kernel 2.6.35, we have to download a script from http://radu.cotescu.com/how-to-install-vmware-server-ubuntu-fedora-opensuse/ that helps us to install VMware Server 2:

wget –no-check-certificate http://codebin.cotescu.com/vmware/vmware-server-2.0.x-kernel-2.6.3x-install.sh

Take a look at the directory again:

ls -l

You should now see a vmware-server-2.0.x-kernel-2.6.3x-install.sh file (which in fact is no shell script, but a .tar.gz file – despite the .sh extension):

falko@falko-virtual-machine:~/Downloads$ ls -l
total 463316
-rw-r–r– 1 falko falko 474415801 2010-12-17 13:56 VMware-server-2.0.2-203138.x86_64.tar.gz
-rw-r–r– 1 falko falko      8696 2010-12-17 13:48 vmware-server-2.0.x-kernel-2.6.3x-install.sh
falko@falko-virtual-machine:~/Downloads$

Unpack that file:

tar xvfz vmware-server-2.0.x-kernel-2.6.3x-install.sh

This should create a raducotescu-vmware-server-linux-* directory:

ls -l

falko@falko-virtual-machine:~/Downloads$ ls -l
total 463320
drwxr-xr-x 2 falko falko      4096 2010-11-14 22:24 raducotescu-vmware-server-linux-2.6.3x-kernel-71f8b66
-rw-r–r– 1 falko falko 474415801 2010-12-17 13:56 VMware-server-2.0.2-203138.x86_64.tar.gz
-rw-r–r– 1 falko falko      8696 2010-12-17 13:48 vmware-server-2.0.x-kernel-2.6.3x-install.sh
falko@falko-virtual-machine:~/Downloads$

Move the VMware-server-* file to that directory and change to that directory:

mv VMware-server-2.0.2-203138.x86_64.tar.gz raducotescu-vmware-server-linux-2.6.3x-kernel-71f8b66/
cd raducotescu-vmware-server-linux-2.6.3x-kernel-71f8b66

Take a look at its contents:

ls -l

falko@falko-virtual-machine:~/Downloads/raducotescu-vmware-server-linux-2.6.3x-kernel-71f8b66$ ls -l
total 463348
-rw-r–r– 1 falko falko      1321 2010-11-14 22:24 LICENSE
-rw-r–r– 1 falko falko      1980 2010-11-14 22:24 README
-rwxr-xr-x 1 falko falko       702 2010-11-14 22:24 start-VMware-console.sh
-rw-r–r– 1 falko falko      1111 2010-11-14 22:24 vmware-config.patch
-rw-r–r– 1 falko falko     13618 2010-11-14 22:24 vmware-server-2.0.2-203138-update.patch
-rw-r–r– 1 falko falko 474415801 2010-12-17 13:56 VMware-server-2.0.2-203138.x86_64.tar.gz
-rwxr-xr-x 1 falko falko     11095 2010-11-14 22:24 vmware-server-2.0.x-kernel-2.6.3x-install.sh
falko@falko-virtual-machine:~/Downloads/raducotescu-vmware-server-linux-2.6.3x-kernel-71f8b66$

The vmware-server-2.0.x-kernel-2.6.3x-install.sh script is the script that we need to execute (with root permissions) to install VMware Server 2 – it scans the current directory for the VMware-server-*.tar.gz file:

sudo ./vmware-server-2.0.x-kernel-2.6.3x-install.sh

The installer will ask you a lot of questions. You can always accept the default values simply by hitting <ENTER>, except for the following two questions:

The current administrative user for VMware Server is ”. Would you like to
specify a different administrator? [no]
<– yes

Please specify the user whom you wish to be the VMware Server administrator
<– falko (use the user name of the account that you used to log into the desktop)

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/Downloads
rm -fr raducotescu-vmware-server-linux-2.6.3x-kernel-*
rm -f vmware-server-2.0.x-kernel-2.6.3x-install.sh

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.

The https interface (https://127.0.0.1:8333) did not load for me, so I used http://127.0.0.1:8222 instead.

You will see the VMware Server login form. Type in the VMware Server administrator username (the one you specified during the VMware installation) and the password of that user (it is the same that you use to log into the desktop):

10

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.

11

  • Ubuntu: http://www.ubuntu.com/
  • VMware Server: http://www.vmware.com/products/server/
  • Script to install VMware Server 2: http://radu.cotescu.com/how-to-install-vmware-server-ubuntu-fedora-opensuse/

 

Comments

comments