How To Install VMware Server On Ubuntu 6.06 LTS (Dapper Drake)

Want to support HowtoForge? Become a subscriber!
 
Submitted by till (Contact Author) (Forums) on Sun, 2006-07-16 09:01. :: Ubuntu | VMware | Virtualization

How To Install VMware Server On Ubuntu 6.06 LTS (Dapper Drake)

Version 1.1
Author: Till Brehm <t [dot] brehm [at] projektfarm [dot] de >
Last edited 08/18/2006

This tutorial provides step-by-step instructions on how to install the free VMware Server (version 1.0) on Ubuntu 6.06 LTS (Dapper Drake).

VMware has just released version 1.0 of its free VMware Server. 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). In this article we use Ubuntu 6.06 LTS (Dapper Drake) as the host operating system.

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 assume you have already set up a basic Ubuntu 6.06 system. It doesn't matter if you use Ubuntu's server or desktop version. If you use the server version, you can set up your system as described on the first three pages of this tutorial: The Perfect Setup - Ubuntu 6.06 LTS Server (Dapper Drake).

You should have a working root account (as the following steps have to be run as root) or run

sudo su

to get root priveliges and also a static IP address. In this tutorial I use the IP address 192.168.0.100.

If you have another computer available, install ssh-server and use a ssh client like putty to access the server remotely; copying and pasting the commands below is easier than typing them out.

apt-get install ssh openssh-server


2 Installing Required packages

Now we install the packages required by VMware on our Ubuntu system:

apt-get install libx11-6 libx11-dev libxtst6 xlibs-dev xinetd wget

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

apt-get install gcc binutils-doc cpp-doc make manpages-dev autoconf automake1.9 libtool flex bison gdb gcc-doc gcc-4.0-doc libc6-dev-amd64 lib64gcc1

and create the directory /var/vm where we want to install our virtual machines later. The virtual machines require much disk space, make sure you have enough free space on your /var partition for the virtual machines.:

mkdir /var/vm
cd /tmp

 

3 Getting VMware Server

The VMware server can be downloaded for free from the VMware website: http://www.vmware.com/download/server/
To run the VMware Server software you need a (free) serial number, that can be requested by clicking on the "Register now" button on the download page.

 

4 Downloading The Software

To setup VMWare Server on Ubuntu, we need the following packages from the VMware downloads page:

VMware Server for linux (Binary tar.gz)
Management Interface (Binary tar.gz)

To create new virtual machines, we need VMware server client package either for Windows if you want to create them from your Windows workstation or for Linux if you have a Linux workstation.

For downloading the software to your server, I recommend to use the linux commandline program wget. The wget syntax is as follows:

wget [URL of the file that shall be downloaded]

Unpacking the server tar.gz:

tar xvfz VMware-server-*.tar.gz

Running the installer script:

cd vmware-server-distrib
./vmware-install.pl

The installer asks you a few questions. Most of the time you can accept the default value:

Creating a new installer database using the tar3 format.

Installing the content of the package.

In which directory do you want to install the binary files?
[/usr/bin]
<-- /usr/bin

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc]
<-- /etc

What is the directory that contains the init scripts?
[/etc/init.d]
<-- /etc/init.d

In which directory do you want to install the daemon files?
[/usr/sbin]
<-- /usr/sbin

In which directory do you want to install the library files?
[/usr/lib/vmware]
<-- /usr/lib/vmware

The path "/usr/lib/vmware" does not exist currently. This program is going to
create it, including needed parent directories. Is this what you want? [yes]
<-- yes

In which directory do you want to install the manual files?
[/usr/share/man]
<-- /usr/share/man

In which directory do you want to install the documentation files?
[/usr/share/doc/vmware]
<-- /usr/share/doc/vmware

The path "/usr/share/doc/vmware" does not exist currently. This program is going
to create it, including needed parent directories. Is this what you want?
[yes]
<-- yes

The installation of VMware Server 1.0.0 build-28343 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall.pl".

Before running VMware Server for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config.pl". Do you want this
program to invoke the command for you now? [yes]
<-- yes

Making sure services for VMware Server are stopped.

Stopping VMware services:
Virtual machine monitor done

You must read and accept the End User License Agreement to continue.
Press enter to display it.


..... snip [LICENCE TEXT] ......


Do you accept? (yes/no)
<-- yes
Thank you.

Configuring fallback GTK+ 2.4 libraries.

In which directory do you want to install the mime type icons?
[/usr/share/icons]
<-- /usr/share/icons

The path "/usr/share/icons" does not exist currently. This program is going to
create it, including needed parent directories. Is this what you want? [yes]
<-- yes

What directory contains your desktop menu entry files? These files have a
.desktop file extension. [/usr/share/applications]
<-- /usr/share/applications

The path "/usr/share/applications" does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes]
<-- yes

In which directory do you want to install the application's icon?
[/usr/share/pixmaps]
<-- /usr/share/pixmaps

Trying to find a suitable vmmon module for your running kernel.

The module bld-2.6.15-23-i386server-Ubuntu6.06 loads perfectly in the running
kernel.

Do you want networking for your virtual machines? (yes/no/help) [yes] <-- yes

Configuring a bridged network for vmnet0.

The following bridged networks have been defined:

. vmnet0 is bridged to eth0

All your ethernet interfaces are already bridged.

Do you want to be able to use NAT networking in your virtual machines? (yes/no)
[yes]
<-- yes

Configuring a NAT network for vmnet8.

Do you want this program to probe for an unused private subnet? (yes/no/help) <-- yes
Probing for an unused private subnet (this can take some time)...

The subnet 192.168.246.0/255.255.255.0 appears to be unused.

The following NAT networks have been defined:

. vmnet8 is a NAT network on private subnet 192.168.246.0.

Do you wish to configure another NAT network? (yes/no) [no] <-- no

Do you want to be able to use host-only networking in your virtual machines?
[yes]
<-- yes

Configuring a host-only network for vmnet1.

Do you want this program to probe for an unused private subnet? (yes/no/help)
[yes]
<-- yes

Probing for an unused private subnet (this can take some time)...

The subnet 172.16.37.0/255.255.255.0 appears to be unused.

The following host-only networks have been defined:

. vmnet1 is a host-only network on private subnet 172.16.37.0.

Do you wish to configure another host-only network? (yes/no) [no] <-- no

Trying to find a suitable vmnet module for your running kernel.

The module bld-2.6.15-23-i386server-Ubuntu6.06 loads perfectly in the running
kernel.

Please specify a port for remote console connections to use [902] <-- 902

Stopping internet superserver: xinetd.
Starting internet superserver: xinetd.
Configuring the VMware VmPerl Scripting API.

Building the VMware VmPerl Scripting API.

Using compiler "/usr/bin/gcc". Use environment variable CC to override.

Installing the VMware VmPerl Scripting API.

The installation of the VMware VmPerl Scripting API succeeded.

Generating SSL Server Certificate

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

Please enter your 20-character serial number.

Type XXXXX-XXXXX-XXXXX-XXXXX or 'Enter' to cancel: <-- your VMware Server serial number

Starting VMware services:
Virtual machine monitor done
Virtual ethernet done
Bridged networking on /dev/vmnet0 done
Host-only networking on /dev/vmnet1 (background) done
Host-only networking on /dev/vmnet8 (background) done
NAT service on /dev/vmnet8 done

The configuration of VMware Server 1.0.0 build-28343 for Linux for this running
kernel completed successfully.


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 stevel (registered user) on Tue, 2006-11-07 16:00.

one useful extra trick is to know that the latest VMWare can crawl when talking to an SMB localhost server, due to quirks in the intel gigabit ethernet card.

If SMB network access from a windows VM image is really slow going to the filestore in the hosting OS, see  http://forums.fedoraforum.org/forum/showthread.php?t=105185 to see what options to fix. For ubuntu 6.0.6, I added the following to /etc/modprobe.d/options

options eth0 hwmode=2
options eth0 mtu=1492
options eth0 seg_offload=0

Things are better now.  

 

Submitted by stateless (registered user) on Thu, 2006-09-14 12:34.

You might need to also to: apt-get install ia32-libs

Submitted by rainer (registered user) on Mon, 2007-02-05 14:20.
yeah, you definitly need lib32-libs if using a 64bit system
Submitted by Anonymous (not registered) on Thu, 2006-08-17 21:39.

First off thanks to all!!

I was having issues with a blank console screen after winscp'ing premade images up to my server. After some searching here was my solution.

Make sure the permissions on the *.vmx are set to 0755

That worked for and all my premade VM Workstation 5 virtual machines.

 

Ryan 

Submitted by Anonymous (not registered) on Wed, 2006-08-16 17:17.

This guide has been very helpfull.

Thanx a lot 

Submitted by Anonymous (not registered) on Fri, 2006-07-28 21:36.

a problem i had was that the mui would not start after a reboot of the host.

The httpd deamon has difficulties to write to /var/run/vmware/ and could not create the httpd directory.

 solution from the forums of vmware:

add this at the end of /etc/init.d/rc

 # vmware httpd fix <<start>>

mkdir /var/run/vmware/httpd/
chown www-data /var/run/vmware/httpd
chgrp nogroup /var/run/vmware/httpd
chmod 700 /var/run/vmware/httpd
/etc/init.d/httpd.vmware start


# vmware httpd fix <<end>>

