Bienvenidos

Todos estos pasos descriptos fueron probados en ambientes productivos

lunes, 12 de marzo de 2012

Configurar JET para instalacion desatendida

Todo este procedimiento fue realizado con los siguientes elementos:
Notebook HP modelo HP430 con sistema operativo linux CentOS 6, dentro de la misma, le instale Oracle Virtual Box,
con sistema operativo Solaris x86 release 09/10
#configurar JET para instalacion desatendida

En el linux, en el directorio /usr/scripts/ tengo las imagenes .iso del dvd de solaris 10 y del dvd del EIS
Dentro del Oracle Virtual Box, hay una opcion que se llama "shared folders", ahi le digo que fs o directorio quiero compartir a en este caso mi solaris
***Aclaracion importante: cuando creo en el VirtualBox el Solaris, debo hacerlo con la opcion de red "Bridget " para que funcione cuando lo conecte al server que quiero instalar ***
Cuando levanta el solaris, monta automaticamente los fs que comparti desde el Virtual Box anteriormente
Aca va un ejemplo de como montamos la imagen .iso del dvd del EIS
# lofiadm -a /mnt/sf_ISOs/eis-diciembre2011-one.iso
/dev/lofi/1
# mkdir /eis
# mount -o ro -F hsfs /dev/lofi/1 /eis
# cd /eis
# ls -ltra
dr-xr-xr-x 7 root root 2048 Jul 21 2010 sun
-r--r--r-- 1 root root 2520 Dec 13 11:48 README-14DEC11
-r--r--r-- 1 root root 90353 Dec 13 11:56 .eis-dvd1.md5
# cd sun
# cd progs/JET/
# ls -tlra
-r--r--r-- 1 root root 417542 Dec 8 21:05 JET-EIS.pkg.bz2
# cp -p JET-EIS.pkg.bz2 /usr/scripts/
# cd /usr/scripts/
# bzip2 -d JET-EIS.pkg.bz2
# pkgadd -d ./JET-EIS.pkg
The following packages are available:
1 JetEISCD EIS CD JET module
(sparc,i386) 4.3
2 JetEXPLO jet explo product
(sparc,i386) 3.1.22
3 JetFLASH JET flash product
(sparc,i386) 3.1.11
4 JetISO JET ISO product
(sparc) 1.0.2
5 JetJASS JASS product
(sparc,i386) 3.0.17
6 JetLDOM JET LDOM product
(sparc,i386) 2.5
7 JetRBAC JET RBAC product
(sparc) 1.1.5
8 JetSAN JET san product
(sparc,i386) 3.1.14
9 JetSBD Secure By Default product
(sparc,i386) 1.0.4
10 JetSC3 JET sc3 Product
(sparc,i386) 3.3.40
11 JetSDS JET sds product
(sparc,i386) 3.5
12 JetVFS JET vfs product
(sparc) 1.0.3
13 JetVTS JET VTS product
(sparc,i386) 3.0.15
14 JetVXFS VxFS product
(sparc) 3.0.7
15 JetVXVM JET VXVM product
(sparc) 3.2.8
16 JetVXVM4 JET VXVM4 product
(sparc) 1.2
17 JetWanBoot JET WanBoot support
(sparc) 1.3.2
18 JetZFS JET zfs product
(sparc,i386) 1.2
19 JetZONES JET Zones module
(sparc,i386) 1.3.17
20 SUNWjet Sun JumpStart Enterprise Toolkit
(sparc,i386) 4.9.2
21 SUNWjetd JET Documentation
(sparc) 4.5

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: all
Processing package instance from
The selected base directory must exist before
installation is attempted.
Do you want this directory created now [y,n,?,q] y
Using as the package base directory.
## Processing package information.
## Processing system information.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.
This package contains scripts which will be executed with super-user
permission during the process of installing this package.
Do you want to continue with the installation of [y,n,?] y
Installing Sun JumpStart Enterprise Toolkit as

## Executing preinstall script.
Adding 'jet' group to /etc/group
## Installing part 1 of 1.
/opt/SUNWjet/Products/base_config/solaris/base_config.conf
/opt/SUNWjet/Products/base_config/solaris/boot_image_patches
.........
Corto la salida porque es larguisima
............
Processing package instance from

JET Documentation(sparc) 4.5
Installation of was successful.
Installing JET sds product as
Installing JET vfs product as
Installing JET VXVM product as
Installation of was successful.
Installing JET VXVM4 product as
Installation of was successful.
Installing VxFS product as
Installation of was successful.
Installing EIS CD JET module as
Installation of was successful.
Installing JET VTS product as
Installation of was successful.
Installing jet explo product as
Installation of was successful.
Installing JET san product as
Installation of was successful.
Installing JET sc3 Product as
Installation of was successful.
Installation of was successful.
Installing JET Zones module as
Installation of was successful.
Installing JASS product as
Installation of was successful.
Installing Secure By Default product as
Installation of was successful.
Installing JET RBAC product as
Installation of was successful.
Installing JET WanBoot support as
Installation of was successful.
Installing JET LDOM product as
Installation of was successful.
Installing JET ISO product as
Installation of was successful.
Installing JET zfs product as
####### Aca yo habia sacado los shares viejos para despues no hacerme quilombo. La idea es que el share del /opt/SUNWjet te lo agrega solo automaticamente.
# vi /etc/dfs/dfstab
# share -F nfs -o rw=engineering -d "home dirs" /export/home2
share -F nfs -o ro,anon=0 /usr/scripts/Solaris_10
share -F nfs -o ro,anon=0 -d "JET Framework" /opt/SUNWjet
# shareall
# share
- /opt/SUNWjet ro,anon=0 "JET Framework"
# cd /usr/scripts
# ls -tlra
-r--r--r-- 1 root root 2143232 Dec 8 21:05 JET-EIS.pkg
drwxr-xr-x 6 root root 512 Mar 6 15:47 Solaris_10
###### Aca borre la vieja instalacion del dvd de solaris para no mezclarme con lo nuevo que iba a instalar.
# rm -r Solaris_10/
# mkdir /sun-dvd
# pwd
/usr/scripts
# lofiadm -a /mnt/sf_ISOs/sol10SparcNov2011.iso
/dev/lofi/2
# mount -o ro -F hsfs /dev/lofi/2 /sun-dvd/
###### Aca se modifican los tres directorios pkgs, patches y media (si los queremos cambiar de la ubicacion default) y la clave que orignalmente es newroot.
Editar el sig archivo y configurar donde va a buscar los archivos a instalar

# vi /opt/SUNWjet/etc/jumpstart.conf
JS_Default_Root_PW=boajrOmU7GFmY
JS_BUILD_DIR=/var/opt/sun/jet
JS_PKG_DIR=/usr/scripts/jumpstart/pkgs
JS_PATCH_DIR=/usr/scripts/jumpstart/patches
JS_CFG_SVR=
JS_SOLARIS_DIR=/usr/scripts/jumpstart/media
JS_DHCP_VENDOR="SUNW.Ultra-5_10 SUNW.Ultra-30"
JS_CLIENT_MANAGEMENT="dhcp bootp"
JS_CLIENT_MANAGEMENT="bootp"
JS_CLIENT_BOOT="local"

# /opt/SUNWjet/bin/copy_solaris_media -n sol10u10_sparc /sun-dvd/
Copying Solaris image....
Verifying target directory...
Calculating the required disk space for the Solaris_10 product
| /
Install Server setup complete
Added Solaris image sol10u10_sparc at the following location:
Media: /usr/scripts/jumpstart/media/Solaris_10
removing directory /usr/scripts/jumpstart/media/3465

# cd /usr/scripts
# cp -p /eis/sun/progs/explorer/Explorer_6.9.tar.gz .
# gzip -d Explorer_6.9.tar.gz
# tar xvf Explorer_6.9.tar
# /opt/SUNWjet/bin/copy_product_media explo 6 /eis/sun/progs/explorer/ sparc
Transferring package instance
Transferring package instance
Packges copied.


####### Este paso tarda como 3 horas... se ve que los discos compartido con virtual box van muy lento.
# /opt/SUNWjet/bin/copy_eiscd /eis/
Scanning for components in /eis/
Copying DVD

/usr/scripts/jumpstart/patches/eiscd/14DEC11 already exists...
Copying from EIS-DVD image into /usr/scripts/jumpstart/patches/eiscd/14DEC11....
Copying contents of directory sun...
Completed... Please ensure that following line exists in /etc/dfs/dfstab

share -F nfs -o ro,anon=0 /usr/scripts/jumpstart/patches/eiscd/14DEC11
Installtaion of DVD (1) finished

###### Agrego la linea que me pasa el copy_eiscd
# vi /etc/dfs/df stab
share -F nfs -o ro,anon=0 -d "JET Framework" /opt/SUNWjet
share -F nfs -o ro,anon=0 /usr/scripts/jumpstart/patches/eiscd/14DEC11
# shareall
###### Cambiamos las cosas basicas en estos 3 archivos de configuracion en el primero es importante modificar base_config_client_allocation y agregarle bootp
###### El resto son detalles para despues cuando el make_template no tener que tocar a mano mucho el archivo que me devuelve.
###### Yo en el primero modifique el timezone el system_locale, profile_root, profile_swap, dns_domain, dns_nameservers, ntp_servers.
###### En el archvio eiscd modifique solo eiscd_product_version le puse latest
###### En el archivo explo.conf el numero de version en 6. explo_product_version=6
# vi /opt/SUNWjet/Products/base_config/solaris/base_config.conf
# vi /opt/SUNWjet/Products/eiscd/eiscd.conf
# vi /opt/SUNWjet/Products/explo/explo.conf

# make_template -E 0:3:ba:4:96:d9 cabarulo base_config sds sbd explo eiscd

Adding product configuration information for
+ base_config
+ sds
+ sbd
+ explo
+ eiscd
Updating base_config template specifics
Client template created in /opt/SUNWjet/Templates
# cd /opt/SUNWjet/Templates
# ls -tlra
total 324
drwxr-xr-x 11 root root 512 Mar 8 14:23 ..
-rw-rw-r-- 1 root jet 104070 Mar 8 14:23 sample.template
-rw-rw-r-- 1 root jet 48389 Mar 8 16:21 cabarulo
drwxrwsr-x 2 root jet 512 Mar 8 16:21 .
################################3
Editar el sig archivo ( es el nombre del host que quiero instalar ) y configurar lo que quiero que se instale automaticamente, por ejemplo, tamano de los fs
a crear, parches, si quiero mirror.

base_config_ClientEther=0:3:ba:4:96:d9 ( aca va la mac address del Servidor que quiero instalar, una de las formas de verlo es con el equipo en OBP, tipear
banner )
base_config_ClientOS=sol10u10_sparc
base_config_products=" sds sbd explo eiscd"

base_config_sysidcfg_nameservice=NONE
base_config_sysidcfg_network_interface=PRIMARY
base_config_sysidcfg_ip_address=10.11.33.108 ( esta es la ip del equipo que quiero instalar)
base_config_sysidcfg_netmask=255.255.255.0
base_config_sysidcfg_root_password=boajrOmU7GFmY ( si dejamos esto boajrOmU7GFm la passwd de root que le pone es newroot)
base_config_sysidcfg_system_locale=en_US
base_config_sysidcfg_timeserver=localhost
base_config_sysidcfg_timezone=America/Buenos_Aires
base_config_sysidcfg_terminal=vt100
base_config_sysidcfg_security_policy=NONE
base_config_sysidcfg_protocol_ipv6=no
base_config_sysidcfg_default_route=10.11.33.1

base_config_profile_usedisk=rootdisk.
base_config_profile_dontuse=""
base_config_profile_root=30000 ( le deje 30gb al / )
base_config_profile_swap=8192 ( le deje 8gb al swap )
base_config_dns_domain="eldominio.com.ar"
base_config_dns_searchpath=""
base_config_dns_nameservers="10.XX.7.16"
base_config_dns_disableforbuild="yes"
base_config_ntp_servers="10.xx.33.30" ( ip del servidor de NTP )
Parametros de Solaris Disksuite porque quiero mirrorear el equipo
sds_root_mirror=""
sds_use_fmthard="yes"
sds_database_locations="rootdisk.s7:3"
sds_database_partition="s7:32"
sds_root_alias="rootdisk"
sds_root_mirror_devalias_name="rootmirror"

Valores para El Explorer
explo_product_version=6
###### Agrego el fs que me falte.. la idea es que tienen que estar compartidos los tres directorios principales mas el de instalacion (media,patches,pkgs y o
pt/SUNWjet)
share -F nfs -o ro,anon=0 -d "JET Framework" /opt/SUNWjet
share -F nfs -o ro,anon=0 /usr/scripts/jumpstart/patches/eiscd/14DEC11
share -F nfs -o ro,anon=0 /usr/scripts/jumpstart/media/Solaris_10/Solaris_10/Tools/Boot
share -F nfs -o ro,anon=0 /usr/scripts/jumpstart/pkgs

# shareall
# make_client cabarulo
Gathering network information..
Client: 10.11.33.108 (10.11.33.0/255.255.255.0)
Server: 10.11.33.109 (10.11.33.0/255.255.255.0, SunOS)
Solaris: client_prevalidate
Clean up /etc/ethers
Solaris: client_build
Creating sysidcfg
Creating profile
Adding base_config specifics to client configuration
Adding sds specifics to client configuration
Adding sbd specifics to client configuration
SBD: Setting Secure By Default to limited_net
Adding eiscd specifics to client configuration
Solaris: Configuring JumpStart boot for cabarulo
Solaris: Configure bootparams build
Starting SMF services for JumpStart
cleaning up preexisting install client "cabarulo"
removing cabarulo from bootparams
removing /etc/bootparams, since it is empty
removing /tftpboot/inetboot.SUN4U.Solaris_10-1
updating /etc/bootparams
copying boot file to /tftpboot/inetboot.SUN4U.Solaris_10-1
Force bootparams terminal type
-Restart bootparamd
Running '/opt/SUNWjet/bin/check_client cabarulo'
Client: 10.11.33.108 (10.11.33.0/255.255.255.0)
Server: 10.11.33.109 (10.11.33.0/255.255.255.0, SunOS)
Checking product base_config/solaris
BASE_CONFIG/SOLARIS: JS_PKG_DIR is on a remote server. Not checking
BASE_CONFIG/SOLARIS: JS_PATCH_DIR is on a remote server. Not checking
Checking product sds
Product sbd does not support 'check_client'
Checking product explo
WARNING: EXPLO: Unable to locate package SUNWexplo
WARNING: EXPLO: Unable to locate package SUNWexplu
Checking product eiscd
EISCD: Using latest EISCD version -> 14DEC11
--------------------------------------------------------------
Check of client cabarulo

#######
En mi maquina virtual de Solaris x86, (luego de conectar los cables como muestro mas abajo en la foto ) hice
ifconfig e1000g0 10.11.33.109 netmask 255.255.255.0 up

svcadm restart svc:/network/rarp:default

####
Desde mi linux, hice:
minicom para conectarme a la consola del servidor v240 donde quiero hacer la instalacion
Una vez conectado y en OBP hice
boot net - install











Esta instalacion fue realizada en conjunto con mi compañero de equipo,Nicolas Morono

3 comentarios:

  1. Sos groso...SABELO!!!!

    Aguante la CONEJA y su secuaz NICO!!

    abrazo de gol (SKASQUI)

    ResponderEliminar
  2. algunos tips de cuando hacemos esto que no estan aca.
    Para ver desde obp que placa tiene link usamos
    watch-net-all
    Desde obp para ver la mac de las placas hacemos un cd a la direccion que nos mostro el watch-net-all
    y despues escribimos .properties y ahi nos muestra entre otras cosas la mac.

    ResponderEliminar
  3. Searching for the Ultimate Dating Website? Create an account to find your perfect date.

    ResponderEliminar