Aug 102008
 


VMware Server is a free virtualization product for Windows and Linux servers. VMware Server is a robust yet easy to use server virtualization product and is based on proven virtualization technology. VMware can run on any standard x86 hardware and can support 64-bit guest operating systems including Windows Linux and Sun Solaris. VMware server can support two-processor Virtual SMP, enabling a single virtual machine to span multiple physical processors.

The following procedure will take you through the process of install, configure, create and use virtual machines using VMware server.

The latest stable version of VMware Server 1.0.6 Build: 91981. You need to register and accept EULA with VMware to download the VMware server software and to obtain the activation key.

To register and download VMware server (RPM) , click here

Once registered, download as follows:

opensuse11:~ # wget http://download3.vmware.com/software/vmserver/VMware-server-1.0.6-91891.i386.rpm

Once downloaded, change directory to the path where you downloaded the file and install as follows:

opensuse11:~ # yast2 -i VMware-server-1.0.6-91891.i386.rpm

This should start YaST package manager and install VMware server for you.

To confirm the installation,

opensuse11:~ # rpm -qa | grep -i vmware
VMware-server-1.0.6-91891

Before starting the VMware server for the first time, we need to run the vmware-config.pl script to accept the EULA for VMware and then configure the required parameters for VMware as follows:

opensuse11:/home/saibaba/Desktop # /usr/bin/vmware-config.pl
Making sure services for VMware Server are stopped.

Stopping VMware services:
Virtual machine monitor                                             done

Configuring fallback GTK+ 2.4 libraries.

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

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

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

/usr/share/applications/vmware-server.desktop: warning: value “vmware-server.png” for key “Icon” in group “Desktop Entry” is an icon name with an extension, but there should be no extension as described in the Icon Theme Specification if the value is not an absolute path
/usr/share/applications/vmware-console-uri-handler.desktop: warning: value “vmware-server.png” for key “Icon” in group “Desktop Entry” is an icon name with an extension, but there should be no extension as described in the Icon Theme Specification if the value is not an absolute path
Trying to find a suitable vmmon module for your running kernel.

None of the pre-built vmmon modules for VMware Server is suitable for your
running kernel.  Do you want this program to try to build the vmmon module for
your system (you need to have a C compiler installed on your system)? [yes]

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

Your kernel was built with “gcc” version “4.3.1”, while you are trying to use
“/usr/bin/gcc” version “4.3”. This configuration is not recommended and VMware
Server may crash if you’ll continue. Please try to use exactly same compiler as
one used for building your kernel. Do you want to go with compiler
“/usr/bin/gcc” version “4.3” anyway? [no] yes

What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.25.11-0.1-default/build/include]

Extracting the sources of the vmmon module.

Building the vmmon module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmmon-only’
make -C /lib/modules/2.6.25.11-0.1-default/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.25.11-0.1-obj/x86_64/default’
make -C /usr/src/linux-2.6.25.11-0.1 O=/usr/src/linux-2.6.25.11-0.1-obj/x86_64/default/. modules
CC [M]  /tmp/vmware-config0/vmmon-only/linux/driver.o
CC [M]  /tmp/vmware-config0/vmmon-only/linux/hostif.o
CC [M]  /tmp/vmware-config0/vmmon-only/common/cpuid.o
CC [M]  /tmp/vmware-config0/vmmon-only/common/hash.o
CC [M]  /tmp/vmware-config0/vmmon-only/common/memtrack.o
CC [M]  /tmp/vmware-config0/vmmon-only/common/phystrack.o
CC [M]  /tmp/vmware-config0/vmmon-only/common/task.o
CC [M]  /tmp/vmware-config0/vmmon-only/common/vmx86.o
CC [M]  /tmp/vmware-config0/vmmon-only/vmcore/moduleloop.o
LD [M]  /tmp/vmware-config0/vmmon-only/vmmon.o
Building modules, stage 2.
MODPOST 1 modules
CC      /tmp/vmware-config0/vmmon-only/vmmon.mod.o
LD [M]  /tmp/vmware-config0/vmmon-only/vmmon.ko
make[1]: Leaving directory `/usr/src/linux-2.6.25.11-0.1-obj/x86_64/default’
cp -f vmmon.ko ./../vmmon.o
make: Leaving directory `/tmp/vmware-config0/vmmon-only’
The module loads perfectly in the running kernel.

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

Configuring a bridged network for vmnet0.

The following bridged networks have been defined:

All your ethernet interfaces are already bridged.

