martes, 17 de diciembre de 2013

Solaris 8 en una zona

Primero se revisa añade los paquetes de legacy conteiners:

root@ue250 # cd solarislegacycontainers/
root@ue250 # ls
1.0     1.0.1   README
root@ue250 # cd 1.0.1/
root@ue250 # ls
Legal    Product
root@ue250 # pkgadd -d .
pkgadd: ERROR: no packages were found in </export/home/itc/solarislegacycontainers/1.0.1>
root@ue250 # pwd
/export/home/itc/solarislegacycontainers/1.0.1
root@ue250 # ls -F
Legal/    Product/
root@ue250 # cd Product/
root@ue250 # ls
SUNWs8brandk  SUNWs9brandk
root@ue250 # pkgadd -d .

The following packages are available:
  1  SUNWs8brandk     Solaris 8 Containers: solaris8 brand support RTU
                      (sparc) 11.10.0,REV=2008.09.20.18.50
  2  SUNWs9brandk     Solaris 9 Containers: solaris9 brand support RTU
                      (sparc) 11.10.0,REV=2008.09.20.18.50

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: all

Processing package instance <SUNWs8brandk> from </export/home/itc/solarislegacycontainers/1.0.1/Product>

Solaris 8 Containers: solaris8 brand support RTU(sparc) 11.10.0,REV=2008.09.20.18.50
Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
Using </> as the package base directory.
## Processing package information.
## Processing system information.
   8 package pathnames are already properly installed.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.

The following files are already installed on the system and are being
used by another package:
  /usr/share/man/man5/solaris8.5

Do you want to install these conflicting files [y,n,?,q] y
## Checking for setuid/setgid programs.

Installing Solaris 8 Containers: solaris8 brand support RTU as <SUNWs8brandk>

## Installing part 1 of 1.
/usr/lib/brand/solaris8/files/patches/109147-44.zip
/usr/lib/brand/solaris8/files/patches/109221-01.zip
/usr/lib/brand/solaris8/files/patches/111023-03.zip
/usr/lib/brand/solaris8/files/patches/111431-01.zip
/usr/lib/brand/solaris8/files/patches/112050-04.zip
/usr/lib/brand/solaris8/files/patches/112605-04.zip
/usr/lib/brand/solaris8/files/patches/order
/usr/share/man/man5/solaris8.5
[ verifying class <none> ]

Installation of <SUNWs8brandk> was successful.

Processing package instance <SUNWs9brandk> from </export/home/itc/solarislegacycontainers/1.0.1/Product>

Solaris 9 Containers: solaris9 brand support RTU(sparc) 11.10.0,REV=2008.09.20.18.50
Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
Using </> as the package base directory.
## Processing package information.
## Processing system information.
   8 package pathnames are already properly installed.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

Installing Solaris 9 Containers: solaris9 brand support RTU as <SUNWs9brandk>

## Installing part 1 of 1.
/usr/lib/brand/solaris9/files/patches/112963-32.zip
/usr/lib/brand/solaris9/files/patches/115986-03.zip
/usr/lib/brand/solaris9/files/patches/order
/usr/share/man/man5/solaris9.5
[ verifying class <none> ]

Installation of <SUNWs9brandk> was successful.
root@ue250 #

Ahora se crean los parametros para la zona:
root@ue250 # zoneadm list -cv
  ID NAME             STATUS     PATH                           BRAND    IP   
   0 global           running    /                              native   shared
root@ue250 # zonecfg -z solaris8
solaris8: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:solaris8> create -t SUNWsolaris8
zonecfg:solaris8> set zonepath=/zonas/solaris8
zonecfg:solaris8> set autoboot=true
zonecfg:solaris8> add net
zonecfg:solaris8:net> set physical=ce3
zonecfg:solaris8:net> set address=192.168.200.251
zonecfg:solaris8:net> set defrouter=192.168.200.100
zonecfg:solaris8:net> end
zonecfg:solaris8> verify
zonecfg:solaris8> commit
zonecfg:solaris8> exit
root@ue250 #

Ahora la carpeta del path le damos los permisos requeridos:

root@ue250 # mkdir -p /zonas/solaris8
root@ue250 # chmod -R 700 /zonas/solaris8/
root@ue250 #

Ya con eso se instala desde el backup que esta con formato *.dmp.

root@ue250 # zoneadm -z solaris8 install -p -v -a /export/home/itc/Ultra60Entel/raiz.dmp     
      Log File: /var/tmp/solaris8.install.1503.log
       Product: Solaris 8 Containers 1.0
     Installer: solaris8 brand installer 1.3
          Zone: solaris8
          Path: /zonas/solaris8
        Source: /export/home/itc/Ultra60Entel/raiz.dmp
    Media Type: ufsdump archive
    Installing: This may take several minutes...


Hay que esperar que termine el proceso.