¿Cómo instalo VMWARE en Linux?

Instalación de VMWARE en GuadaLinex
Para impacientes:

Versión descargada de VMWARE: VMware-workstation-4.5.2-8848.tgz
Se obtiene de www.vmware.com
Se descomprime el tgz y se siguen las instrucciones en pantalla, llegando a recompilar sin problemas vmmon.o (ver copia de la salida que la instalación nos da por pantalla más abajo)

MUY IMPORTANTE:

NO me ha funcionado con el kernel 2.4 de mi anterior Guadalinex. Para ver la versión del kernel, basta con escribir en una consola:
$ uname -a
Linux einstein.physics.local 2.6.8 #1 SMP Fri Aug 27 09:39:31 CEST 2004 i686 GNU/Linux

Vemos en la salida anterior que la versión del kernel es la 2.6.8

Me ha funcionado con la versión 2.6.8 y con la 2.6.0. Por inducción supongo que cualquier versión de la rama 2.6 funciona. Pero hay que instalar el paquete con los fuentes.

Instalación con la 2.6.0:

Para ello, hemos instalado kernel 2.6.0 (paquete kernel-source-2.6.0). No ha sido preciso instalar los kernel-headers-2.6.0

La carpeta del arbol de fuentes del kernel que se nos pide en la instalación es /usr/src/kernel-source-2.6.0

Una vez instalado VMWare hay que introducirle un código de registro. Se pueden solicitar registrándote en la página de VMWare y duran un mes (para evaluación).

La instalación creará un nuevo “servicio” /etc/init.d/vmware que nos permite arrancar y parar los módulos necesarios para que funcione VMWARE.

Una vez funcionando, podemos copiar una Máquina Virtual que tengamos instalada en XP y funcionará a la perfección en Linux.
La salida de la instalación es:
einstein:~/vmware-distrib# ./vmware-install.pl
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]

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

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

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

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

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

The installation of VMware Workstation 4.5.2 build-8848 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 Workstation for the first time, you need to configure it
by invoking the following command: “/usr/bin/vmware-config.pl”. Do you want thisprogram to invoke the command for you now? [yes]

Making sure services for VMware Workstation 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.

END USER LICENSE AGREEMENT
FOR VMWARE (R) DESKTOP SOFTWARE PRODUCT
March 4, 2004

VMWARE, INC. LICENSES THIS DESKTOP SOFTWARE PRODUCT TO YOU SUBJECT
TO THE TERMS CONTAINED IN THIS END USER LICENSE AGREEMENT
(“EULA”). READ THE TERMS OF THIS EULA CAREFULLY. BY INSTALLING,
COPYING OR OTHERWISE USING THE SOFTWARE (AS DEFINED BELOW), YOU
AGREE TO BE BOUND BY THE TERMS OF THIS EULA. IF YOU DO NOT AGREE
WITH THE TERMS OF THIS EULA, DO NOT INSTALL, COPY OR USE THE
SOFTWARE AND IF YOU HAVE PROOF OF PAYMENT, YOU MAY RETURN THE
UNOPENED SOFTWARE TO THE LOCATION AT WHICH YOU ACQUIRED IT WITHIN
THIRTY (30) DAYS FOR A REFUND OF THE LICENSE FEE.

NOTICE TO CUSTOMER
This EULA is a contract between you (either an individual or an
entity) and VMware, Inc. (“VMware”), which governs your use of the
VMware software product that accompanies this EULA and related
software components, which may include associated media, printed
materials, and online or electronic documentation. This VMware
software product is designed for installation and use on a
personal computer only. You may not install or use this VMware
software product on a server.

DEFINITIONS
This Desktop software package includes a Desktop software product
(the “VMware Desktop Software”) and Open Source Software
components. In this EULA, the VMware Desktop Software and
associated media, printed materials, and online or electronic
documentation are collectively referred to as the “Software.” The
VMware Desktop Software enables you to run one or more instances
of third-party operating systems (“Guest Operating Systems”) and
applications on a single personal computer. A serial number
(“Software License Key”) issued to you by VMware is required to
use the Software. The term “Number of Licensed Users” means the
number one (1), unless you received a VMware License Certificate
with this software product, in which case the term “Number of
Licensed Users” means the Number of Licensed Users set forth on
the VMware License Certificate.

