Sunteți pe pagina 1din 9

18/07/13 JumpStart DVD (with Solaris flash archive) for x86 platform

www.googlux.com/jumpstart_dvd.html 1/9
Backtothemainpage
JumpStartDVD(withSolarisflasharchive)forx86platform
I'llcombinetwotopicsinthisdocument:
CreatingaflasharchiveofrunningSolarissystem(SunFireX4200)andusingitinJumpStartinstallation,meaningcloningthissystemtonew
X4200(itcanalsobeclonedasVMwareclient)
CreatingaJumpStartDVD,sononeedforJumpStartserver,justbootfromDVDandinstallallfromthere(alsoconsidermakinggeneric
JumpStartDVDtoinstallSolarisonalmostanyhardware)
Let'sstart,hereareperformedactions:
InstalltheSolaris10u10onSunFireX4200withZFSrootpool
CreatetheflasharchiveofX4200withcommandflarcreate
The"manflarcreate"says:"Followingcreationofaflasharchive,youcanuseJumpStarttoclonethearchiveonmultiplesystems.Using
JumpStarttoinstalloneormoresystemsistheonlyinstallationmethodavailableforinstallingaflasharchiveofaZFSrootpool."
{host_x4200}/tmp> flarcreate -n sol10u10_x86_flash_archive -a zd -c /tmp/sol10u10_x86_flash_archive.flar
Full Flash
Checking integrity...
Integrity OK.
Running precreation scripts...
Precreation scripts done.
Determining the size of the archive...
The archive will be approximately 1.90GB.
Creating the archive...
Archive creation complete.
Running postcreation scripts...
Postcreation scripts done.
Running pre-exit scripts...
Pre-exit scripts done.
Thiscreatesthearchivesize~2G.
{host_x4200}/tmp> file sol10u10_x86_flash_archive.flar
sol10u10_x86_flash_archive.flar: Flash Archive
GetSolaris10u10ISOto/tmp,mountitandinstall/copyserverfilesto/tmp/dvdsol10u10_x86/(seehow?)
Sinceflasharchiveisused,youcandelete/tmp/dvdsol10u10_x86/Solaris_10/Productdirectory,it'snotneeded.Orjustleaveitthereand
have8.5GBDVD
SinceinstalledsystembootsfromDVD'sminiroot(x86.miniroot),weneedtoperformsomeactionsinthatminirootandtocustomizeitforthis
excersise
Theroot_archiveutilityisusedtomanipulatebootarchivesandthebootableminiroot(s)inaSolarisinstallimage.Theutilitycanpack
andunpackbootarchivesandimageminiroots.
Firstextractthex86.miniroot
{host_x4200}/boot/solaris/bin> ./root_archive unpack /tmp/dvd-sol10-u10_x86/boot/x86.miniroot /tmp/miniroot
Thisisextracted/unpackedx86.miniroot
{host_x4200}/tmp/miniroot> ls
total 232
drwxr-xr-x 19 root root 1544 May 10 15:10 .
drwxrwxrwt 4 root sys 408 May 10 15:11 ..
lrwxrwxrwx 1 root other 16 May 10 15:10 .java -> ./tmp/root/.java
18/07/13 JumpStart DVD (with Solaris flash archive) for x86 platform
www.googlux.com/jumpstart_dvd.html 2/9
lrwxrwxrwx 1 root root 13 May 10 15:10 .swapinfo -> tmp/.swapinfo
lrwxrwxrwx 1 root root 13 May 10 15:10 .swappart -> tmp/.swappart
drwxr-xr-x 3 root other 316 May 10 15:10 .tmp_proto
drwxr-xr-x 2 root sys 117 Aug 23 2011 a
lrwxrwxrwx 1 root root 9 May 10 15:09 bin -> ./usr/bin
drwxr-xr-x 6 root sys 570 May 10 15:09 boot
drwxr-xr-x 2 root sys 117 Aug 23 2011 cdrom
drwxr-xr-x 10 root sys 3143 May 10 15:09 dev
drwxr-xr-x 3 root sys 243 May 10 15:09 devices
drwxr-xr-x 47 root sys 11940 May 10 15:09 etc
drwxr-xr-x 15 root sys 973 May 10 15:10 kernel
drwxr-xr-x 6 root bin 10246 May 10 15:09 lib
drwxr-xr-x 2 root sys 117 Aug 23 2011 mnt
drwxr-xr-x 2 root sys 117 Aug 23 2011 opt
drwxr-xr-x 4 root sys 242 May 10 15:09 platform
dr-xr-xr-x 2 root root 117 Aug 23 2011 proc
-rw-r--r-- 1 root other 0 Aug 23 2011 reconfigure
drwxr-xr-x 3 root sys 5929 May 10 15:09 sbin
drwxr-xr-x 4 root root 245 May 10 15:09 system
drwxrwxrwt 4 root sys 308 May 10 15:09 tmp
drwxr-xr-x 19 root sys 1887 May 10 15:09 usr
lrwxrwxrwx 1 root other 14 May 10 15:09 var -> ./tmp/root/var
Removeexisting/etc/sysidcfgfileandcreateyourcustomeversion
{host_x4200}/tmp/miniroot/etc>unlinksysidcfg
{host_x4200}/tmp/miniroot/etc> cat sysidcfg
# some example
keyboard=US-English
service_profile=limited_net
system_locale=en_US
timezone=US/Pacific
timeserver=localhost
name_service=DNS {
domain_name=yourdomain.ca
name_server=x.x.x.x,y.y.y.y
search=yourdomain.ca,yourdomain.co.uk
}
nfs4_domain=dynamic
terminal=vt100
security_policy=NONE
network_interface=primary {
netmask=255.255.255.0
protocol_ipv6=no
default_route=192.168.x.x
}
root_password=QwErTy123456000
auto_reg=none
InordertoallowcustomJumpStartfromDVD,alterthefile/tmp/miniroot/usr/sbin/install.d/profind.Twolinesarecommentedinthe
funcioncdrom(),seelineswith#zarko#
cdrom()
{
# Factory JumpStart is only allowed with factory
# stub images, indicated by the file /tmp/.preinstall
#
#zarko# if [ -f /tmp/.preinstall ]; then
mount -o ro -F lofs ${CD_CONFIG_DIR} ${SI_CONFIG_DIR} >/dev/null 2>&1
if [ $? -eq 0 ]; then
verify_config "CDROM"
fi
#zarko# fi
}
Oncealteringextractedx86.minirootisover,packitagain.
{host_x4200}/tmp>/boot/solaris/bin/root_archive pack /tmp/dvd-sol10-u10_x86/boot/x86.miniroot /tmp/miniroot
Movetheflasharchiveto/tmp/dvdsol10u10_x86/flash/directory
18/07/13 JumpStart DVD (with Solaris flash archive) for x86 platform
www.googlux.com/jumpstart_dvd.html 3/9
ThedirectorySolaris_10/Misc/.install_configshouldhavefilesneededforJumpStart.Placeallneededfilesthere(rules,profile,begin/finish
scripts,etc).Usecommand'check'toverifyrules.
{host_x4200}/tmp/dvd-sol10-u10_x86/Solaris_10/Misc/.install_config> ../jumpstart_sample/check
Validating rules...
Validating profile profile...
The custom JumpStart configuration is ok.
Noteaboutprofilefile:

# ~~~~~~~~~~~ profile start ~~~~~~~~~~~~~~~
# it's short since flash archive is used
#
# define installation type
install_type flash_install
#
# define flash archive location
archive_location local_file /cdrom/flash/sol10u10_x86_flash_archive.flar
#
# delete all existing fdisk partitions, and create solaris type on whole disk
fdisk rootdisk solaris all
#
partitioning explicit
#
# The pool keyword creates new root pool and new boot environment.
pool space0 auto 4g 0 any
#
# The bootenv keyword identifies boot environment
bootenv installbe bename zfsroot dataset /var
# ~~~~~~~~~~~ profile end ~~~~~~~~~~~~~
Editgrubbootloadermenu(file/tmp/dvdsol10u10_x86/boot/grub/menu.lst),addingblock"titleS10u10x86CustomJumpStartDVD
X4200flarcon=ttya"
# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
default=0
# wait for user's input
timeout=-1
min_mem64 1024
title S10-u10 x86-Custom JumpStart DVD X4200-flar con=ttya
kernel /boot/multiboot kernel/unix - install -B \
console=ttya,install_media=cdrom
module /boot/x86.miniroot
title Oracle Solaris
kernel$ /boot/multiboot kernel/$ISADIR/unix -B install_media=cdrom
module$ /boot/$ISADIR/x86.miniroot
title Oracle Solaris Serial Console ttya
kernel$ /boot/multiboot kernel/$ISADIR/unix -B install_media=cdrom,console=ttya
module$ /boot/$ISADIR/x86.miniroot
title Oracle Solaris Serial Console ttyb (for lx50, v60x and v65x)
kernel$ /boot/multiboot kernel/$ISADIR/unix -B install_media=cdrom,console=ttyb
module$ /boot/$ISADIR/x86.miniroot
CreatetheISOimage
{host_x4200}/tmp/dvd-sol10-u10_x86> mkisofs \
-b boot/grub/stage2_eltorito -c .catalog \
-no-emul-boot -boot-load-size 4 \
-boot-info-table -relaxed-filenames \
-allow-multidot -allow-leading-dots \
-l -ldots -R -N -d -D \
-V sol10-u10_x86 \
-o /space0/iso/sol10-u10_x86_jumpstart_dvd_sunfire_x4200.iso .
Warning: creating filesystem that does not conform to ISO-9660.
Size of boot image is 4 sectors -> No emulation
0.39% done, estimate finish Fri May 11 09:11:34 2012
0.79% done, estimate finish Fri May 11 09:11:34 2012
...
99.12% done, estimate finish Fri May 11 09:12:11 2012
99.51% done, estimate finish Fri May 11 09:12:11 2012
99.91% done, estimate finish Fri May 11 09:12:11 2012
Total translation table size: 2048
Total rockridge attributes bytes: 114130
Total directory bytes: 454656
18/07/13 JumpStart DVD (with Solaris flash archive) for x86 platform
www.googlux.com/jumpstart_dvd.html 4/9
Path table size(bytes): 2704
Max brk space used 10e000
1271172 extents written (2482 MB)
CopytheISOimagetothecomputerwithburnings/wandburntheDVD.IfSolarisboxhasDVDwriter,checkthecommand"cdrecord".
ActuallythecdrecordsupportsonlyburningaCD,notaDVD.
Let'strysomething.First,usethecommand'/usr/bin/cdrecordscanbus'toscanallSCSIdevicesonallSCSIbusses.
ThentestburningaISOtoaDVDwithoption'dummy',inthiscasetooldoeswholeprocessbutthelaseristurnedoff.
{host}/>/usr/bin/cdrecordvsaodummydev=1,0,0/pool.iso/my_generic_x86_jumpstart_s10u10.iso
Andmessagescouldbe(wholeoutputtruncated):
/usr/bin/cdrecord:FoundDVD+mediabutDVD+R/DVD+RWsupportcodeismissing.
/usr/bin/cdrecord:IfyouneedDVD+R/DVD+RWsupport,asktheAuthorforcdrecordProDVD.
OnesolutionistoinstallBlastwave'scdrtools(ver3orhigher),thecdrecordwithDVDsupportispartofthis.
Donewdummytestwithcommandfrom/opt/csw/bin/
{host}/>/opt/csw/bin/cdrecordvsaodummydev=1,0,0/pool.iso/my_generic_x86_jumpstart_s10u10.iso
Andmessagescouldbe(wholeoutputtruncated):
UsinggenericSCSI3/mmc3DVD+Rdriver(mmc_dvdplusr).
Track01:data5789MB
Totalsize:5789MB=2964089sectors
/opt/csw/bin/cdrecord:DVD+R/DVD+RWhasnodummymode.
/opt/csw/bin/cdrecord:Cannotinitdrive.
Okay,nodummysupport,butwecanstilltryburningandseewhathappens.
{host}/>/opt/csw/bin/cdrecordvsaodev=1,0,0/pool.iso/my_generic_x86_jumpstart_s10u10.iso
Anditcouldbesuccess(wholeoutputtruncated):
UsinggenericSCSI3/mmc3DVD+Rdriver(mmc_dvdplusr).
Track01:data5789MB
Totalsize:5789MB=2964089sectors
StartingtowriteCD/DVD/BDatspeed4inrealSAOmodeforsinglesession.
Track01:Totalbytesread/written:6070454272/6070454272(2964089sectors).
Writingtime:1209.164s
Averagewritespeed3.6x.
Mindrivebufferfillwas60%
/opt/csw/bin/cdrecord:fifohad185256putsand185256gets.
/opt/csw/bin/cdrecord:fifowas0timesemptyand56130timesfull,minfillwas64%.
NowthatwehavetheJumpStartDVD,let'stestitfirstonSunFireX4200.
PowerontheX4200andasperoutput,selectF2(CTRL+EonRemoteKeyboard)toenterBIOSSetup.Makesurethefirstbootdeviceisthe
DVD.
AMIBIOS(C)2003 American Megatrends, Inc.
BIOS Build Version : 0ABGA042 Date: 09/27/07 09:32:38 Core: 08.00.10
CPU : Dual Core AMD Opteron(tm) Processor 275, Speed : 2.2 GHz
Count : 4, CPU Revision, CPU0 : E6, CPU1 : E6
Microcode Revision, CPU0 : 4D, CPU1 : 4D
DRAM Clocking CPU0 Core0/1 = 400 MHz, CPU1 Core0/1 = 400 MHz
Sun Fire X4200 Server, 2 AMD North Bridges, Rev E6
1 AMD 8111 I/O Hub, Rev C2
2 AMD 8131 PCI-X Controllers, Rev B2
System Serial Number : 0000000000
BMC Firmware Revision : 2.0.2.1 , BMC IP Address :192.168.19.88
CPLD Revision : C.0
Checking NVRAM..
Initializing USB Controllers .. Done.
Press F2 to run Setup (CTRL+E on Remote Keyboard)
Press F12 to boot from the network (CTRL+N on Remote Keyboard)
Press F8 for BBS POPUP (CTRL+P on Remote Keyboard)
3260MB OK
18/07/13 JumpStart DVD (with Solaris flash archive) for x86 platform
www.googlux.com/jumpstart_dvd.html 5/9

