Solaris 10 Jumpstart Server

CLIENT PREPARATION
-sometime the IDE disk didn’t recognized correctly by solaris, especially in x86 IDE disk.
It shown unknown disk type.

To correct that:
1. boot from sol10 cd
2. do format command to check location of the disk
# format
let say its in c1d0 and c2d0
3. do fdisk -B
# fdisk -B /dev/rdsk/c1d0p0
# fdisk -B /dev/rdsk/c2d0p0
4. create slice 0 on each disk
# format
choose the disk and create partition
-for external usb disk
# rmformat
Looking for devices…
1. Volmgt Node: /vol/dev/aliases/cdrom0
Logical Node: /dev/rdsk/c1t0d0s2
Physical Node: /pci@0,0/pci-ide@1f,1/ide@0/sd@0,0
Connected Device: HL-DT-ST DVD-ROM GDR-T10N 1.02
Device Type: DVD Reader
2. Volmgt Node: /vol/dev/aliases/rmdisk0
Logical Node: /dev/rdsk/c3t0d0p0
Physical Node: /pci@0,0/pci1028,1b2@1d,7/hub@5/storage@1/disk@0,0
Connected Device: IC25N030 ATCS04-0 0811
Device Type: Removable
3. Logical Node: /dev/rdsk/c3t0d0s2
Physical Node: /pci@0,0/pci1028,1b2@1d,7/hub@5/storage@1/disk@0,0
Connected Device: IC25N030 ATCS04-0 0811
Device Type: Removable

# fdisk -B Looking for devices…
1. Volmgt Node: /vol/dev/aliases/cdrom0
Logical Node: /dev/rdsk/c1t0d0s2
Physical Node: /pci@0,0/pci-ide@1f,1/ide@0/sd@0,0
Connected Device: HL-DT-ST DVD-ROM GDR-T10N 1.02
Device Type: DVD Reader
2. Volmgt Node: /vol/dev/aliases/rmdisk0
Logical Node: /dev/rdsk/c3t0d0p0
Physical Node: /pci@0,0/pci1028,1b2@1d,7/hub@5/storage@1/disk@0,0
Connected Device: IC25N030 ATCS04-0 0811
Device Type: Removable
3. Logical Node: /dev/rdsk/c3t0d0s2
Physical Node: /pci@0,0/pci1028,1b2@1d,7/hub@5/storage@1/disk@0,0
Connected Device: IC25N030 ATCS04-0 0811
Device Type: Removable

# fdisk -B /dev/rdsk/c3t0d0p0
You may need to use fdisk interactively if the disk already had PC style partitioning on it to remove all other partitions before proceeding.
Add a label: rmformat -b usb-sam /dev/rdsk/c2t0d0p0
Check client device ethernet device

-for Solaris 10
# dladm show-dev
# dladm show-link
or
prtconf -D

Check MAC address of that client device
# ifconfig bge0 plumb up
# ifconfig bge0 172.16.2.245 netmask 255.255.255.0
# ifconfig bge0

JUMPSTART SERVER PREPARATION
SUNWJET
# bunzip2 jet.pkg.bz2
# pkgadd -d jet.pkg

The following packages are available:
1 JetEXPLO jet explo product
(sparc) 3.1.17
2 JetFLASH JET flash product
(sparc) 3.1.9
3 JetISO JET ISO product
(sparc) 1.0.0
4 JetJASS JASS product
(sparc) 3.0.15
5 JetLDOM JET LDOM product
(sparc) 1.0.9
6 JetRBAC JET RBAC product
(sparc) 1.1.5
7 JetSAN JET san product
(sparc) 3.1.8
8 JetSBD Secure By Default product
(sparc) 1.0.2
9 JetSDS JET sds product
(sparc,i386) 3.4.5c
10 JetVTS JET VTS product
(sparc) 3.0.12
11 JetWanBoot JET WanBoot support
(sparc) 1.1.4
12 JetZFS JET zfs product
(sparc) 1.0.3
13 JetZONES JET Zones module
(sparc) 1.1.20
14 SUNWjet Sun JumpStart Enterprise Toolkit
(sparc,i386) 4.4.7
15 SUNWjetd JET Documentation
(sparc) 3.3.1
Select package(s) you wish to process (or ’all’ to process
all packages). (default: all) [?,??,q]: q
LIST OF SUNWjet module
+ base_config
+ zones
+ sbd
+ sds
+ custom
+ explo
+ flash
+ jass
+ zfs
+ ldom
+ vts
+ san

