I'm rebuilding some of my environments and wanted to share the relevant steps...

Staging a Solaris 10 system for Java Enterprise System

I have attached my configuration notes for this process, a much more comprehensive description of Solaris Zones in general is available.

1) Install Solaris 10
  • I attempted to minimize the number of packages, but with limited time, I used the end user cluster minus Star Office and Evolution.
  • I added the extra packages required by the JES components (per user, etc.) See the Java Enterprise System docs for full instructions.
2) Create a zone for installation of the Java Enterprise System

# mkdir -p /zone/jes3
# chmod 700 /zone/jes3


Create a zone configuration file for a full root zone (required by JES)

# more jes3zone.cfg
create -b
set zonepath=/zone/jes3
set autoboot=false
add net
set address=192.168.159.90
set physical=pcn0
end


# zonecfg -z jes3 -f jes3zone.cfg
# zoneadm -z jes3 install


To boot the zone:

#zoneadm -z jes3 boot

To access the zone console (to answer the first time startup questions)

#zlogin -C jes3
(To break out of zlogin: ~.)


To Shut down the zone:

#zoneadm -z jes3 halt

After booting the zone you can install the Java Enterprise System from the zone. The installation bits must be made available to the zone. This seems easy enough, here are a few options:

  • 1) copy the bits into the zone and install - since I have limited disk space available this was not an option
  • 2) use the global zone cdrom and use a loop back file system to mount the global zone's cdrom from the zone: (warning, this get you access to the cdrom, but I had problems with the jes installer with this approach, exploring why...)


  • -Shut down the zone

    # zonecfg -z jes3
    add fs
    set dir=/cdrom
    set special=/cdrom
    set type=lofs
    set options=[nodevices]
    end
    
  • 3) Add the cdrom device to the zone (Red flags all over on this one, all docs suggest that sharing devices to zones should not be done)
  • 4) Use NFS - This is an old standby and was the right solution for me. It is easy to configure and worked great.


  • From the global zone:

    #vi /etc/dfs/dfstab
    add the following line to this file to share the cdrom with nfs:
    


    share -F nfs -o ro /cdrom/cdrom0

    #/etc/init.d/nfs.server start

    To validate the share is accessible:

    #share
    -               /cdrom/jes_05q1_sol_x86   ro   ""
    (note: it shows the name of the cdrom)
    


    From the zone mount the nfs share:

    #mkdir /globalcdrom
    #mount -F nfs idm:/cdrom/jes_05q1_sol_x86
    (note: I used the name of the cdrom to mount)
    


    Now the installation can proceed from /globalcdrom


Comments:

The NFS solution is OK if you only need to do it once, or if you don't mind unsharing, editing /etc/dfs/dfstab to put in the new /cdrom path, and resharing every time you need to read another CD in the zone.

I remember that just sharing /cdrom/cdrom0 didn't work, i.e., I had to share the explicit volume path.

I found this page (#1 googleresult for "solaris 10"+~zone+/cdrom+lofs") because I'd done that before (NFS) and didn't want to get stuck doing this over and over for a user who needed several CD mounts.

I did the zonecfg steps you listed, works like a charm. I wonder what the installer problem was? (the user wants to install... film at eleven :-)

Posted by Brad Morrison on December 12, 2007 at 03:15 PM CST #

Post a Comment:
  • HTML Syntax: NOT allowed

This blog copyright 2009 by harcey