You are on page 1of 3

#####################################################

Solaris x86 PXE Jumpstart Installation (same subnet)


#####################################################

1. Insert the Solaris installation media on the installation server. Normally th


e media will be mounted automatically under /cdrom

2. Create a directory /export/install and run:


# cd /cdrom/sol_10_106_x86/Solaris_10/Tools
# ./setup_install_server /export/install

3. Create a directory: /export/config


# mkdir /export/config/

4. In case you want to install several clients with different installation optio
ns, create the respective directories /export/config/<clienthostname>:
# mkdir /export/config/adr-csas11
# mkdir /export/config/adr-csas12

5. Create the /export/config/<clienthostname>/sysidcfg file for each client. Eac


h client can have its own sysidcfg file, or multiple clients can use the same sy
sidcfg file:
# cd /export/config/adr-csas11
# vi sysidcfg
network_interface=primary{protocol_ipv6=no netmask=<netmask> default_route=<rout
erip>}
security_policy=none
name_service=none
timezone=Europe/Athens
system_locale=en_US.ISO8859-1
root_password=<root_password_shadow>

6. Create the /export/config/profileX files for each client. One profile can be
used from multiple clients depending on the installation options:
# cd /export/config
# vi profile1
install_type initial_install
system_type standalone
partitioning explicit
filesys c1t0d0s0 free /
filesys c1t0d0s1 24576 swap
filesys c1t0d0s3 100
cluster SUNWCXall
package SUNWapch2r delete
package SUNWapch2u delete
package SUNWapch2d delete
package SUNWapchr delete
package SUNWapchu delete
package SUNWapchd delete

7. Create into the /export/config directory the rules file:


# vi rules
hostname adr-csas11 - profile1 -
hostname adr-csas12 - profile2

8. Copy and run the check script. If no errors are found, the rules.ok file is c
reated.
# cd /export/config
# cp /export/install/Solaris_10/Misc/jumpstart_sample/check .
# ./check

9. Export the installation and configuration directories to the network by addin


g in the /etc/dfs/dfstab file the lines:
share F nfs o ro,anon=0 /export/install
share F nfs o ro,anon=0 /export/config
After saving and exiting the editor, you should then enable or restart the NFS s
erver by running the following:
# svcadm enable svc:/network/nfs/server ; shareall

10. If a DHCP server is already configured, you can unconfigure that by running:
# dhcpconfig Ux

11. The following script simplifies most generic DHCP configurations for PXE. Ma
ke a copy and run it.
#!/bin/sh
dhcpconfig -D -r SUNWbinfiles -p /var/dhcp
dhcpconfig -N <network> -m <netmask> -t <routerip>
dhtadm -A -s SrootOpt -d 'Vendor=SUNW.i86pc,1,ASCII,1,0'
dhtadm -A -s SrootIP4 -d 'Vendor=SUNW.i86pc,2,IP,1,1'
dhtadm -A -s SrootNM -d 'Vendor=SUNW.i86pc,3,ASCII,1,0'
dhtadm -A -s SrootPTH -d 'Vendor=SUNW.i86pc,4,ASCII,1,0'
dhtadm -A -s SswapIP4 -d 'Vendor=SUNW.i86pc,5,IP,1,0'
dhtadm -A -s SswapPTH -d 'Vendor=SUNW.i86pc,6,ASCII,1,0'
dhtadm -A -s SbootFIL -d 'Vendor=SUNW.i86pc,7,ASCII,1,0'
dhtadm -A -s Stz -d 'Vendor=SUNW.i86pc,8,ASCII,1,0'
dhtadm -A -s SbootRS -d 'Vendor=SUNW.i86pc,9,NUMBER,2,1'
dhtadm -A -s SinstIP4 -d 'Vendor=SUNW.i86pc,10,IP,1,1'
dhtadm -A -s SinstNM -d 'Vendor=SUNW.i86pc,11,ASCII,1,0'
dhtadm -A -s SinstPTH -d 'Vendor=SUNW.i86pc,12,ASCII,1,0'
dhtadm -A -s SsysidCF -d 'Vendor=SUNW.i86pc,13,ASCII,1,0'
dhtadm -A -s SjumpsCF -d 'Vendor=SUNW.i86pc,14,ASCII,1,0'
dhtadm -A -s Sterm -d 'Vendor=SUNW.i86pc,15,ASCII,1,0'
dhtadm -A -s SbootURI -d 'Vendor=SUNW.i86pc,16,ASCII,1,0'
12. Edit the /etc/ethers file by adding the MAC addresses and the hostnames of t
he installation clients:
# vi /etc/ethers
00:26:9E:58:5A:52 adr-csas11
00:26:9E:58:5A:50 adr-csas12

13. Edit the /etc/hosts file by adding the IP addresses and the hostnames of the
installation clients:
# vi /etc/hosts
10.0.0.10 adr-csas11
10.0.0.11 adr-csas12

14. To configure the boot files for TFTP "client-specifically" run the following
command from the /export/install/images/Solaris_10/Tools directory for each ins
tallation client: ./add_install_client -d -e <clientether> -s <server>:/export/i
nstall -c <server>:/export/config -p <server>:/export/config/<clienthostname> i8
6pc
# ./add_install_client -d -e 00:26:9E:58:5A:52 -s 10.0.0.2:/export/install -c 10
.0.0.2:/export/config -p 10.0.0.2:/export/config/adr-csas12 i86pc
# ./add_install_client -d -e 00:26:9E:58:5A:50 -s 10.0.0.2:/export/install -c 10
.0.0.2:/export/config -p 10.0.0.2:/export/config/adr-csas11 i86pc

15. Add the installation clients to the DHCP server client table with the pntadm
command: pntadm -A <clientip> -i <clientether> -m <clienthostname> -s <serverip
> <network>
Note: The MAC address should be entered with "01" in front and without ":".
# pntadm -A 10.0.0.10 -i 0100269E585A52 -m adr-csas11 -s 10.0.0.2 10.0.0.0
# pntadm -A 10.0.0.11 -i 0100269E585A50 -m adr-csas12 -s 10.0.0.2 10.0.0.0

16. Assosiate the clients with the respective boot files with the dhtadm command
: dhtadm -A -m <clienthostname> -d ':BootFile="<clientether>":BootSrvA=<serverip
>:'
# dhtadm -A -m adr-csas11 -d ':BootFile="0100269E585A52":BootSrvA=10.0.0.2:'
# dhtadm -A -m adr-csas12 -d ':BootFile="0100269E585A50":BootSrvA=10.0.0.2:'

17. Force the DHCP server to reread its configuration by sending a HUP signal:
# pkill HUP in.dhcpd

18. On the client enter the bios setup menu and set "Boot from Network".

You might also like