WAN boot is a "new" method for installing a machine running the Solaris Operating System from a Solaris JumpStart server over the network. WAN boot has a lot of enhancements compared to the "old" installation method via bootp and should be used for network installations if possible. (Note: WAN boot is only supported on machines with SPARC CPUs. You cannot use WAN boot on machines running the Solaris OS for x86 platforms.)
This article describes how to use WAN boot on machines that do not have WAN boot support in the OBP and cannot use a CD-ROM for WAN boot.
This method requires:
Access to the console of the machine
The Solaris OS running on the machine
Details
The only file that is necessary for WAN boot is /platform/`uname -i`/wanboot. Therefore, to get WAN boot from the disk to work, it is sufficient to copy the current version of the WAN boot binary from (for example) the Solaris Installation CD-ROM to the directory /platform/`uname -i` on one of the slices of any local hard disk of the machine.
The Steps
1. Configure the machine to install as a WAN boot client on your installation server.
2. Select one of the existing slices on one of the internal hard disks of the machine to install for the WAN boot binary. For example, this can be the existing boot slice or any other slice on the disk. You can also put the WAN boot binary on the disk on which you want to install the Solaris OS, because the disk is only used to read the WAN boot binary. After the WAN boot binary is read and executed, the disk is not used anymore for the boot process.
3. Make the selected slice bootable using installboot if the slice is not already bootable; that is:
If in doubt, issue the installboot command. (It won't hurt if the slice is already bootable.)
4. Halt the machine and issue the following boot command at the ok prompt:
ok> boot mydisk -o prompt -F wanboot - install
Here mydisk is the disk device (either a device alias or the real device name). If you use a slice other than the default slice for the WAN boot binary, the command should look like this:
ok> boot disk1:b -o prompt -F wanboot - install
Here disk1 is the device alias and the letter after the colon specifies the slice to boot from: a is slice 0, b is slice 1, c is slice 2, and so on.
5. After a short time, the normal WAN boot prompt should be printed and you can enter the necessary information for the WAN boot process and continue the WAN boot installation the normal way.
Example 1
Example 1 shows the machine output from step 4 in the preceding description. Note: Some output has been replaced with "x" characters.
{0} ok boot disk1 -o prompt -F wanboot - install Resetting ... RSC Alert: Host System has Reset Probing system devices Probing system devices
Sun Fire 280R (2 X UltraSPARC-III) , No Keyboard Copyright 1998-2004 Sun Microsystems, Inc. All rights reserved. OpenBoot 4.16.4, 4096 MB memory installed, Serial #xxxxxxxx. Ethernet address x:x:x:x:x:x, Host ID: xxxxxxxx.
Here is sample output from a session installing a machine via WAN boot from a disk. In this example, we use the swap slice as the temporary boot slice for the WAN boot process. Note: Some output has been replaced with "x" characters and edited for security reasons.
bash-3.00# uname -a SunOS mysun 5.10 Generic_118833-17 sun4u sparc SUNW,Sun-Fire-280R
bash-3.00# swap -d /dev/dsk/c2t0d0s1 /dev/dsk/c2t0d0s1 was dump device -- invoking dumpadm(1M) -d swap to select new dump device dumpadm: no swap devices are available
bash-3.00# swap -l No swap devices configured
### remove the swap entry from the /etc/vfstab because otherwise newfs will fail
bash-3.00# reboot -- "disk:b -o prompt -F wanboot - install " Jul 28 07:09:42 mysun reboot: rebooted by root Jul 28 07:09:43 mysun syslogd: going down on signal 15 syncing file systems... done rebooting... Resetting ... RSC Alert: Host System has Reset Probing system devices Probing system devices
Sun Fire 280R (2 X UltraSPARC-III) , No Keyboard Copyright 1998-2004 Sun Microsystems, Inc. All rights reserved. OpenBoot 4.16.4, 4096 MB memory installed, Serial #xxxxxxxx. Ethernet address x:x:xx:x:xx:xx, Host ID: xxxxxxxx.
wanboot progress: wanbootfs: Read 128 of 128 kB (100%) wanboot info: wanbootfs: Download complete Fri Jul 28 06:12:38 wanboot progress: miniroot: Read 248881 of 248881 kB (100%) Fri Jul 28 06:12:38 wanboot info: miniroot: Download complete SunOS Release 5.10 Version Generic_118833-17 64-bit Copyright 1983-2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Configuring devices. Network interface was configured manually. 192.168.5.14 SUNW,qfe0: 100 Mbps half duplex link up - internal transceiver SUNW,qfe1: 100 Mbps half duplex link up - internal transceiver SUNW,qfe2: 100 Mbps half duplex link up - internal transceiver SUNW,qfe3: 100 Mbps half duplex link up - internal transceiver Beginning system identification... syslogd: line 24: WARNING: loghost could not be resolved Searching for configuration file(s)... Jul 27 22:46:41 mysun.test.dom eri: SUNW,eri0 : 100 Mbps half duplex link up Using sysid configuration file http://192.168.20.48/profiles/mysun.test.dom/sysidcfg Search complete. Discovering additional network configuration... Completing system identification... Starting remote procedure call (RPC) services: done. System identification complete. Starting Solaris installation program... Searching for JumpStart directory... Using rules.ok from http://192.168.20.48/profiles/mysun.test.dom. Checking rules.ok file... Using begin script: begin_script.sh Using profile: profile Using finish script: finish_script.sh Executing JumpStart preinstall phase... Executing begin script "begin_script.sh"... Copying the missing files from the profile ... Begin script begin_script.sh 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.
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.
.....
Jul 28 07:52:45 mysun.test.dom reboot: rebooted by root syncing file systems... done rebooting... Resetting ... RSC Alert: Host System has Reset Probing system devices Probing system devices
Sun Fire 280R (2 X UltraSPARC-III) , No Keyboard Copyright 1998-2004 Sun Microsystems, Inc. All rights reserved. OpenBoot 4.16.4, 4096 MB memory installed, Serial #xxxxxxxx. Ethernet address x:x:xx:x:xx:xx, Host ID: xxxxxxxx.
Rebooting with command: boot Boot device: /pci@8,600000/SUNW,qlc@4/fp@0,0/disk@w2100000c50ac4839,0:a File and args: SunOS Release 5.10 Version Generic_118833-17 64-bit Copyright 1983-2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Hostname: mysun Configuring devices. Loading smf(5) service descriptions: 93/93
mysun console login:
If you have questions on this How-To, please contact Bernd Schemmer.
comment 0 التعليقات:
more_vertsentiment_satisfied Emoticon