Inicio arrow Artículos arrow Emulación arrow Instalación de VMware Server en Ubuntu
Menú Principal
Lo más leído
Consigue Firefox
Usuarios
957 registrados
1 hoy
1 esta semana
58 este mes
Último: czar...
Formulario de acceso



... Regenerar clave
... Registro
Instalación de VMware Server en Ubuntu Imprimir E-Mail
jueves, 01 de marzo de 2007

VMware Server BoxVMware Server es la herramienta perfecta para crear y mantener diferentes sistemas operativos virtuales que operarán bajo un mismo sistema operativo y bajo una misma configuración de hardware. Los beneficios económicos son evidentes pero aún lo es más la versatilidad que se abre al contar con unas máquinas virtuales que podemos trasladar a nuestro antojo a otro servidor con VMware o a cualquier ordenador que cuente con el programa VMware Player instalado en su sistema. 

 

Escenario

Instalaremos VMware Server sobre un sistema con Ubuntu 6.06 LTS (Dapper Drake) y hacemos constar ya desde un principio que dicha instalación es extensible a casi cualquier distribución linux existente en el mercado. Dicha instalación se hará en todos los casos con un usuario que cuente con privilegios administrativos completos o directamente con el usuario root.

Si es posible, se recomienda la instalación del servidor OpenSSH sobre la máquina que alojará el servidor de VMware para mantener un sistema virtual completo que podrá controlarse desde cualquier máquina ajena al servidor (podemos encontrar un ejemplo de la instalación de OpenSSH en el artículo Conectar con VNC bajo SSH de esta misma página.

En cuanto a las recomendaciones de hardware, dependerán en gran medida de la cantidad de máquinas virtuales que queramos tener corriendo a la vez sobre el sistema, así que no podemos desde aquí hacer ninguna recomendación al respecto.
Como software adicional, será necesaria la instalación de OpenSSL y Apache para el funcionamiento correcto de la herramienta de administración sobre web de VMware Server.


Descarga de binarios

En la fecha de publicación de este artículo, está a disposición del usuario la versión 1.0.2 de VMware Server. Descargaremos dicha versión desde la página oficial del programa (http://www.vmware.com/download/server/). Es necesario registrar el programa para obtener un número gratuito de licencia válido. Dicho proceso puede realizarse en la página http://register.vmware.com/content/registration.html.
Finalmente, los binarios a descargar de la página oficial serán los siguientes:

VMware Server for Linux - VMware-server-1.0.2-39867.tar.gz
Management Interface - VMware-mui-1.0.2-39867.tar.gz


Instalación de paquetería adicional

Para el correcto funcionamiento de VMware Server, es necesaria la instalación de ciertos paquetes que podrían no estar presentes en nuestro sistema. Utilizaremos para dicha instalación el programa apt-get en nuestro sistema Ubuntu:

Librerías gráficas y el servidor de conexiones xinetd:

[root@annie]# apt-get install libx11-6 libx11-dev libxtst6 xlibs-dev xinetd

Cabeceras para desarrollo:

[root@annie]# apt-get install linux-headers-`uname -r` build-essential

Herramientas de compilación:

[root@annie]# 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


Instalación y configuración de VMware Server

Una vez descargados los últimos binarios del programa, procederemos a la instalación del mismo mediante la ejecución del script que se incluye a tal efecto. Para ello, crearemos en primer lugar un directorio para el alojamiento de las máquinas virtuales. Dicho directorio deberá disponer de espacio necesario para cada una de las máquinas a alojar (se recomienda incluso que ese directorio se monte sobre una partición adicional o, incluso, sobre un disco duro adicional. Esta última configuración es muy efectiva, ya que nos permitiría trasladar todas las máquinas de un ordenador a otro sin mucho esfuerzo, sobre todo si dicho disco tiene la posibilidad de conectarse de forma externa a una velocidad decente).

[root@annie]# mkdir /var/VMware/vm

Seguidamente descomprimiremos el contenido del fichero tar.gz que contiene la parte servidor:

[root@annie]# tar xvfz VMware-server-*.tar.gz

Y ejecutaremos el script de instalación (se adjuntan en color azul las respuestas que difieren de la propuesta por defecto):

[root@annie]# cd vmware-server-distrib
[root@annie]# ./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 daemon files?
[/usr/sbin]

In which directory do you want to install the library files?
[/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]

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

The installation of VMware Server 1.0.2 build-39867 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]

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.


..... [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]

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]

What directory contains your desktop menu entry files? These files have a .desktop file extension. [/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]

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.

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

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

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

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]

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/VMware/vm

Please enter your 20-character serial number.

Type XXXXX-XXXXX-XXXXX-XXXXX or 'Enter' to cancel: -Número de serie de registro-

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



Instalación de la consola de administración (Management Interface)

La consola de administración de VMware nos permitirá, a través de un interface basado en web, el control de los siguientes aspectos relacionados con el servidor VMware y sus máquinas virtuales asociadas:

  • Monitorización del estado de las máquinas virtuales y del propio servidor.
  • Control (encendido, apagado, pausa, ...) de cada una de las máquinas virtuales.
  • Detalles de las máquinas virtuales como control de hardware, usuarios conectados, logs, ...

Igual que ya hicimos con el servidor, descomprimiremos el fichero y ejecutaremos el script de instalación que viene incluído en su interior (en azul, las respuestas que no son predeterminadas.

[root@annie]# tar xvfz VMware-mui-*.tar.gz
[root@annie]# cd vmware-mui-distrib
[root@annie]# ./vmware-install.pl

Do you accept? (yes/no) yes

Thank you.

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 VMware Management Interface files?
[/usr/lib/vmware-mui]

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

In which directory would you like to install the documentation files?
[/usr/lib/vmware-mui/doc]

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

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

The installation of VMware Management Interface 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-mui.pl".

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

Configuring httpd.conf to run Apache as:
User: www-data and Group: nogroup

Set the number of minutes before a http session times out. (This is the length of time before someone connecting to VMware Management Interface will be logged out) [60]

Generating SSL Server Certificate

Starting httpd.vmware: done
The configuration of VMware Management Interface completed successfully.


Finalizada la instalación, es hora de crear un directorio para el demonio httpd de VMware:

[root@annie]# mkdir /var/run/vmware/httpd
[root@annie]# chown www-data:www-data /var/run/vmware/httpd


A partir de ahora, podemos acceder a la consola de administración desde un navegador web escribiendo la ruta siguiente en la barra de direcciones: https://192.168.0.100:8333/ donde 192.168.0.100 se corresponde con la dirección IP del servidor donde está alojado VMware Server. El usuario y la contraseña de entrada se corresponderán con los datos del usuario root en nuestro sistema.

Seguidamente podemos ver algunas pantallas de esta aplicación de administración:

 MUI

 MUI


Con la instalación de estas dos aplicaciones, queda completa la administración de máquinas virtuales sobre VMware. Es necesario sin embargo significar que dichas herramientas sirven única y exclusivamente para la administración de dichas máquinas, no para la creación de las mismas. Para esta última tarea, será necesaria la aplicación de consola de VMware, disponible para sistemas Windows y linux.
 

Comentario[s]

Sólo los usuarios registrados pueden escribir comentarios.
Por favor, valídate o regístrate.

Powered by AkoComment 2.0!

 
Siguiente >