Do you want to be able to use NAT networking in your virtual machines? (yes/no)
[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 172.16.56.0/255.255.255.0 appears to be unused.

The following NAT networks have been defined:

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

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

Configuring a host-only network for vmnet1.

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 172.16.63.0/255.255.255.0 appears to be unused.

The following host-only networks have been defined:

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

Extracting the sources of the vmnet module.

Building the vmnet module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmnet-only’
make -C /lib/modules/2.6.25.11-0.1-default/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.25.11-0.1-obj/x86_64/default’
make -C /usr/src/linux-2.6.25.11-0.1 O=/usr/src/linux-2.6.25.11-0.1-obj/x86_64/default/. modules
CC [M]  /tmp/vmware-config0/vmnet-only/driver.o
CC [M]  /tmp/vmware-config0/vmnet-only/hub.o
CC [M]  /tmp/vmware-config0/vmnet-only/userif.o
CC [M]  /tmp/vmware-config0/vmnet-only/netif.o
CC [M]  /tmp/vmware-config0/vmnet-only/bridge.o
CC [M]  /tmp/vmware-config0/vmnet-only/procfs.o
CC [M]  /tmp/vmware-config0/vmnet-only/smac_compat.o
SHIPPED /tmp/vmware-config0/vmnet-only/smac_linux.x86_64.o
LD [M]  /tmp/vmware-config0/vmnet-only/vmnet.o
Building modules, stage 2.
MODPOST 1 modules
WARNING: could not find /tmp/vmware-config0/vmnet-only/.smac_linux.x86_64.o.cmd for /tmp/vmware-config0/vmnet-only/smac_linux.x86_64.o
CC      /tmp/vmware-config0/vmnet-only/vmnet.mod.o
LD [M]  /tmp/vmware-config0/vmnet-only/vmnet.ko
make[1]: Leaving directory `/usr/src/linux-2.6.25.11-0.1-obj/x86_64/default’
cp -f vmnet.ko ./../vmnet.o
make: Leaving directory `/tmp/vmware-config0/vmnet-only’
The module loads perfectly in the running kernel.

The default port : 902 is not free. We have selected a suitable alternative
port for VMware Server use. You may override this value now.
Remember to use this port when connecting to this server.
Please specify a port for remote console connections to use [904]

WARNING: VMware Server has been configured to run on a port different from the
default port. Remember to use this port when connecting to this server.
Shutting down xinetd:                                                 done
Starting INET services. (xinetd)                                      done
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]

The path “/var/lib/vmware/Virtual Machines” does not exist currently. This
program is going to create it, including needed parent directories. Is this
what you want? [yes]

Please enter your 20-character serial number.

Type XXXXX-XXXXX-XXXXX-XXXXX or ‘Enter’ to cancel:  XXXXX-XXXXX-XXXXX-XXXXX

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.6 build-91891 for Linux for this running
kernel completed successfully.

This should complete the installation process and add VMware server console menu item under

Applications – System – More Programs – VMware Server Console

VMware menu

Start VMware console from above or from command line as follows:

opensuse11:~ # vmware &

Select “Localhost” and click Connect.

vmware console login

VMware console

When you start VMWare console, most of the settings accepted during the conifguration can be altered. For instance, to change the Virtual Machines location from /var/lib/vmware/Virtual Machines to a new location say /home. Click “Edit host settings” and change from General tab.

Edit VMware settings

Create Virtual Machine

To create a new Virtual machine, click “Create a new virtual machine“. This starts a new Virtual Machine wizard to help you configure and add a Virtual Machine.

Virtual machine config type Virtual Machine wizard

Select “Typical” and click Next

Virtual Machine type Virtual machine Name and image location

Enter the name of the Virtual machine and set the location of the Virtual machine (if you wish to change from the default location, else accept the defaults shown)

Virtual machine Disk Size

Set the Disk Size and based on the disk space on your hard disk select or leave the option “Allocate all disk space now“. Enabling this allocates the set disk space as an Virtual Disk image file. This can improve performance once the VM is up and running however, this can cause delay in starting the Virtual Machine because of the file size. Not enabling creates a dynamic disk that grows as the guest operating system claims. I would recommended not enabling this feature. Once disk space is set, click Finish

To start the Virtual machine, select the Guest OS and click the play button. Here we are installing SUSE Linux 10 SP2 as aguest operating system. Once installed fully and when the guest OS is up and running, we can install the VMware Tools by clicking “Install VMware Tools” from console VM menu. Click here for more information on installing VMware Tools for guest OS.

Edit Virtual machine VMware running

To edit the Virtual machine and make changes like changin memory size, setting the Networking type (change from Bridged to NAT etc), select the Virtual machine and click “Edit Virtual machine settings”.

Virtual machine Network edit

64-bit Guest OS support

If you have a 64-bit hardware then you can run 64-bit guest operating systems. To verify download the Processor Check Utility for 64-Bit Compatibility utility from VMware and run to check if your hardware allows you to run 64-bit guest operating systems.

opensuse11~ # wget http://download3.vmware.com/software/wkst/VMware-guest64check-5.5.0-18463

opensuse11:~ # ./VMware-guest64check-5.5.0-18463
This host is capable of running a 64-bit guest operating system under this
VMware product.

Hope this helps with getting you up and running with VMWare virtualization software!