Servicios

Web hosting
Ver »
Páginas Web
Ver »
Soporte UNIX
Ver »
UNIX TIPS
Ver »

LOGICAL DOMAINS SOLARIS 10

Logical Domain consiste en una solución intermedia, entre la zonas y los dominios hardware. Podemos asignar una serie de recursos HW de la máquina, para que sean compartidos o no, entre varios dominios, cada uno de estos dominios con su propio SO. LDoms se basa una capa intermedia entre el HW y el SO, dicha capa es conocida por el nombre de Hypervisor. El Hypervisor permite que se pueda crear varias máquinas virtuales, compartiendo el HW disponible en el sistema. Con esta nueva capa, el SO no necesita conocer qué HW está disponible en la máquina, siendo el Hypervisor el que realiza todo el trabajo.

LDoms, actualmente solo está soportado en las siguiente plataformas:

  • Sun Fire T1000 / T2000 Server
  • Netra T2000 Server
  • Netra CP3060 Blade
  • Sun Blade T6300 Server Module

  • Para mayor información consultar documentacion oficial en línea:

    Logical Domains 1.2 Collection
    Logical Domains 1.3 Collection

    Sus 4 componentes principales son:

    • Control Domain, es el encargado de gestionar los distintos dominios lógicos.
    • Service Domain, se encarga de gestionar los dispositivos virtuales, tales como los discos.
    • I/O Domain, se encarga de gestionar la entrada/salida de los dispositivos.
    • Guest Domain, es cada uno de los dominios lógicos que creemos.

    Una vez configurado el Control Domain, podremos crear distintos dominios lógicos (Guest Domain), a cada uno de estos dominios, podemos asignarles distintos tipos de dispositivos como son:

    • vcpu.
    • mem.
    • vnet, virtual network devide.
    • vsw, virtual network switch.
    • vdc, virtual disk client.
    • vds, virtual disk server.

    Uno de los requisitos para que LDoms funcione correctamente después de la instalación es que nuestra máquina posea una versión de firmware 6.4 o posterior, podemos ver en la salida del comando showhost en la SC, la máquina en la que estamos instalando LDoms posee una versión de firmware 6.3.1, por lo tanto tendremos que actualizar el firmware del sistema, para que LDoms funcione correctamente.

    Para comenzar la actualización del firmware vamos a hacerlo utilizando un servidor FTP en otra máquina. Ejecutaremos el comando:

    flashupdate -s < ip_server_ftp > -f < fichero_firmware>

    flashupdate -s 192.168.1.20 -f /export/home/user01/LDOM/126400-02/Sun_System_Firmware-6_4_6-Sun_Fire_T1000.bin
    SC Alert: System poweron is disabled.
    ........................................................................................
    ..............................................................................

    Update complete. Reset device to use new software.

    SC Alert: SC firmware was reloaded
    sc> showhost
    Sun-Fire-T1000 System Firmware 6.4.6 2007/06/24 18:43

    Host flash versions:
    Hypervisor 1.4.1 2007/04/02 16:37
    OBP 4.26.1 2007/04/02 16:25
    POST 4.26.0 2007/03/26 16:46
    sc> resetsc
    Are you sure you want to reset the SC [y/n]? y
    User Requested SC Shutdown


    Ya hemos actualizado nuestro firmware con la versión 6.4.6, ahora podemos continuar con la instalación de LDoms. Descargar y descompactar el paquete con la última versión Logical Domains Manager 1.3 software (SUNWldm package)



    root@t1000 # pwd
    /export/home/user01/LDOM/LDoms_Manager-1_3-RR root@t1000 # ls
    Install Legal Product README
    root@t1000 # ./Install/install-ldm
    Welcome to the LDoms installer.

    You are about to install the domain manager package that will enable
    you to create, destroy and control other domains on your system. Given
    the capabilities of the domain manager, you can now change the security
    configuration of this Solaris instance using the Solaris Security
    Toolkit.

    Select a security profile from this list:

    a) Hardened Solaris configuration for LDoms (recommended)
    b) Standard Solaris configuration
    c) Your custom-defined Solaris security configuration profile

    Enter a, b, or c [a]: a
    The changes made by selecting this option can be undone through the
    Solaris Security Toolkit's undo feature. This can be done with the
    '/opt/SUNWjass/bin/jass-execute -u' command.
    Installing LDoms and Solaris Security Toolkit packages.
    pkgadd -n -d "/export/home/user01/LDOM/LDoms_Manager-1_3-RR/Product" -a pkg_admin SUNWldm.v
    Copyright 2007 Sun Microsystems, Inc. All rights reserved.
    Use is subject to license terms.

    ...

    Solaris Security Toolkit hardening executed successfully; log file
    /var/opt/SUNWjass/run/20070810101627/jass-install-log.txt. It will not
    take effect until the next reboot. Before rebooting, make sure SSH or
    the serial line is setup for use after the reboot.
    You have new mail in /var/mail/root
    root@t1000 #
    root@t1000 # init 6

    Una vez terminado el proceso de instalación, reiniciamos la máquina. Cuando la máquina haya terminado de arrancar, comprobamos que LDoms está levantado.


    root@t1000 # svcs | grep ldm
    online 20:42:42 svc:/ldoms/ldmd:default
    root@t1000 #
    root@t1000 # svcs -l svc:/ldoms/ldmd:default
    fmri svc:/ldoms/ldmd:default
    nombre Logical Domain Manager
    habilitada Verdadero
    estado online
    next_state none
    state_time Sat May 18 20:42:42 2010
    logfile /var/svc/log/ldoms-ldmd:default.log
    reiniciador svc:/system/svc/restarter:default
    contract_id 40
    dependency require_all/none svc:/system/filesystem/local (online)
    root@t1000 #


    Crear los servicios del controlador de dominio

    Una vez que hemos instalado el paquete de LDoms, vamos a crear los servicios que gestionará el controlador de dominio. Lo primero es crear un vds, el servicio para la gestión de los discos virtuales y se asignará al controlador primary.


    root@t1000 # /opt/SUNWldm/bin/ldm add-vds primary-vds0 primary
    ----------------------------------------------------------------------------
    Notice: the LDom Manager is running in configuration mode. Any configuration
    changes made will only take effect after the machine configuration is
    downloaded to the system controller and the host is reset.
    ----------------------------------------------------------------------------

    Creamos las consolas virtuales que el controlador de dominio asignará a los distintos dominios lógicos.

    root@t1000 # /opt/SUNWldm/bin/ldm add-vcc port-range=5000-5100 primary-vcc0 primary
    ----------------------------------------------------------------------------
    Notice: the LDom Manager is running in configuration mode. Any configuration
    changes made will only take effect after the machine configuration is
    downloaded to the system controller and the host is reset.
    ----------------------------------------------------------------------------

    Añadimos un virtual switch, para los distintos interfaces virtuales tengan acceso a la red.

    root@t1000 # /opt/SUNWldm/bin/ldm add-vsw net-dev=bge0 primary-vsw0 primary
    ----------------------------------------------------------------------------
    Notice: the LDom Manager is running in configuration mode. Any configuration
    changes made will only take effect after the machine configuration is
    downloaded to the system controller and the host is reset.
    ----------------------------------------------------------------------------

    Regresar


    Random TIPS

    SET UP RSC on a Sun Fire V880

    a) Moverse hasta el directorio de nuestra arquitectura del server:

    # /usr/platform/`uname -i`/sbin/
    # ls
    rsc-config rsc-initscript rscadm
    #

    b) Configurar parametros de red para su acceso remoto a la ALOM

    # ./rscadm set ip_mode config
    # ./rscadm set ip_addr 172.18.136.240
    # ./rscadm set ip_netmask 255.255.255.0
    # ./rscadm set ip_gateway 172.18.136.1
    # ./rscadm resetrsc

    # ./rscadm shownetwork IP Address: 172.18.136.240
    Gateway address: 172.18.136.1
    Netmask: 255.255.255.0
    Ethernet address: 00:03:ba:68:b2:f6
    #

    Ahora a testear conectividad vía telnet, una vez que se halla conectado el cable de red a la tarjeta ALOM.

    free counters