Difference between revisions of "Building a Jumpstart Server"

From Peter Pap's Technowiki
Jump to: navigation, search
(Building a Jumpstart Server)
 
(3 intermediate revisions by the same user not shown)
Line 32: Line 32:
 
   ./setup_install_server /export/install/10/sparc_REV
 
   ./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:
+
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
 
   cd /cdrom/PATH_TO_INSTALLER/Solaris_10/Tools
Line 44: Line 44:
  
 
   shareall
 
   shareall
 +
 +
NOTE: You may need to enable the NFS server daemon.  If so, follow these instructions [http://www.peterpap.net/index.php/Enabling_NFS].
  
 
8. Create a sysidcfg file in /jumpstart
 
8. Create a sysidcfg file in /jumpstart
Line 50: Line 52:
 
   vi sysidcfg
 
   vi sysidcfg
 
    
 
    
       system_locale=en_AU.ISO8859-1
+
       system_locale=en_US.UTF-8
 
       timezone=Australia/Victoria
 
       timezone=Australia/Victoria
 
       terminal=vt100
 
       terminal=vt100
       name_service=DNS{domain_name=verisign.com.au name_server=139.130.4.4 search=verisign.com.au}
+
       name_service=DNS{domain_name=yourdefaultdomain.com name_server=IP_OF_DNS_SERVER search=yourdefaultdomain.com}
       network_interface=PRIMARY{default_route=192.168.11.1 netmask=255.255.255.0 protocol_ipv6=no}
+
       network_interface=PRIMARY{default_route=192.168.X.X netmask=255.255.255.0 protocol_ipv6=no}
 
       security_policy=NONE
 
       security_policy=NONE
       timeserver=192.168.6.4
+
       timeserver=192.168.X.X
       root_password=b3guwYQnKuMFk
+
       root_password=Some_Encrypt_Password
 
 
  NOTE:  The above config is used for the Technical network only, i.e. 192.168.11.*
 
  
9. Create a finish script in /jumpstart to do all the annoying stuff you'd normally do manually. Click on the links below to see the contents of the current finish scripts.
+
The root_password can be copied from the shadow file of another server
  
  * [[solaris8-finish.sh]]
+
9. Create a finish script in /jumpstart to do all the annoying stuff you'd normally do manually. To find out how to write one, read this link [asd].
  * [[solaris10-finish.sh]]
 

Latest revision as of 02:09, 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 these instructions [1].

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. To find out how to write one, read this link [asd].