Obsolete:Installing Solaris

From Wikitech

{[archive}}

Setting up a jumpstart server for network installation of Solaris

Currently ms4 is set up as a jumpstart server for ptmpa for Solaris 10 update 7, and ms6 is set up as a jumpstart server in esams. You will need to start dchp (run /opt/SUNWjet/Products/base_config/solaris/make_dhcp) to ms6 before using it. The relevant files on both hosts are in /opt/SUNWjet and /export/install.

Follow the instructions below if you need to set up a new jumpstart server.

Solaris network installation is done via JumpStart. Instead of using JumpStart directly, most people use JET (the JumpStart Enterprise Toolkit), which makes it much easier.

Installing JET

If /opt/SUNWjet exists, JET is already installed and you can skip this step.

Obtain jet.pkg from Sun [1]. This requires a SunSolve user name and password. The package is small enough to download it locally and scp it over to your host (< 1 meg).

Now install it:

# pkgadd -d jet.pkg all

You accept the defaults by answering 'y' to the installer questions.

Edit /opt/SUNWjet/etc/jumpstart.conf. Set JS_Default_Root_PW to the hash of the root password (from /etc/shadow), and JS_CLIENT_MANAGEMENT to dhcp. The rest can be left at defaults, which will put install files in /export/install.

Edit /opt/SUNWjet/Products/base_config/solaris/make_dhcp to set the DHCP network config; you can use netstat -rvn to get the network details you need. Then change /var/tmp to /var/dhcp, and run it. This will configure the DHCP server.

Adding Solaris media

Download the version of Solaris you want fron Sun [2]. This requires a SunSolve user name and password. It also apparently requires you to fill out a pre-downlaoad survey. Get the dvd; clck through all the pages, click the package to download, and stop the download. Then copy the download url and use wget or the command line client of your choice on your server to download the file.

For each version of Solaris you want to install, you need to add the media to JET. Alter the below according to the version of Solaris you are installing.

# lofiadm -a /export/sol-10-u7-ga-x86-dvd.iso 
/dev/lofi/1
# mount -Fhsfs /dev/lofi/1 /mnt2
# /opt/SUNWjet/bin/copy_solaris_media -d Solaris_10_Update_7 -n s10_u7 /mnt2
(-d: target dir in /export/install. -n: os name.)
Copying Solaris image....
Verifying target directory...
Calculating the required disk space for the Solaris_10 product
Calculating space required for the installation boot image
Copying the CD image to disk...
Copying Install Boot Image hierarchy...
Copying /boot netboot hierarchy...
Install Server setup complete
 
Added Solaris image s10_u7 at the following location:
        Media:          /export/install/media/Solaris_10_Update_7

removing directory ./26661
# umount /mnt2
# lofiadm -d /dev/lofi/1
# /opt/SUNWjet/bin/list_solaris_locations                                   
Version         Location
-------         --------
s10_u7          /export/install/media/Solaris_10_Update_7

Adding an install client

Create a client template:

# /opt/SUNWjet/bin/make_template ms5

If there's already a client template for another machine in /opt/SUNWjet/Templates, you can copy that instead of creating a new one.

Edit /opt/SUNWjet/Templates/ms5 and configure the client as needed.

Create the actual client:

# /opt/SUNWjet/bin/make_client ms5

Installing the client

Tell the client to do a PXE boot; usually that means pressing a key during the BIOS POST. The system will perform a network installation:

Additional Information