“Open Source Software” means various open source software
components, including, without limitation, Samba, DHCP Server,
Tcl/Tk, XFree86, Libresolv, zlib, libpng, OpenSSL and Advanced
Encryption Standard (AES) licensed under the terms of applicable

Do you accept? (yes/no) yes

Thank you.

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.

As of September 2003, the Linux kernel development team does not support gcc
version 3 and later. See Documentation/Changes in your kernel source directory
for information on installing the correct compiler. Do you want to use the
version “3.3.3” of compiler “/usr/bin/gcc”? [no] yes

What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.0/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.0/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory
/usr/src/kernel-source-2.6.0′
*** Warning: Overriding SUBDIRS on the command line can cause
*** inconsistencies
make[2]: arch/i386/kernel/asm-offsets.s' está actualizado.
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/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
LD [M] /tmp/vmware-config0/vmmon-only/vmmon.o
Building modules, stage 2.
/usr/src/kernel-source-2.6.0/scripts/Makefile.modpost:17: *** Uh-oh, you have stale module entries. You messed with SUBDIRS,
/usr/src/kernel-source-2.6.0/scripts/Makefile.modpost:18: do not complain if something goes wrong.
MODPOST
CC /tmp/vmware-config0/vmmon-only/vmmon.mod.o
LD [M] /tmp/vmware-config0/vmmon-only/vmmon.ko
make[1]: Leaving directory
/usr/src/kernel-source-2.6.0′
cp -f vmmon.ko ./../vmmon.o
make: Leaving directory `/tmp/vmware-config0/vmmon-only’
The module loads perfectly in the running kernel.

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.0/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory
/usr/src/kernel-source-2.6.0′
*** Warning: Overriding SUBDIRS on the command line can cause
*** inconsistencies
make[2]: arch/i386/kernel/asm-offsets.s' está actualizado.
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
LD [M] /tmp/vmware-config0/vmnet-only/vmnet.o
Building modules, stage 2.
/usr/src/kernel-source-2.6.0/scripts/Makefile.modpost:17: *** Uh-oh, you have stale module entries. You messed with SUBDIRS,
/usr/src/kernel-source-2.6.0/scripts/Makefile.modpost:18: do not complain if something goes wrong.
MODPOST
CC /tmp/vmware-config0/vmnet-only/vmnet.mod.o
LD [M] /tmp/vmware-config0/vmnet-only/vmnet.ko
make[1]: Leaving directory
/usr/src/kernel-source-2.6.0′
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 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]

The following bridged networks have been defined:

. vmnet0 is bridged to eth0

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]

Configuring a NAT network for vmnet8.

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

What will be the IP address of your host on the private network? 10.1.1.2

What will be the netmask of your private network? 255.255.255.0

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

Do you want this program to automatically configure your system to allow your
virtual machines to access the host’s filesystem? (yes/no/help) yes

The version of Samba used in this version of VMware Workstation is licensed as
described in the “/usr/share/doc/vmware/SAMBA-LICENSE” file.

Hit enter to continue.

Creating a host-only network on vmnet1. (this is required to share the host’s
filesystem).

Configuring a host-only network for vmnet1.

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

What will be the IP address of your host on the private network? 10.1.1.2

What will be the netmask of your private network? 255.255.255.0

This system appears to have a CIFS/SMB server (Samba) configured for normal use.If this server is intended to run, you need to make sure that it will not
conflict with the Samba server setup on the private network (the one that we useto share the host’s filesystem). Please check your /etc/samba/smb.conf file so
that:

. The “interfaces” line does not contain “10.1.1.1/255.255.255.0”
. There is a “socket address” line that contains only your real host IP address

Hit enter to continue.

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

You have successfully configured VMware Workstation to allow your virtual
machines to access the host’s filesystem. Would you like to add a username and
password for accessing your host’s filesystem via network interface vmnet1 at
this time? (yes/no/help) [yes] no

You can add more usernames at any time by invoking the following command as
root: “/usr/bin/vmware-smbpasswd vmnet1 -a “

The configuration of VMware Workstation 4.5.2 build-8848 for Linux for this
running kernel completed successfully.

You can now run VMware Workstation by invoking the following command:
“/usr/bin/vmware”.

Enjoy,

–the VMware team