tips‎ > ‎

Jumpstarting Zones


PREP

Zone host:
mkdir /usr/lib/jetzone/
ln -s /net/<jumpServer>/opt/SUNWjet/Products/zones/smf/jetzonefinish.xml /usr/lib/jetzone/jetzonefinish.xml
(or copy it)

add /etc/default/jetzone
JET_SERVER="i<jumpserveri>"
JET_CONFIG="/opt/SUNWjet"
JET_ZONEDIR="/zones"


cp /net/<jumpstart>/opt/SUNWjet/Products/zones/jetzone /usr/local/bin
chmod +x /usr/local/bin/jetzone


Configure Zone on JET server


Jumpstart server :
make_zone_template -f -T SUS_ZONE  <zonename>
make_client -f <zonename>

BUILDING

jetzone -F bluecat
JumpStart Enterprise Toolkit Zone creation: bluecat
Cleaning out zone bluecat
Uninstall zone bluecat
zoneadm: zone 'bluecat': is already in state 'configured'.
Cleaning up zone area
Mounting JET configuration area on /tmp/jet.8791
Loading zone bluecat configuration data
Forcing permissions to 700 for /zones/bluecat
Building zone bluecat configuration
Add network (aggr1/192.168.1.38/255.255.255.0) to zone
Creating zone bluecat
Installing zone bluecat
Preparing to install zone <bluecat>.
Creating list of files to copy from the global zone.
Copying <3135> files to the zone.
Initializing zone product registry.
Determining zone package initialization order.
Preparing to initialize <585> packages on the zone.
Initialized <585> packages on zone.                               
Zone <bluecat> is initialized.
Installation of <2> packages was skipped.
The file </zones/bluecat/root/var/sadm/system/logs/install_log> contains a log of the zone installation.
Populating zone bluecat sysidcfg
Disable NFSv4 prompt
Adding JET hook to zone bluecat
cp: cannot access /usr/lib/jetzone/jetzonefinish.xml
Booting zone bluecat
To monitor the installation of the zone, please run the command
    zlogin -C bluecat
   
    [Connected to zone 'bluecat' console]
    142/142
    Reading ZFS config: done.
    Creating new rsa public/private host key pair
    Creating new dsa public/private host key pair
    Configuring network interface addresses: aggr1.

    rebooting system due to change(s) in /etc/default/init


    [NOTICE: Zone rebooting]


    SunOS Release 5.10 Version Generic_142909-17 64-bit
    Copyright (c) 1983, 2010, Oracle and/or its affiliates. All rights reserved.
    Hostname: bluecat
    Reading ZFS config: done.
    Starting JumpStart Enterprise Toolkit helper script
    Mounting JET filesystem
    Starting JET finish script
    Installation of bluecat at 12:28 on 07-Dec-2010
    Loading JumpStart Server variables
    JumpStart Enterprise Toolkit version 4.8
    Loading Client configuration file
    Creating directory: /var/opt/sun/jet/post_install
    Creating directory: /var/opt/sun/jet/Utils
    Dec  7 12:28:18 bluecat sendmail[22716]: My unqualified host name (bluecat) unknown; sleeping for retry
    Creating directory: /var/opt/sun/jet/config
    Creating directory: /var/opt/sun/jet/js_media/patch
    Creating directory: /var/opt/sun/jet/js_media/pkg
    Dec  7 12:28:18 bluecat sendmail[22755]: My unqualified host name (bluecat) unknown; sleeping for retry
    Copying file Clients/bluecat/sysidcfg to //var/opt/sun/jet/config/sysidcfg
    Copying file Clients/bluecat/host.config to //var/opt/sun/jet/config/host.config
    Copying file Utils/solaris/releaseinfo to //var/opt/sun/jet/config/releaseinfo
    Copying functions to //var/opt/sun/jet/Utils/lib
    Copying file Clients/bluecat/module_hints to //var/opt/sun/jet/config/module_hints
    NFS Mounting Media Directories
    Mounting nfs://192.168.1.86/export/install/patches on //var/opt/sun/jet/js_media/patch
    Mounting nfs://192.168.1.86/export/install/pkgs on //var/opt/sun/jet/js_media/pkg
    BASE_CONFIG: Running base_config install script....
    BASE_CONFIG: Product base_config started
    BASE_CONFIG: Trying to use external matrix cmd /tmp/jet/Products/zones/empty-matrix
    BASE_CONFIG: External matrix cmd returned non-zero status or no entries
    BASE_CONFIG: Unable to locate package.matrix file... exiting.
    BASE_CONFIG: No HW specific packages for platform SUNW,SPARC-Enterprise-T5220
    BASE_CONFIG: Trying to use external matrix cmd /tmp/jet/Products/zones/empty-matrix
    BASE_CONFIG: External matrix cmd returned non-zero status or no entries
    BASE_CONFIG: Unable to locate patch.matrix file... exiting.
    BASE_CONFIG: No HW specific patches for platform SUNW,SPARC-Enterprise-T5220
    BASE_CONFIG: Set root password
    BASE_CONFIG: Setting netmask for primary interface
    BASE_CONFIG: Add netmask 192.168.1.0 / 255.255.255.0
    BASE_CONFIG: Disabling power management
    BASE_CONFIG: Creating directory: /var/opt/sun/jet/post_install/n-post
    BASE_CONFIG: Register postinstall script 'setupdumpdevice' for boot n
    BASE_CONFIG: Creating directory: /var/opt/sun/jet/post_install/n
    BASE_CONFIG: Register postinstall script 'run_sshkeygen' for boot n
    BASE_CONFIG: Setting system terminal type to vt100
    BASE_CONFIG: Register postinstall script 'console' for boot n
    BASE_CONFIG: Setting NFSv4 domain
    BASE_CONFIG: Creating directory: /var/opt/sun/jet/system.add
    BASE_CONFIG: Product base_config finished
    BASE_CONFIG: Running base_config install script....
    BASE_CONFIG: Product base_config started
    BASE_CONFIG: Trying to use external matrix cmd /tmp/jet/Products/zones/empty-matrix
    BASE_CONFIG: External matrix cmd returned non-zero status or no entries
    BASE_CONFIG: Unable to locate package.matrix file... exiting.
    BASE_CONFIG: No HW specific packages for platform SUNW,SPARC-Enterprise-T5220
    BASE_CONFIG: Trying to use external matrix cmd /tmp/jet/Products/zones/empty-matrix
    BASE_CONFIG: External matrix cmd returned non-zero status or no entries
    BASE_CONFIG: Unable to locate patch.matrix file... exiting.
    BASE_CONFIG: No HW specific patches for platform SUNW,SPARC-Enterprise-T5220
    BASE_CONFIG: Set root password
    BASE_CONFIG: Setting netmask for primary interface
    BASE_CONFIG: Disabling power management
    BASE_CONFIG: Register postinstall script 'setupdumpdevice' for boot n
    BASE_CONFIG: Register postinstall script 'run_sshkeygen' for boot n
    BASE_CONFIG: Setting system terminal type to vt100
    BASE_CONFIG: Register postinstall script 'console' for boot n
    BASE_CONFIG: Setting NFSv4 domain
    BASE_CONFIG: Product base_config finished
    CUSTOM: Running custom install script....
    CUSTOM: Copying file Clients/bluecat/../common.files/ntp.conf to //etc/inet/ntp.conf
    CUSTOM: Copying file Clients/bluecat/../common.files/etc_profile to //etc/profile
    CUSTOM: Copying file Clients/bluecat/../common.files/ITC_jet_post to //post_install/ITC_jet_post
    CUSTOM: Copying file Clients/bluecat/../common.files/deploy_foo_solaris to //post_install/deploy_altiris_solaris
    CUSTOM: Copying file Clients/bluecat/../common.files/syslog.conf to //etc/syslog.conf
    CUSTOM: Copying file Clients/bluecat/../common.files/jfdi to //post_install/jfdi
    CUSTOM: Register postinstall script 'ITC_jet_post' for boot n
    ----------------------------------------------------------
    Product modules processed, finish up installation tasks
    Creating directory: /var/opt/sun/jet/system.add/updated
    Copying file etc/jumpstart.conf to //var/opt/sun/jet/config/jumpstart.conf
    Copying file Utils/smf/jetjump.xml to //var/svc/manifest/site/jetjump.xml
    Copying file Utils/S99jumpstart to //var/opt/sun/jet/post_install/S99jumpstart
    NFS Unmounting Media Directories
    Unmounting /var/opt/sun/jet/js_media/pkg
    Unmounting /var/opt/sun/jet/js_media/patch
    Make a link to finish log...
    Updating boot-archive
    /: not a boot archive based Solaris instance
    Disable & delete SMF tag svc:/site/jetzonefinish

    bluecat console login: Dec  7 12:28:28 bluecat reboot: rebooted by LOGIN
    Dec  7 12:28:28 bluecat syslogd: going down on signal 15
    Dec  7 12:28:28 /usr/lib/snmp/snmpdx: received signal 15

    [NOTICE: Zone rebooting]


    SunOS Release 5.10 Version Generic_142909-17 64-bit
    Copyright (c) 1983, 2010, Oracle and/or its affiliates. All rights reserved.
    Hostname: bluecat
    Loading smf(5) service descriptions: 1/1
    Reading ZFS config: done.
    JumpStart (/var/opt/sun/jet/post_install/S99jumpstart) started @ Tue Dec  7 12:28:59 MET 2010
    Loading JumpStart Server variables
    Loading Client configuration file
    No more reboots required
    Running additional install files for reboot n
    NFS Mounting Media Directories
    Mounting nfs://192.168.1.86/export/install/patches on /var/opt/sun/jet/js_media/patch
    Dec  7 12:28:59 bluecat sendmail[24360]: My unqualified host name (bluecat) unknown; sleeping for retry
    Dec  7 12:28:59 bluecat sendmail[24364]: My unqualified host name (bluecat) unknown; sleeping for retry
    Mounting nfs://192.168.1.86/export/install/pkgs on /var/opt/sun/jet/js_media/pkg
    BASE_CONFIG: Running 001.base_config.001.run_sshkeygen
    BASE_CONFIG: Running 001.base_config.002.console
    BASE_CONFIG: Setting terminal type to vt100
    BASE_CONFIG: Running 001.base_config.003.run_sshkeygen
    BASE_CONFIG: Running 001.base_config.004.console
    BASE_CONFIG: Setting terminal type to vt100
    CUSTOM: Running 002.custom.001.ITC_jet_post
    Dec  7 12:29:31 bluecat sendmail[25179]: My unqualified host name (bluecat) unknown; sleeping for retry
    Dec  7 12:29:59 bluecat sendmail[24360]: unable to qualify my own domain name (bluecat) -- using short name
    Dec  7 12:29:59 bluecat sendmail[24364]: unable to qualify my own domain name (bluecat) -- using short name
    Dec  7 12:30:14 bluecat sshd[25284]: Failed keyboard-interactive for root from 10.128.101.58 port 56954 ssh2
    Dec  7 12:30:28 bluecat login: ROOT LOGIN /dev/pts/4
    Dec  7 12:30:31 bluecat sendmail[25179]: unable to qualify my own domain name (bluecat) -- using short name
    Dec  7 12:31:12 bluecat ntpdate[25718]: can't find host ntp1.ch.sus.local
    Dec  7 12:31:12 bluecat ntpdate[25718]: can't find host ntp2.ch.sus.local
    Dec  7 12:31:12 bluecat ntpdate[25718]: can't find host ntp3.ch.sus.local
    Dec  7 12:31:12 bluecat ntpdate[25718]: can't find host ntp4.ch.sus.local
    Dec  7 12:31:12 bluecat ntpdate[25718]: no servers can be used, exiting
    Dec  7 12:31:12 bluecat xntpd[25720]: sched_setscheduler(): Not owner
    Dec  7 12:31:12 bluecat xntpd[25720]: loop_config: ntp_adjtime() failed: Not owner
    Dec  7 12:31:12 bluecat last message repeated 1 time
    Dec  7 12:31:14 bluecat xntpd[25721]: couldn't resolve `ntp1.ch.sus.local', giving up on it
    Dec  7 12:31:14 bluecat xntpd[25721]: couldn't resolve `ntp2.ch.sus.local', giving up on it
    Dec  7 12:31:14 bluecat xntpd[25721]: couldn't resolve `ntp3.ch.sus.local', giving up on it
    Dec  7 12:31:14 bluecat xntpd[25721]: couldn't resolve `ntp4.SUS', giving up on it

    BASE_CONFIG: Running 001.base_config.001.setupdumpdevice
    BASE_CONFIG: Running 001.base_config.002.setupdumpdevice
    NFS Unmounting Media Directories
    Unmounting /var/opt/sun/jet/js_media/pkg
    Unmounting /var/opt/sun/jet/js_media/patch
    Disable & delete SMF tag svc:/site/jetjump

    bluecat console login: JumpStart is complete @ Tue Dec  7 12:32:44 MET 2010
   
   
   
   




Comments