3 de diciembre de 2006

Instalar VMPlayer 1.0.3 en Debian Sarge / Etch

Desgraciadamente para nosotros linuxeros, hay ciertas cosas que no podemos hacer sin güindous. Por ejemplo, páginas que están diseñadas para IE y se niegan a trabajar en nuestros Firefox, Konqueror, etc. Para solucionar éste tema tenemos VMPlayer. Nos permite ejecutar una imágen virtual con un güindous instalado sin tener que salir de Linux. Aquí explicaré la forma de instalar éste programa.

1. Descargar VMPlayer del siguiente enlace:

http://www.vmware.com/download/player/download.html

Nos descargamos la versión "for linux .tar".

2. Una vez descargado, entramos en una consola y descomprimimos:
$ tar xfz VMware-player-1.0.3-34682.tar.gz

Nos creará el directorio "vmware-player-distrib"

3. Nos logueamos como usuario root e instalamos las fuentes del kernel. Si ya las tenemos instaladas sáltate éste paso:

$ su -
passwd:

SARGE: # aptitude install kernel-headers-$(uname -r)
ETCH: # aptitude install linux-headers-$(uname -r)

4. Accedemos al directorio donde descomprimios VMPlayer y ejecutamos la instalación:

# cd ~nombre_usuario/vmware-player-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] ENTER

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

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

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

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] ENTER

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

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] ENTER

The installation of VMware Player 1.0.3 build-34682 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 Player 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] ENTER

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

VMWARE MASTER END USER LICENSE AGREEMENT

NOTICE: BY DOWNLOADING AND INSTALLING,
COPYING OR OTHERWISE USING THE SOFTWARE, YOU
AGREE TO BE BOUND BY THE TERMS OF THIS EULA.
IF YOU DO NOT AGREE TO THE TERMS OF THIS EULA,
YOU MAY NOT DOWNLOAD, INSTALL, COPY OR USE THE
SOFTWARE, AND YOU MAY RETURN THE UNUSED
SOFTWARE TO THE VENDOR FROM WHICH YOU ACQUIRED
IT WITHIN THIRTY (30) DAYS AND REQUEST A
REFUND OF THE LICENSE FEE, IF ANY, ALREADY
PAID UPON SHOWING PROOF OF PAYMENT. "YOU"
MEANS THE NATURAL PERSON OR THE ENTITY THAT IS
AGREEING TO BE BOUND BY THIS EULA, THEIR
EMPLOYEES AND THIRD PARTY CONTRACTORS THAT
PROVIDE SERVICES TO YOU. YOU SHALL BE LIABLE
FOR ANY FAILURE BY SUCH EMPLOYEES AND THIRD
PARTY CONTRACTORS TO COMPLY WITH THE TERMS OF
THIS AGREEMENT.

1. DEFINITIONS

1.1 "Designated Administrative Access" means

--------- PULSAMOS LA LETRA "q" DESPUES DE LEER LA LICENCIA ;-) ---------

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] ENTER

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

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

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

None of the pre-built vmmon modules for VMware Player 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] ENTER

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.17-2-686/build/include] ENTER

Extracting the sources of the vmmon module.

Building the vmmon module.

Using 2.6.x kernel build system.
make: se ingresa al directorio `/tmp/vmware-config0/vmmon-only'
make -C /lib/modules/2.6.17-2-686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: se ingresa al directorio `/usr/src/linux-headers-2.6.17-2-686'
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
CC /tmp/vmware-config0/vmmon-only/vmmon.mod.o
LD [M] /tmp/vmware-config0/vmmon-only/vmmon.ko
make[1]: se sale del directorio `/usr/src/linux-headers-2.6.17-2-686'
cp -f vmmon.ko ./../vmmon.o
make: se sale del directorio `/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] ENTER

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] ENTER

Configuring a NAT network for vmnet8.

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

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

The subnet 192.168.164.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.164.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] ENTER

Configuring a host-only network for vmnet1.

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

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

The subnet 172.16.179.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.179.0.

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

Extracting the sources of the vmnet module.

Building the vmnet module.

Using 2.6.x kernel build system.
make: se ingresa al directorio `/tmp/vmware-config0/vmnet-only'
make -C /lib/modules/2.6.17-2-686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: se ingresa al directorio `/usr/src/linux-headers-2.6.17-2-686'
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.x386.o
LD [M] /tmp/vmware-config0/vmnet-only/vmnet.o
Building modules, stage 2.
MODPOST
CC /tmp/vmware-config0/vmnet-only/vmnet.mod.o
LD [M] /tmp/vmware-config0/vmnet-only/vmnet.ko
make[1]: se sale del directorio `/usr/src/linux-headers-2.6.17-2-686'
cp -f vmnet.ko ./../vmnet.o
make: se sale del directorio `/tmp/vmware-config0/vmnet-only'
The module loads perfectly in the running kernel.

Would you like to enable the Google searchbar? (yes/no) [no] ENTER

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 Player 1.0.3 build-34682 for Linux for this running
kernel completed successfully.

You can now run VMware Player by invoking the following command:
"/usr/bin/vmplayer".

Enjoy,

--the VMware team

5. Si todo ha ido bien, en nuestro menú KDE / Sistema, tendremos nuestro enlace a VMware Player.

6. Ahora nos falta la imágen sobre la cual instalar güindous. Nos vamos a éste enlace y creamos nuestra imágen.

http://www.easyvmx.com/easyvmx.shtml

Virtual Machine Name: windows
Select GuestOS: Windows XP Professional Edition
Memory Size: 512 (depende de la cantidad que tengas libre en tu equipo)
# of CPUs: 1

Ethernet0: x Bridged Intel Pro 1000
Floppy Disk Drive: x Auto detect
CDROM1: x Auto detect
Disk #1: x Disk Size 20GB x SCSI (Creo q más q suficiente, aunque tranándose de güindows, nunca se sabe)

El sonido lo dejamos tal cual lo proponen.
Picamos en "Create Virtual Machine" y nos aparecerá en otra página nuestro archivo "windows.zip" listo para descargar. Lo descargamos a nuestro escritorio.

7. Descomprimimos la imágen:
$ cd
$ mv Desktop/windows.zip .
$ unzip -X windows.zip

Nos creará el directorio "/home/nombre_usuario/windows", y dentro contiene nuestra imágen sobre la que instalar güindows.

Sólo queda abrir la imágen con el VMPlayer y a instalar.

Saludos y Suerte.
Domi - Gran Canaria (Islas Canarias)

No hay comentarios: