VPS con VMware Server 2 [Parte 2: Instalación]
Seguimos con el manual para crear VPS en el servidor.
Lo primero que hay que hacer es descargar VMware Server 2. Es necesario (y gratuito) registrarse en la página para obtener el número de validación. Se tardan 2 minutos contados.
Yo realizé la descarga directamente desde la shell del servidor ya que no dispongo de interfaz gràfica para hacerlo. Para ello utilizé el navegador lynx y tras la descarga procedemos a descomprimirlo:
cd /opt lynx <a title="http://www.vmware.com/go/getserver" rel="nofollow" href="http://www.vmware.com/go/getserver">http://www.vmware.com/go/getserver</a> tar xzvf VMware-server-2.0.1-156745.i386.tar.gz cd vmware-server-distrib/
Antes de proceder a la instalación de vmware vamos a añadir una interfaz de red a la tarjeta de red del servidor ya que habrá que indicarlo en una de las preguntas que hace el programa de instalación.
A esta interfaz le vamos a dar el nombre de dummy0 y la introducimos editando el fichero /etc/network/interfaces. Para ello:
nano /etc/network/interfaces
Debemos introducir algo como lo siguiente al final del fichero:
auto dummy0 iface dummy0 inet static address 10.0.0.1 netmask 255.0.0.0
Nota: Atento a elegir una IP de clase privada.
Ahora debemos iniciar la interfaz de red:
ifup dummy0
Comprobamos que la iterfaz esté activa mediante la ejecución del siguiente comando:
ifconfigDeberíamos ver algo como esto:
dummy0 Link encap:Ethernet HWaddr 22:79:C0:84:9B:3D inet addr:10.0.0.1 Bcast:10.255.255.255 Mask:255.0.0.0 UP BROADCAST RUNNING NOARP MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Iniciamos la instalación de vmware 2 ejecutando el siguiente comando:
./vmware-install.plAhora se nos realizará una serie de preguntas que podemos dejar por defecto hasta que nos aparezca el siguiente mensaje:
The installation of VMware Server 2.0.1 build-156745 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]
Pulsamos intro y ahora nos aparecerá un mensaje en el que nos pide que leamos la licencia. Pulsamos espacio para avanzar el texto hasta que se visualice el mensaje que nos pregunte si estamos o no de acuerdo. Indicamos que estamos de acuerdo.
Ahora aparece lo siguiente:
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]
Pulsamos intro. Ahora nos pregunta por el path de los header, en nuestro caso se encuentran en:
/usr/src/linux-2.6.28/include
Ahora debes seguir los mismos pasos que seguí:
Do you want networking for your virtual machines? (yes/no/help) [yes] Configuring a bridged network for vmnet0. Please specify a name for this network. [Bridged] Your computer has multiple ethernet network interfaces available: dummy0, eth0, eth0:0. Which one do you want to bridge to vmnet0? [eth0] dummy0 The following bridged networks have been defined: . vmnet0 is bridged to dummy0 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] no Do you want to be able to use host-only networking in your virtual machines? [no] yes Configuring a host-only network for vmnet1. Please specify a name for this network. [HostOnly] 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? 192.168.1.1 What will be the netmask of your private network? 255.255.255.0 The following host-only networks have been defined: . vmnet1 is a host-only network on private subnet 192.168.1.0. Do you wish to configure another host-only network? (yes/no) [no] None of the pre-built vmnet modules for VMware Server 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: se ingresa al directorio `/tmp/vmware-config0/vmnet-only' make -C /usr/src/linux-2.6.28/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules make[1]: se ingresa al directorio `/usr/src/linux-2.6.28' 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 CC [M] /tmp/vmware-config0/vmnet-only/smac.o CC [M] /tmp/vmware-config0/vmnet-only/vnetEvent.o CC [M] /tmp/vmware-config0/vmnet-only/vnetUserListener.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]: se sale del directorio `/usr/src/linux-2.6.28' cp -f vmnet.ko ./../vmnet.o make: se sale del directorio `/tmp/vmware-config0/vmnet-only' The vmnet module loads perfectly into the running kernel. Please specify a port for remote connections to use [902] Please specify a port for standard http connections to use [8222] Please specify a port for secure http (https) connections to use [8333] The current administrative user for VMware Server is ''. Would you like to specify a different administrator? [no] Using root as the VMware Server administrator. You have a pre-existing vmInventory.xml. The new version will be created as /etc/vmware/hostd/NEW_vmInventory.xml. Please check the new file for any new values that you may need to migrate to your current vmInventory.xml. 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] You have a pre-existing datastores.xml. The new version will be created as /etc/vmware/hostd/NEW_datastores.xml. Please check the new file for any new values that you may need to migrate to your current datastores.xml. Do you want to enter a serial number now? (yes/no/help) [no] Creating a new VMware VIX API installer database using the tar4 format. Installing VMware VIX API. 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.6.2 build-156745 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". Enjoy, --the VMware team Starting VMware services: Virtual machine monitor done Virtual machine communication interface done VM communication interface socket family: done Virtual ethernet done Bridged networking on /dev/vmnet0 done Host-only networking on /dev/vmnet1 (background) done DHCP server on /dev/vmnet1 done VMware Server Authentication Daemon (background) done Shared Memory Available done Starting VMware management services: VMware Server Host Agent (background) done VMware Virtual Infrastructure Web Access Starting VMware autostart virtual machines: Virtual machines done The configuration of VMware Server 2.0.1 build-156745 for Linux for this running kernel completed successfully.
Ya hemos finalizado la instalación. Ahora podemos acceder a la fantástica interfaz web de vmware mediante la siguiente url: https://tu_ip:8333. Si no especificamos lo contrario durante la instalación, el usuario de acceso es root y la contraseña es la que dispone éste mismo en el servidor.
Amigo, esta segunda entrega estuvo de lujo.
Ya que estoy externado lo que siento te pediré un favor…
… Ya tenemos montado nuestro servidor dedicado … pero, si mas bien lo que yo quiero es montar WM Server en mi dedicado y a partir de este crear varios VPs con sus respectivas IPs ( fijas ), como debo proceder?.
Te agradecería algo al respecto.
Que se planea?
Montar un servidor dedicado con algunos VPS para dar a los clientes acceso independiente a su VPS con su IP. Así cada quien hace lo que guste con su espacio sin que afecte e los demás usuarios ( clientes )
De antemano gracias por tu ayuda
En la “Parte 3″ de esta guía se verá como hacer lo que pides. En cuanto pueda lanzo esta tercera parte de la guía.
Un saludo.