ExitBIOS,systemrebootsagain,andGRUBpresentstheoptiontoselecttheJumpStartinstallation.

TheJumpStartinstallationbegins
SunOS Release 5.10 Version Generic_147441-01 32-bit
Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
Configuring devices.
Custom JumpStart
Using install cd in /dev/dsk/c3t0d0p0
Theyou'llhavetoenternextinfoforthesystemtobeinstalled:Networkinterface,hostname,IP,subnet,nameservice(likeDNS),domain
name,serverIPanddomain(s)tobesearched.Thentheinstallationcontinueswithbelowmessages.
System identification complete.
Starting Solaris installation program...
Searching for JumpStart directory...
Using rules.ok from CDROM.
Checking rules.ok file...
Using begin script: begin_script
Using profile: profile
Using finish script: finish_script
Executing JumpStart preinstall phase...
Executing begin script "begin_script"...
18/07/13 JumpStart DVD (with Solaris flash archive) for x86 platform
www.googlux.com/jumpstart_dvd.html 6/9
My begin_script: no actions ...
Begin script begin_script execution completed.
Searching for SolStart directory...
Checking rules.ok file...
Using begin script: install_begin
Using finish script: patch_finish
Executing SolStart preinstall phase...
Executing begin script "install_begin"...
Begin script install_begin execution completed.
Processing default locales
- Specifying default locale (en_US.ISO8859-1)
Processing profile
- Saving Boot Environment Configuration
- Opening Flash archive
- Validating Flash archive
- Selecting all disks
- Configuring boot device
- Creating "all" Solaris fdisk partition (c0t0d0)
- Creating "all" Solaris fdisk partition (c0t1d0)
- Configuring / (any)
ZFS send stream space0/ROOT/zfsroot gets extracted to space0/ROOT/zfsroot
ZFS send stream space0/backup gets extracted to space0/backup
ZFS send stream space0/zones gets extracted to space0/zones
Verifying disk configuration
- WARNING: Unused disk space (c0t1d0)
Verifying space allocation
Preparing system for Flash install
Configuring disk (c0t0d0)
- Creating Fdisk partition table
- Creating Solaris disk label (VTOC)
Configuring disk (c0t1d0)
- Creating Fdisk partition table
- Creating Solaris disk label (VTOC)
- Creating pool space0
- Creating swap zvol for pool space0
Beginning Flash archive processing
No local customization defined
Extracting archive: sol10u10_x86_flash_archive
Extracted 0.00 MB ( 0% of 1953.65 MB archive)
Extracted 1.00 MB ( 0% of 1953.65 MB archive)
Extracted 2.00 MB ( 0% of 1953.65 MB archive)
Extracted 3.00 MB ( 0% of 1953.65 MB archive)
...
The archive extract can take up to 30 min.
...
Extracted 1953.65 MB ( 99% of 1953.65 MB archive)
Extracted 1953.65 MB (100% of 1953.65 MB archive)
Extraction complete
Postdeployment processing
No local customization defined
Customizing system files
- Mount points table (/etc/vfstab)
- Network host addresses (/etc/hosts)
- Environment variables (/etc/default/init)
Cleaning devices
Customizing system devices
- Physical devices (/devices)
- Logical devices (/dev)
Installing boot information
The GRUB menu is empty
- Installing boot blocks (c0t0d0)
- Installing boot blocks (/dev/rdsk/c0t0d0s0)
Installation log location
18/07/13 JumpStart DVD (with Solaris flash archive) for x86 platform
www.googlux.com/jumpstart_dvd.html 7/9
- /a/var/sadm/system/logs/install_log (before reboot)
- /var/sadm/system/logs/install_log (after reboot)
Flash installation complete
Executing JumpStart postinstall phase...
Executing finish script "finish_script"...
My finish_script: start
My finish_script: The flash archive is used ... OK
My finish_script: finish
Finish script finish_script execution completed.
The begin script log 'begin.log'
is located in /var/sadm/system/logs after reboot.
The finish script log 'finish.log'
is located in /var/sadm/system/logs after reboot.
Creating boot_archive for /a
updating /a/platform/i86pc/boot_archive
syncing file system .. done
Rebooting
TheX4200reboots,makesuretoselectharddiskasfirstbootdeviceinBIOS,andnextyouseeisGRUBmenufornewlyinstalledX4200
system(whichisbasicallycloneofoneusedforflasharchivecreation).
Let'salsotryusingthisJumpStartDVDforinstallingSolarisasvirtualmachine,hereItryonehostedonVMwareESXiver.4.1.
I'veinstalledESXiontheX4200.TheVMwareESXiisa"baremetal"hypervisor(canbecalledvirtualmachinemanager),meaningitinstalls
directlyontopofX4200andpartitionsitintomultiplevirtualmachinesthatcanrunsimultaneously,sharingthephysicalresourcesoftheX4200.
OnceVMwareESXiisinstalledonX4200,youneedtoinstallVMwarevSphereClientonyourPC,sincefromthereyoumanagevirtual
machines.
TheVMwarevSphereClientisdownloadedfromhttps://x4200_ip_address

CreatenewSolarisvirtualmachineandhaveISOofJumpStartDVDonyourPC.ConfigureBIOSofvirtualmachinetobootfromDVD(ISO
mountedasDVD).
StartvirtualmachineandJumpStartinstallationbeginsfromtheISO.
Thevirtualmachinereboots,incaseofVMwareESXi,aftervirtualmachinereset,BIOSusesharddisktobefirstbootdevice,andthereis
GRUBmenu.
18/07/13 JumpStart DVD (with Solaris flash archive) for x86 platform
www.googlux.com/jumpstart_dvd.html 8/9

TheSolarisvirtualmachineboots.Looksgood.

18/07/13 JumpStart DVD (with Solaris flash archive) for x86 platform
www.googlux.com/jumpstart_dvd.html 9/9
NotethattryingthisJumpStartflasharchiveinstallationmaynotworkoneveryX86platform.It'smuchbettercreatinggenericJumpStart,
wherepackagesareinstalledfromoriginalSolarisdistribution.
Backtothemainpage

S-ar putea să vă placă și