Wednesday, February 13, 2008

Installing VMWare Workstation on Linux


My environment: RH Fedora Core 8, 2.6.23.15-137.fc8, 32-bit

Before installing, make sure you have the kernel-headers and kernel-devel rpm installed. You'll need the kernel header files during the installation process.

1. To install VMWare workstation on Linux, the very first step is to download the VMWare rpm file from the vmware website:

http://www.vmware.com

2. After download the rpm, install it:

rpm -Uvh Vmware-workstation-6.0.2-59824.i386.rpm

3. Just one step to go, run the configuration perl script:

vmware-config.pl

Here is the output from my Linux box, paste it here for your reference:

Configuring fallback GTK+ 2.4 libraries.

In which directory do you want to install the theme 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]

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

None of the pre-built vmmon modules for VMware Workstation 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.

What is the location of the directory of C header files that match your running

kernel? [/lib/modules/2.6.23.15-137.fc8/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.23.15-137.fc8/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules

make[1]: Entering directory `/usr/src/kernels/2.6.23.15-137.fc8-i686'

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/comport.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/vmciContext.o

CC [M] /tmp/vmware-config0/vmmon-only/common/vmciDatagram.o

CC [M] /tmp/vmware-config0/vmmon-only/common/vmciDriver.o

CC [M] /tmp/vmware-config0/vmmon-only/common/vmciDs.o

CC [M] /tmp/vmware-config0/vmmon-only/common/vmciGroup.o

CC [M] /tmp/vmware-config0/vmmon-only/common/vmciHashtable.o

CC [M] /tmp/vmware-config0/vmmon-only/common/vmciProcess.o

CC [M] /tmp/vmware-config0/vmmon-only/common/vmciResource.o

CC [M] /tmp/vmware-config0/vmmon-only/common/vmciSharedMem.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/kernels/2.6.23.15-137.fc8-i686'

cp -f vmmon.ko ./../vmmon.o

make: Leaving directory `/tmp/vmware-config0/vmmon-only'

The module loads perfectly in the running kernel.

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

None of the pre-built vmblock modules for VMware Workstation is suitable for

your running kernel. Do you want this program to try to build the vmblock

module for your system (you need to have a C compiler installed on your

system)? [yes]


Extracting the sources of the vmblock module.

Building the vmblock module.

Using 2.6.x kernel build system.

make: Entering directory `/tmp/vmware-config0/vmblock-only'

make -C /lib/modules/2.6.23.15-137.fc8/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules

make[1]: Entering directory `/usr/src/kernels/2.6.23.15-137.fc8-i686'

CC [M] /tmp/vmware-config0/vmblock-only/linux/block.o

CC [M] /tmp/vmware-config0/vmblock-only/linux/control.o

CC [M] /tmp/vmware-config0/vmblock-only/linux/dbllnklst.o

CC [M] /tmp/vmware-config0/vmblock-only/linux/dentry.o

CC [M] /tmp/vmware-config0/vmblock-only/linux/file.o

CC [M] /tmp/vmware-config0/vmblock-only/linux/filesystem.o

CC [M] /tmp/vmware-config0/vmblock-only/linux/inode.o

CC [M] /tmp/vmware-config0/vmblock-only/linux/module.o

CC [M] /tmp/vmware-config0/vmblock-only/linux/stubs.o

CC [M] /tmp/vmware-config0/vmblock-only/linux/super.o

LD [M] /tmp/vmware-config0/vmblock-only/vmblock.o

Building modules, stage 2.

MODPOST 1 modules

CC /tmp/vmware-config0/vmblock-only/vmblock.mod.o

LD [M] /tmp/vmware-config0/vmblock-only/vmblock.ko

make[1]: Leaving directory `/usr/src/kernels/2.6.23.15-137.fc8-i686'

cp -f vmblock.ko ./../vmblock.o

make: Leaving directory `/tmp/vmware-config0/vmblock-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.

Your computer has multiple ethernet network interfaces available: eth0, eth1.

Which one do you want to bridge to vmnet0? [eth0] eth1

The following bridged networks have been defined:

. vmnet0 is bridged to eth1

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

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 192.168.181.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.181.0.

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.245.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.245.0.

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

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

None of the pre-built vmnet modules for VMware Workstation is suitable for your

running kernel. Do you want this program to try to build the vmnet module for

your system (you need to have a C compiler installed on your system)? [yes]

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.23.15-137.fc8/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules

make[1]: Entering directory `/usr/src/kernels/2.6.23.15-137.fc8-i686'

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/filter.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.x386.o

LD [M] /tmp/vmware-config0/vmnet-only/vmnet.o

Building modules, stage 2.

MODPOST 1 modules

CC /tmp/vmware-config0/vmnet-only/vmnet.mod.o

LD [M] /tmp/vmware-config0/vmnet-only/vmnet.ko

make[1]: Leaving directory `/usr/src/kernels/2.6.23.15-137.fc8-i686'

cp -f vmnet.ko ./../vmnet.o

make: Leaving directory `/tmp/vmware-config0/vmnet-only'

The module loads perfectly in the running kernel.

Do you want to install the Eclipse Integrated Virtual Debugger? You must have

the Eclipse IDE installed. [no]

Creating a new VMware VIX API installer database using the tar4 format.

Installing VMware VIX API.

You must read and accept the VMware VIX API End User License Agreement to

continue.

Press enter to display it.



Do you accept? (yes/no) yes

Thank you.

In which directory do you want to install the VMware VIX API binary files?

[/usr/bin]

In which directory do you want to install the VMware VIX API library files?

[/usr/lib/vmware-vix/lib]

The path "/usr/lib/vmware-vix/lib" does not exist currently. This program is

going to create it, including needed parent directories. Is this what you want?

[yes]

In which directory do you want to install the VMware VIX API document pages?

[/usr/share/doc/vmware-vix]

The path "/usr/share/doc/vmware-vix" does not exist currently. This program is

going to create it, including needed parent directories. Is this what you want?

[yes]

The installation of VMware VIX API 1.1.2 build-59824 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-vix.pl".

Starting VMware services:

Virtual machine monitor [ 確定 ]

Blocking file system: [ 確定 ]

Virtual ethernet [ 確定 ]

Bridged networking on /dev/vmnet0 [ 確定 ]

Host network detection [ 確定 ]

Host-only networking on /dev/vmnet1 (background) [ 確定 ]

DHCP server on /dev/vmnet1 [ 確定 ]

Host-only networking on /dev/vmnet8 (background) [ 確定 ]

DHCP server on /dev/vmnet8 [ 確定 ]

NAT service on /dev/vmnet8 [ 確定 ]

The configuration of VMware Workstation 6.0.2 build-59824 for Linux for this

running kernel completed successfully.

You can now run VMware Workstation by invoking the following command:

"/usr/bin/vmware".

No comments: