- Installation of virtualized jumpstart server - using standard installation from DVD using Core installation. In order to setup the jumpstart server one needs to install following additional packages:
- bash (SUNWbash)
- zsh (SUNWzsh)
- java (SUNWj5rt, SUNWj6rt)
- man+doc (SUNWdoc,SUNWman)
- dhcp server (SUNWdhcsu, SUNWdhcsr, SUNWdhcm - optional)
- install software e.g. chkprobe (SUNWinst)
- Mount installation DVD - in my case the cdrom was available as c0t0d0s0 and I mounted it under /cdrom (previously created) using:
- Setup install server
- Add client machine for installation
- Set up sysidcfg
- Configure DHCP
- Configure NFS
- Fine tune settings for GRUB
- Configure rules & profile
- Boot client machine
# mount -F hsfs -o ro /dev/dsk/c0t0d0s0 /cdrom
#cd /cdrom/Solaris_10/Tools
#./setup_install_server /export/home/install
Now you need to add client definition:
# cd /export/home/install/Solaris_10/Tools
# ./add_install_client \
-d \
-e 00:0c:29:04:b8:63 \
-s 192.168.1.135:/export/home/install \
-c 192.168.1.135:/export/home/config \
-p 192.168.1.135:/export/home/config/ i86pc
Very important is to leave the path to the sysidcfg without the file itself (last parameter) - otherwise it will not be used during jumpstart. Of course you need to adapt the IP addresses and MAC address of the client machine to your needs.
It is important to store the info that will have to be used for the boot configuration:
Boot server IP (BootSrvA) : 192.168.1.135
Boot file (BootFile) : 01000c2904b863
Create the sysidcfg file for the client. Below I enclose the content of my file - the most important is the new property introduced in the Solaris 10 update 9: auto_reg. On the basis of this property the decision will be made if to send registration info to Oracle about the product and the user. I decided to completely disable this feature.
# cd /export/home/config
# cat sysidcfg
keyboard=US-English
nfs4_domain=dynamic
system_locale=en_US.ISO8859-1
timezone=US/Pacific
timeserver=localhost
terminal=vt100
name_service=NONE
security_policy=NONE
service_profile=limited_net
root_password=
network_interface=e1000g0 { dhcp
protocol_ipv6=yes
}
auto_reg=disable
Set up the DHCP server:
# dhcpconfig -D -r SUNWfiles -p /var/dhcp
Created DHCP configuration file.
Created dhcptab.
Added "Locale" macro to dhcptab.
Added server macro to dhcptab - voyin.
DHCP server started.
# svcs dhcp-server
STATE STIME FMRI
online 14:16:10 svc:/network/dhcp-server:default
Enable the PXE boot:
# dhtadm -A -m 01000c2904b863 -d ':BootFile="01000c2904b863":BootSrvA=192.168.1.135:'
Configure the static IP address to be assigned to the client machines:
# pntadm -C 192.168.1.0
# pntadm -A 192.168.1.45 \
> -f PERMANENT \
> -i 01000c2904b863 \
> -m 01000c2904b863 \
> -s 192.168.1.135 \
> 192.168.1.0
# pntadm -P 192.168.1.0
Client ID Flags Client IP Server IP Lease Expiration Macro Comment
01000C2904B863 00 192.168.1.45 192.168.1.135 09/12/2010
You need also to share the direcotries with the configuration and installation packages via NFS so that all these will be available to the client machines during jumpstart installation:
# vi /etc/dfs/dfstab
..
share -F nfs -o ro,anon=0 /export/home/install
share -F nfs -o ro,anon=0 /export/home/config
# shareall
# share
- /export/home/install ro,anon=0 ""
- /export/home/config ro,anon=0 ""
The grub menu for client machines can be found in the/tftpboot/menu.lst.
default=0
timeout=5
min_mem64 1024
title Solaris_10 Jumpstart
kernel$ /I86PC.Solaris_10-1/multiboot kernel/$ISADIR/unix install nowin -B install_config=192.168.1.135:/export/home/config,sysid_config=192.168.1.135:/export/home/config/,install_media=192.168.1.135:/export/home/install,install_boot=192.168.1.135:/export/home/install/boot
module$ /I86PC.Solaris_10-1/$ISADIR/x86.miniroot
Now you need to specify the rules for the client machines. I decided to define only one general rule for x86 systems. The type of installation is initial with explicit partitioning (own mirrors defined). The set of packages to be installed is SUNWCuser (End User System Support).
# cd /export/home/config
# cat rules
any - - x86-class -
# cat x86-class
#
# Sample profile for an x86 machine. Installation will
# provide default partitioning on a standalone system
# with the end-user cluster.
#
# "@(#)x86-class 1.2 94/01/25"
#
install_type initial_install
system_type standalone
partitioning explicit
filesys mirror c1t0d0s0 c1t1d0s0 5120 /
filesys mirror c1t0d0s1 c1t1d0s1 2048 swap
filesys mirror c1t0d0s4 c1t1d0s4 6656 /var
filesys mirror c1t0d0s5 c1t1d0s5 6656 /usr
filesys mirror c1t0d0s6 c1t1d0s6 10240 /export
filesys mirror c1t0d0s7 c1t1d0s7 free /u01
metadb c1t0d0s3 count 5
metadb c1t1d0s3 count 5
cluster SUNWCuser
# cp /export/home/install/Solaris_10/Misc/jumpstart_sample/check .
# ./check
Validating rules...
Validating profile x86-class...
The custom JumpStart configuration is ok.
Boot the client machine via PXE and the jumpstart installation will begin. In my case in the virtualized environment (destination was also a virtual image) the installation took about 30 minutes (full installation of Solaris 10 update 9 without any additional patches).
Brak komentarzy:
Prześlij komentarz