COPY SOLARIS MEDIA
-For Solaris 10x86u6
# /opt/SUNWjet/bin/copy_solaris_media -d Solaris10_U6_x86 -n Solaris10_U6_x86 /cdrom/cdrom0
# mkdir -p /export/install/pkgs
# mkdir -p /export/install/patches

MODIFY BASE_CONFIG
checke these lines in base_config.conf
# vi /opt/SUNWjet/Products/base_config/solaris/base_config.conf
base_config_sysidcfg_netmask=255.255.255.0
base_config_sysidcfg_root_password=”boajrOmU7GFmY”
base_config_sysidcfg_system_locale=”C”
base_config_sysidcfg_timeserver=localhost
base_config_sysidcfg_timezone=”Asia/Brunei”
base_config_profile_cluster=SUNWCall

COPY SUNWEXPLO
-download and extract SunExplorer from http://www.sun.com/service/stb/index.jsp and click “Software Download and Documentation”
In this example we have SUNWexplo ver 5.13 and we put under /export/home/nawir directory
-modify /opt/SUNWjet/Products/explo/package.matrix
# echo “5.10:5.13:SUNWexplo SUNWexplu” >> /opt/SUNWjet/Products/explo/package.matrix
-check these only in /opt/SUNWjet/Products/explo/explo.conf
# cat /opt/SUNWjet/Products/explo/explo.conf
explo_product_version=”5.13″
explo_ADDRESS_CITY=”BSB”
explo_ADDRESS_STATE=”BSB”
explo_ADDRESS_COUNTRY=”Brunei”
explo_EMAIL=”explorer-database-apac@sun.com”
explo_GEO=”APAC”
explo_ADDRESS_COUNTRY_CODE=”BN”
# /opt/SUNWjet/bin/copy_product_media explo 5.13 /export/home/nawir/ sparc
# /opt/SUNWjet/bin/copy_product_media explo 5.13 /export/home/nawir/ i386
COPY SUNWJASS
-download SUNWjass from http://www.sun.com/software/security/jass/ and exract into /export/home/nawir
# /opt/SUNWjet/bin/copy_product_media jass 4.2.0 /export/home/nawir sparc
# /opt/SUNWjet/bin/copy_product_media jass 4.2.0 /export/home/nawir 1386
-download SUNWjass patch 122608 from sunsolve, put into /export/home/nawir and extract it
# cd /export/home/nawir
# /opt/SUNWjet/bin/copy_product_patches jass 4.2.0 /export/home/nawir i386
-modify template like this
base_config_products=” custom sbd sds jass”
jass_product_version=”4.2.0″
jass_execute=”secure.driver”
COPY SUNVTS
-download sparc and i86pc and extract into /export/home/nawir SUNWvts from http://www.sun.com/oem/products/vts/
# /opt/SUNWjet/bin/copy_product_media vts 6.4 /export/home/nawir sparc
# /opt/SUNWjet/bin/copy_product_media vts 6.4 /export/home/nawir i386
# vi /opt/SUNWjet/Products/vts/vts.conf
make sure
vts_product_version=”6.4″
# vi /opt/SUNWjet/Products/vts/patch.matrix
change
5.10:i386:6.4:127295
to
5.10:i386:6.4:136678
change
5.10:sparc:6.4:136677
to
5.10:sparc:6.4:138179
-download patch 136678 and 138179 from sunsolve.sun.com
-copy patch to jumpstart
# /opt/SUNWjet/bin/copy_product_patches vts 6.4 /export/home/nawir i386
# /opt/SUNWjet/bin/copy_product_patches vts 6.4 /export/home/nawir sparc
MAKE DHCP SERVER
# cd /opt/SUNWjet/Products/base_config/solaris
# cat make_dhcp
NETWORK=172.16.2.0
NETMASK=255.255.255.0
ROUTER=172.16.2.1
dhcpconfig -D -r SUNWfiles -p /var/tmp
dhcpconfig -N ${NETWORK} -m ${NETMASK} -t ${ROUTER}
# ./make_dhcp
CREATING TEMPLATE FOR NEW CLIENT
# /opt/SUNWjet/bin/make_template -f apple zfs zones sbd vts explo
# cd /opt/SUNWjet/Templates
-modify apple (x86 sample)
# cat apple
base_config_ClientArch=”i86pc”
base_config_ClientEther=”00:1e:c9:bb:b7:fe”
base_config_ClientOS=”Solaris10_U6_x86″
base_config_client_allocation=””
base_config_grub_append=””
base_config_products=”zfs zones sbs”
base_config_sysidcfg_nameservice=NONE
base_config_sysidcfg_network_interface=PRIMARY
base_config_sysidcfg_ip_address=172.16.2.245
base_config_sysidcfg_netmask=255.255.255.0
base_config_sysidcfg_root_password=”boajrOmU7GFmY”
base_config_sysidcfg_system_locale=”C”
base_config_sysidcfg_timeserver=localhost
base_config_sysidcfg_timezone=”Asia/Brunei”
base_config_sysidcfg_terminal=vt100
base_config_sysidcfg_security_policy=NONE
base_config_sysidcfg_protocol_ipv6=no
base_config_sysidcfg_default_route=172.16.2.1
base_config_x86_nowin=”yes”
base_config_x86_console=””
base_config_x86_disable_acpi=””
base_config_x86_safetoreboot=””
base_config_x86_disable_kdmconfig=””
base_config_x86_confflags=””
base_config_sysidcfg_x86_kdmfile=””
base_config_label_disks=””
base_config_profile_fdisk=””
base_config_profile=””
base_config_profile_append=””
base_config_profile_cluster=SUNWCall
base_config_profile_zfs_disk=”c1d0s0 c2d0s0″
base_config_profile_zfs_pool=”rpool”
base_config_profile_zfs_be=”sol10u6″
base_config_profile_zfs_size=”auto”
base_config_profile_zfs_swap=”auto”
base_config_profile_zfs_dump=”auto”
base_config_profile_usedisk=rootdisk.
base_config_profile_dontuse=””
base_config_profile_root=free
base_config_profile_swap=2048
base_config_profile_s3_mtpt=””
base_config_profile_s3_size=””
base_config_profile_s4_mtpt=””
base_config_profile_s4_size=””
base_config_profile_s5_mtpt=”/var”
base_config_profile_s5_size=””
base_config_profile_s6_mtpt=”/usr”
base_config_profile_s6_size=””
base_config_profile_s7_mtpt=”/opt”
base_config_profile_s7_size=””
base_config_profile_additional_disks=””
base_config_ufs_logging_filesys=”all”
base_config_ufs_noatime_filesys=””
base_config_profile_add_locales=””
base_config_profile_del_locales=””
base_config_profile_add_geos=””
base_config_profile_del_geos=””
base_config_profile_add_packages=””
base_config_profile_del_packages=””
base_config_profile_add_clusters=””
base_config_profile_del_clusters=””
base_config_nfs_mounts=””
base_config_nodename=””
base_config_defaultrouter=””
base_config_notrouter=””
base_config_dns_domain=””
base_config_dns_nameservers=””
base_config_dns_searchpath=””
base_config_dns_disableforbuild=”yes”
base_config_ntp_servers=””
base_config_networkifs=””
base_config_networkif_ge0=”
base_config_networkif_ge0_1=””
base_config_ipmp_networkifs=””
base_config_ipmp_networkif_qfe0_qfe1=””
base_config_update_terminal=”yes”
base_config_enable_savecore=”yes”
base_config_dumpadm_minfree=”20000k”
base_config_noautoshutdown=”pm_disabled”
base_config_enable_rootlogin=””
base_config_enable_rootftp=””
base_config_shutup_sendmail=””
base_config_poweroff_afterbuild=””
base_config_dedicated_dump_device=””
base_config_enable_altbreak=””
base_config_disable_sysid_probe=””
base_config_nfsv4_domain=””
base_config_productdir=””
base_config_patchdir=””
base_config_debug_jumpstart_postinstall=””
zfs_product_version=”1.0″
zfs_pools=””
zfs_forcepool=””
zfs_apply_simple_vtoc=””
zones_jet_serverip=””
zones_jet_cfgdir=””
zones_default_path=”/export/zones”
zones_names=””
sbd_product_version=”1.0″
vts_product_version=”6.4″
explo_product_version=”5.13″
explo_override_old_installs=””
explo_DEF=””
explo_SEARCHPATH=”../common.files”
explo_CRONTAB_RUN=”no”
explo_CRONTAB_HOUR=”*”
explo_CRONTAB_MINUTE=”*”
explo_CRONTAB_DAY=”*”
explo_CRONTAB_WEEKDAY=”*”
explo_CRONTAB_FLAG=””
explo_SERIAL=””
explo_CONTRACT_ID=””
explo_CUSTOMER_NAME=””
explo_USER_NAME=””
explo_USER_EMAIL=””
explo_PHONE=””
explo_REPLY=””
explo_CUSTID=””
explo_ADDRESS_1=””
explo_ADDRESS_2=””
explo_ADDRESS_CITY=”BSB”
explo_ADDRESS_STATE=”BSB”
explo_ADDRESS_COUNTRY=”Brunei”
explo_ADDRESS_ZIP=””
explo_RUN=”N”
explo_run_at_install_cmd=””
explo_netrc_entry=””
explo_EMAIL=”explorer-database-apac@sun.com”
explo_GEO=”APAC”
explo_ADDRESS_COUNTRY_CODE=”BN”
explo_NOTIFY=””
explo_BASEDIR=”/opt/SUNWexplo”
explo_DEFAULTS=”/opt/SUNWexplo/etc/default/explorer”
explo_HOME=”/opt/SUNWexplo”
explo_LIB=”/opt/SUNWexplo/lib”
explo_PATH=”/usr/bin:/usr/sbin”
NOTE:
1. we configure “base_config_sysidcfg_nameservice=NONE” not DNS because if DNS we need to create server hostname in real DNS
2. sbd in “/opt/SUNWjet/bin/make_template -f apple zfs zones sbd” will automatically close unnecessary port. Same effect can be done by issuing “netservices limited”. To relaxing it we issue “netservices open”
MODIFY /ETC/VFSTAB
-modify /etc/vfstab so that mount at boot is no. See below
/export/install/media/Solaris10_U6_x86/boot – /tftpboot/I86PC.Solaris_10-2 lofs – no ro
-create /etc/rc3.d/S99jumpstartmount
# cat /etc/rc3.d/S99jumpstartmount
#!/sbin/sh
mount -F lofs /export/install/media/Solaris10_U6_x86/boot /tftpboot/I86PC.Solaris_10-2
MAKE CLIENT
# /opt/SUNWjet/bin/make_client -f apple
BOOT CLIENT
-for x86 solaris in Dell server, just press F12 to boot from PXE
-for Sparc client, use “boot net – install – w” in OBP
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s