Servicios

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

Solaris 8 Branded Zone

CONFIGURAR ZONA tipo BRAND Solaris8

Son soportadas dos tipos de brand zone en equipos SPARC ejecutando Oracle Solaris 10 8/07 Operating System o versiones posteriores. Este ejemplo se basa sobre la instalación de una zona con Solari8.

1. Configurar zona tipo Brand para soporte de Solaris8.


root@cintra-o2c # zonecfg -z maxitest
maxitest: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:maxitest> create -t SUNWsolaris8
zonecfg:maxitest> set zonepath=/export/zone/maxitest
zonecfg:maxitest> set autoboot=true
zonecfg:maxitest> add net
zonecfg:maxitest:net> set address=172.18.156.185
zonecfg:maxitest:net> set physical=ce0
zonecfg:maxitest:net> end
zonecfg:maxitest> verify
zonecfg:maxitest> commit
root@cintra-o2c #

Verificar la configuración de la zona en la línea brand indique solaris8, brand: solaris8

root@cintra-o2c # zonecfg -z maxitest info
zonename: maxitest
zonepath: /export/zone/maxitest
brand: solaris8
autoboot: true
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
hostid:
net:
address: 172.18.156.185
physical: ce0
defrouter not specified
root@cintra-o2c #

(Optional) Set the hostid to be the hostid of the source system.
add attr
set name=hostid
set type=string
set value=8325f14d
end

(Optional) Set the machine name returned by uname to always be sun4u.
add attr
set name=machine
set type=string
set value=sun4u
end

2. Respaldar la configuración de la zona.

root@cintra-o2c # zonecfg -z maxitest export > maxitest.config

3. Creación de la imagen tipo Flash Archive para la instalación de la zona tipo Brand con Solaris8.

En este caso se hace la migración de un equipo con Solaris 8 a zona container mediante creación de una imagen tipo Flash Archive. O se puede usar la imagen provista por Oracle Cloud Services y instalar el package de uso legal "SUNWs8brandk" para Solaris 8.
En el equipo con Solaris8 hacer la imagen del sistema con el comando flarcreate. La opción -z como parametro para leer un archivo como contenido una línea por cada FS a excluir que no pertenezca al Sistema Operativo. Donde se creara la imagen flar es necesario contar con el espacio suficiente en el FS, en este caso es mediante un FS compartido por NFS donde residira la zona.

# flarcreate -n maxitest -z /mnt/filtro_fs.txt /mnt/maxitest_so_fs.flar

4. Instalación de la zona tipo Brand.

En este caso se usa la imagen Flash Archive previamente creada con parametro:

-u (sys-unconfig) con motivo de uso de nueva configuracion de hostname e IP configurados anteriormente en el zonecfg.
-a path de donde se ubica la imagen.

root@cintra-o2c # zoneadm -z maxitest install -u -a /maxitestapp/flararchive/maxitest_so_fs_v2.flar
Log File: /var/tmp/maxitest.install.4586.log
Source: /maxitestapp/flararchive/maxitest_so_fs_v2.flar
Installing: This may take several minutes...
Postprocessing: This may take several minutes...

Result: Installation completed successfully.
Log File: /export/zone/maxitest/root/var/log/maxitest.install.4586.log
root@cintra-o2c #

5. Validar la operación de la nueva zona tipo brand con Solaris8.

root@cintra-o2c # zoneadm list -cv
ID NAME STATUS PATH BRAND IP
0 global running / native shared
1 maxitest running /export/zone/maxitest solaris8 shared

root@cintra-o2c # zlogin maxitest
[Connected to zone 'maxitest' pts/3]
Last login: Mon Dec 2 17:20:20 on pts/4

You have new mail.
Grupo other, eds o sag

root@maxitest #> uname -a
SunOS maxitest 5.8 Generic_Virtual sun4u sparc SUNW,Sun-Fire-V440
root@maxitest #>

root@maxitest #> df -k
Filesystem kbytes used avail capacity Mounted on
/ 8060019 4914457 3145562 61% /
/.SUNWnative/lib 12396483 7364982 4907537 61% /.SUNWnative/lib
/.SUNWnative/platform
12396483 7364982 4907537 61% /.SUNWnative/platform
/.SUNWnative/usr 12396483 7364982 4907537 61% /.SUNWnative/usr
/dev 8060019 4914457 3145562 61% /dev
proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
swap 20622968 16 20622952 1% /etc/svc/volatile
/dev/ksyms 12396483 7364982 4907537 61% /dev/ksyms
fd 0 0 0 0% /dev/fd
swap 20623072 120 20622952 1% /tmp
root@maxitest #> exit

[Connection to zone 'maxitest' pts/3 closed]
root@cintra-o2c #

6. Enjoy.

Se ha terminado la instalación de la zona tipo brand Solaris8.

Para mayor referencia de uso y configuración de componentes en zonas consultar:
System Administration Guide: Oracle Solaris Containers-Resource Management and Oracle Solaris Zones.


Regresar


Random TIPS

BASH HOTKEYS
Bash provides many hot keys to ease use. Like
ctrl-l -- clear screen
ctrl-r -- does a search in the previously given commands so that you don't have to repeat long command.
ctrl-u -- clears the typing before the hotkey.
ctrl-a -- takes you to the begining of the command you are currently typing.
ctrl-e -- takes you to the end of the command you are currently typing in.
esc-b -- takes you back by one word while typing a command.
ctrl-c -- kills the current command or process.
ctrl-d -- kills the shell.
ctrl-h -- deletes one letter at a time from the command you are typing in.
ctrl-z -- puts the currently running process in background, the process can be brought back to run state by using fg command.
esc-p -- like ctrl-r lets you search through the previously given commands. esc-. -- gives the last command you typed.

free counters