Submitted by floobit (registered user) on Fri, 2006-07-21 14:15.

    I also wanted to install latest vmware server. This is the few steps i did to get a binary install in ubuntu, that works perfect (as far as i know). This setup has been tested with 2 different hardware setups so far, one kubuntu 6.06 and one ubuntu 6.06.

1. Head over to http://www.vmware.com/download/server/ and grab the latest binary rpm (yes you read right, get the rpm archive) 

2. install "alien" (able to convert .rpm to .deb)

sudo apt-get install alien

3. Go to the directory where you downloaded the rpm file and convert it to a .deb-package.

sudo alien --scripts <filename.rpm> 

4. install the newly created deb-package

sudo dpkg -i <filename.deb> 

5. Configure vmware as usual by running vmware-config.pl

sudo vmware-config.pl 

(if you have troubles with the script e.g the kernel header files try one of the following steps)

6.1 If you have a precompiled default kernel (like most people)

just install the linux-header for the current kernel, and run the script again.

sudo apt-get install linux-headers-`uname -r`

-> run vmware-config.pl again

6.2 If you have compiled your own kernel (like i had), you could get it working by editing version.h, as described in the forums...

become root and fix vmware-config.pl errors

sudo su 

echo "#define UTS_RELEASE \"`uname -r`\"" >> /usr/src/linux/include/linux/version.h 

(if you prefer to do this manually instead, just take the string that

echo "#define UTS_RELEASE \"`uname -r`\""

and paste it in /usr/src/linux/include/linux/version.h

 

7. Finished. enjoy a good install with start stop scripts. Vmware server console shortcuts is installed in gnome/kde application menu.

Any errors or problems please report! 

Submitted by Anonymous (not registered) on Wed, 2006-07-19 09:12.

I've been having problems getting VMware server to work, it just won't start the virtual machine. With no error message as well - so I was left with no clue.

Thanks to this guide, now I've got VMware server running happily in my little Ubuntu 6 box :)

 btw; if you have installed VMware server and failed, then succeeded in installing it after reading this guide (like me), the virtual machine which already made may still won't work.
Not a problem, just delete it, and create a new one - voila, virtual machines on your Ubuntu.

 Thanks again, this is very appreciated.

 

Submitted by Anonymous (not registered) on Mon, 2006-07-17 20:30.
1) In the case you use updated Ubuntu, you have to build your own kernel. In your example you probably used original kernel shiped with Ubuntu that is out od date now

2) What about "serial number?" I thought that VMware server is free and no serial number is needed. Your howto has notice "enter seral number". Where to get one?? Is it needed?

3) do you know about "sudo -i"? It is recomanded by Ubuntu user guide to switch to root account. Is something wrong witth this command? Why do you use something else?

 

Submitted by admin (registered user) on Tue, 2006-07-18 15:12.

> 1) In the case you use updated Ubuntu, you have to build your own kernel.
> In your example you probably used original kernel shiped with Ubuntu that
> is out od date now.

The Ubuntu in the howto is up to date.

You never have to build your own kernel for vmware. If you use another kernel, then the VMWare installer compiles a loadable kernel module, you only have to install the correct kernel headers for your kernel.

> 2) What about "serial number?" I thought that VMware server is free and no
> serial number is needed. Your howto has notice "enter seral number".
> Where to get one?? Is it needed?

Please read the howto, it is described in step 3. 

> 3) do you know about "sudo -i"? It is recomanded by Ubuntu user guide
> to switch to root account. Is something wrong witth this command?
> Why do you use something else?

Seem syou didnt install or use vmware yet, otherwise you would know that you need
the root login to be enabled to login with the vmware console.
 

Submitted by Anonymous (not registered) on Mon, 2006-07-17 16:07.

This is a very good demo, however it lacks in the fact that most, if not all, ubuntu users are now using the 686 2.6.15-26 kernel.

 Since the VMWare installation doesn't have a module for  kernels above 2.6.15.23 i386, you need to install the C headers, if you haven't already, and allow the installation to build a module for your kernel. 

To do this run this command:

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

 it installs the headers for your current kernel along with compilers. 

Then just let the installation build a module for your kernel, if you need more info go to this link

http://www.ubuntuforums.org/showthread.php?t=183209

-Jeb 

Submitted by admin (registered user) on Tue, 2006-07-18 15:15.

The howto uses the default ubuntu kernel on a completely updated ubuntu system.

Submitted by Anonymous (not registered) on Fri, 2006-07-28 05:59.

I installed 6.06 desktop and then did an update two days ago
(26-Jul-2006) and I am now running 2.16.15-26-386.  I had to
install the kernel headers as the grandparent post mentioned.Other than that, this howto saved me lots of time.  THANKS!