Difference between revisions of "Building a Jumpstart Server"

From Peter Pap's Technowiki
Jump to: navigation, search
Line 61: Line 61:
 
       root_password=Some_Encrypt_Password
 
       root_password=Some_Encrypt_Password
  
 +
The root_password can be copied from the shadow file of another server
  
9. Create a finish script in /jumpstart to do all the annoying stuff you'd normally do manually.
+
9. Create a finish script in /jumpstart to do all the annoying stuff you'd normally do manually.  Click [here] to find out how to write one.

Revision as of 01:49, 20 September 2010

Building a Jumpstart Server

Since Solaris 8, it has been possible to build servers over the network using Jumpstart. This procedure below describes the process for building a Solaris 10 Jumpstart install system, but can be done for Solaris 8, 9 and 10 on both sparc an x86 platforms.

1. Mount the Solaris CD 1 or DVD in the jumpstart server

2. On the jumpstart server

  mkdir /export/
  mkdir /export/install
  mkdir /export/install/10
  mkdir /export/install/10/sparc_REV

Where REV is some Solaris revision number.

  mkdir -m 755 /jumpstart

3. Edit the /etc/dfs/dfstab file by adding the following entry.

  share -F nfs -o ro,anon=0 /jumpstart

4. Copy sample jumpstart directory to local server.

  cp -r /cdrom/PATH_TO_INSTALLER/Solaris_10/Misc/jumpstart_sample/jumpstart_sample/* /jumpstart
  chown -R root /jumpstart

5. Copy over CD or DVD image

  mkdir /export/intall
  mkdir /export/intall/sparc_10_REV
  cd /cdrom/PATH_TO_INSTALLER/Solaris_10/Tools
  ./setup_install_server /export/install/10/sparc_REV
  
  * if you're doing this from CD, you will then need to mount the next disk and do:
  
  cd /cdrom/PATH_TO_INSTALLER/Solaris_10/Tools
  ./add_to_install_server /export/install/10/sparc_REV

6. Edit the /etc/dfs/dfstab file by adding the following entry:

  share -F nfs -o ro,anon=0 /export/install/10/sparc_REV

7. Start the NFS services

  shareall

NOTE: You may need to enable the NFS server daemon. If so, follow the instructions [here].

8. Create a sysidcfg file in /jumpstart

  cd /jumpstart
  vi sysidcfg
  
     system_locale=en_US.UTF-8
     timezone=Australia/Victoria
     terminal=vt100
     name_service=DNS{domain_name=yourdefaultdomain.com name_server=IP_OF_DNS_SERVER search=yourdefaultdomain.com}
     network_interface=PRIMARY{default_route=192.168.X.X netmask=255.255.255.0 protocol_ipv6=no}
     security_policy=NONE
     timeserver=192.168.X.X
     root_password=Some_Encrypt_Password

The root_password can be copied from the shadow file of another server

9. Create a finish script in /jumpstart to do all the annoying stuff you'd normally do manually. Click [here] to find out how to write one.