Monday, May 31, 2010

Solaris AI Server Setup and Configuration

Setup the Automated Installer for the server:
A. Setup AI server
1. copy osol-0906-ai-sparc.iso and osol-0906-x86.iso images to AI server
2. setup a private network for dhcp
3. configure dhcp to support the second nic (use dhcpmanager)

B: Setup repository
1. copy repository iso image to AI server (example osol-repo-133-full.iso)
2. lofiadm -a / osol-repo-133-full.iso
3. mount /lofi/# /mnt/repo where # is the number from step 2 display
4. rsync -a P /mnt/repo
5. /usr/lib/pkg.depotd -d -p 11000 where -d is directory of repo
   and -p is the port number
6. run browser, and enter this "http://localhost:11000"; will display your current build 133

C. create service and to run AI installation
1. installadm create-service -n name -s iso_image (example osol-0906-ai-sparc.iso)  /location (example /stf_test/snv133/sparc_133)
2. installadm create-client -e mac -n name
3. cd to /location/auto_install directory
4. copy default.xml to test.xml
5. vi test.xml
6. search for http, and change the ip to your AIserver and remove "/release"
7. search for reboot and insert this line above: http://AIserver ip:port number"/>
               example: http://10.192.192.159:11000"/>
8. cd to your /repo directory
9. vi cfg_cache, search for origins and change to http://10.192.192.159
10. run "/usr/sbin/pkg.depotd -d /repo -p 11000"
11. For SPARC: do step 2
             

client setup( example use SPARC system):
  1. boot net:dhcp – install
client setup( example use x86 system):
1.      use PXE boot option
   
   sample output
####
{3} ok boot net:dhcp - install

Sun Fire(TM) T1000, No Keyboard
Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
OpenBoot 4.23.4, 8184 MB memory available, Serial #69329298.
Ethernet address 0:14:4f:21:e1:92, Host ID: 8421e192.

Rebooting with command: boot net:dhcp
Boot device: /pci@7c0/pci@0/network@4:dhcp  File and args:
1000 Mbps FDX Link up
1000 Mbps FDX Link up
Tue Aug  5 17:12:09 wanboot progress: miniroot: Read 165251 of 165251 kB (100%)
Tue Aug  5 17:12:09 wanboot info: miniroot: Download complete
SunOS Release 5.11 Version snv_111 64-bit
Copyright 1983-2009 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
Hostname: opensolaris
Remounting root read/write
Probing for device nodes ...
Preparing automated install image for use
Downloading solaris.zlib archive
--11:09:11--  http://10.6.35.226:5555//export/home \
/images/osol-0906-ai-sparc//solaris.zlib
           => `/tmp/solarismisc.zlib'
Connecting to 10.6.35.226:5555... connected.
HTTP request sent, awaiting response... 200 OK
Length: 620,032 (606K) [text/plain]

100%[====================================>] 620,032       --.--K/s            

11:09:13 (36.48 MB/s) - `/tmp/solarismisc.zlib' saved [620032/620032]

--11:09:13--  http://10.6.35.226:5555//export/home/images/ \
osol-0906-ai-sparc//install.conf
           => `/tmp/install.conf'
Connecting to 10.6.35.226:5555... connected.
HTTP request sent, awaiting response... 200 OK
Length: 39 [text/plain]

100%[====================================>] 39            --.--K/s            

11:09:13 (953.58 KB/s) - `/tmp/install.conf' saved [39/39]

Done mounting automated install image
Configuring devices.
Reading ZFS config: done.

Automated Installation started
Login:- jack
Pass:- jack
The progress of the Automated Installation can be followed by
viewing the logfile at /tmp/install_log
#####

1 comment:

  1. where can i get the full repo?
    osol-repo-133-full.iso

    thanks!

    ReplyDelete