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.config3. 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 5. Validar la operación de la nueva zona tipo brand con Solaris8. root@cintra-o2c # zoneadm list -cv 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: |
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.