r19 - 10 Sep 2008 - 15:01:27 - StephenQYou are here: Wiki >  AppLogic24 Web > CatGenericSol10Cid
ALERT! AppLogic 2.4 Documentation The latest production release is AppLogic 3.0.30

SOL10 - Solaris Server based on Solaris 10 build GA - Implementation Design

Base Class

SOL10 is based on Solaris 10. It is created from an image of the Solaris 10 install dvd.

Class Volume

The Solaris 10 Server has a single volume:

  • boot volume: 4 GB, mounted as "/", read-write

Packages

None.

Contents of the release directory

Exported appliance image

  • sol10-1.0.0-1.tar.bz2

Appliance sources

  • sol10-1.0.0-1-src.tar.bz2: tar of all the files used to recreate the appliance

Tests

  • sol10-tst-app.tar.bz2: test harness

Re-install Procedure

Here are the steps to create an OSOL64 appliance on an AppLogic grid (ALERT!This requires maintainer access to the grid):

Preparation

  • Copy and uncompress sol10-1.0.0-1-src.tar.bz2 on the impex volume of the grid controller. The archive extracts its contents into the directory work_SOL10.
  • Include the current Solaris APK in this directory. Edit the file setenv.sh to use current version settings.
  • On dom0 of srv1 create a directory /var/applogic/sol10_build. From /vol/_impex/work_SOL10 on the controller, scp the archive sol10_dom0.tar.gz to this directory and unpack it. The archive contains configuration files for xm create.
  • Download sol-10-GA-x86-dvd.iso from http://www.sun.com to the impex volume, and then push it using scp to the dom0 working directory.
  • Install a vnc viewer on your local machine (for example TightVNC viewer available at http://www.tightvnc.com/)
  • Disable vnp on your grid. On your aldo server, in the directory corresponding to your version of AppLogic, execute:
    • ./aldo set use_vnp=0 controller_ip=your_controller_ip grid=your_grid_name
  • Reboot the grid
  • In dom0 of your grid, /etc/init.d/iptables stop

Create an installed Solaris 10 image

Here are the steps to create a Solaris Server appliance on an AppLogic grid:
  1. In dom0, create a bootable Solaris disk image from the install dvd image:
    • prepare a file for the disk image and associate it with a loop device
      • dd if=/dev/zero of=disk-image bs=1k seek=4095k count=1k
      • losetup /dev/loop0 /var/applogic/sol10_build/disk-image Make certain /dev/loop0 is not in use first.
    • edit sol10-install to use the IP address of srv1 on your grid: vnclisten='your_srv1_ip'
    • xm create sol10-install
    • Set a root password and setup a network configuration which works on your grid. Select manual reboot. Select the complete install and then remove the following packages:
      • A set of Java Demo Applications
      • CD creation utilities
      • DVD creation utilities
      • CDE Developer Software
      • CDE End User Software
      • CDE Motif Manuals
      • CDE Runtime Software
      • Evolution
      • Evolution Developer Packages
      • GNOME Accessibility
      • GNOME Accissibility Developer Packages
      • GNOME Applications
      • GNOME Developer Packages
      • GNOME Extras
      • GNOME Generic Libraries Developer Packages
      • GNOME Runtime remove these:
        • GNOME audio support Framework
        • GNOME free CD database access library
        • GNOME printing technology
        • GNOME removable media support
        • GNOME session manage
        • GNOME themes and support libraries
        • GNOME window manage
      • Mozilla
      • Mozilla Developer cluster
      • SUNWCbrowser
      • SUNWCbrowserdev
      • StarOffice 8.0
      • Sun Java(tm) Desktop (all)
    • Use a single boot volume with a single partition /. When prompted enter ! for the manual boot and:
      • TERM=xterm
      • export TERM
      • tput reset
      • echo 'set xnf:xnf_cksum_offload = 0' >>/a/etc/system
      • edit /a/etc/ssh/sshd_config and set PermitRootLogin yes and PasswordAuthentication yes
      • bootadm update-archive -R /a This can silently fail, returning you at once to the prompt without indicating updating /platform/i86pc/boot_archive etc.
      • shutdown -y -g0 -i0
    • xm create sol10-run After logging in, execute bootadm update-archive followed by shutdown -y -g0 -i0
    • losetup -d /dev/loop0
  2. Copy and uncompress sol10-1.0.0-1-src.tar.bz2 on the impex volume of the grid controller.
  3. scp the Solaris 10 disk image from dom0 to /vol/_impex/work_SOL10/. on the controller
    • for example scp x.x.x.x:/var/applogic/sol10_build/disk-image /vol/_impex/work_SOL10/.
  4. In the working directory /vol/_impex/work_SOL10/, edit setenv.sh to use current version information. Execute the script mksol10A.sh, which performs the following:
    • rename, gzip and move the Solaris 10 boot volume image
    • import the application build_SOL10 and start it
  5. ssh to the Solaris 10 appliance using the IP configured during installation and the root password.
    • mkdir -m 700 /.ssh and create /.ssh/authorized_keys mode 600 and include your public key
    • /lib/svc/method/sshd restart
    • verify you can ssh from the grid controller to the running Solaris 10 VM using this key
    • edit boot/grub/menu.lst and append -B console=ttya to the kernel line of the standard boot (not the failsafe).
    • set the root password to a generated UUID
  6. Execute the script mksol10B.sh IP where IP is the IP of the Solaris 10 VM. This performs the following:
    • install the Solaris APK:
    • copy server-specific files to the boot volume
    • disable un-necessary services on the appliance
    • change the root home directory to /root
    • stop and export the application
    • create the release tar sol10_r1-1.0.0-1.tar.bz2 under /vol/_impex
  7. NOTE: All operations are logged to mksol10X.log. Check the logs in case of any failures.

Theory of Operation

None.

Configuration

None.

External network setup

None

Log Files

All logging services are enabled per the original install and log rotation occurs according to the default entries in /etc/logadm.conf

Important Notes

None

-- StephenQ - 20 Mar 2008

 
Copyright © CA 2005-2011. All Rights Reserved.
%