Changes between Version 6 and Version 7 of FAQ


Ignore:
Timestamp:
Aug 3, 2010 11:41:16 AM (14 years ago)
Author:
thomas
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FAQ

    v6 v7  
    100100
    101101=== How do I create boot media? ===
     102
     103There are currently three supported methods for installing PU_IAS Local 2
     104
     105CD-Rom (boot.iso)
     106USB Flash Drive (diskboot.img)
     107PXE Boot (pxeboot/)
     108
     109Floppy booting is deprecated, instructions are included for previous releases.
     110
     111cd-rom boot
     112Basic instructions for using cdrecord to burn boot.iso.
     113find your cd-rw drive first.
     114root@pu_ias images# cdrecord -scanbus
     115...
     1162,0,0   200) \'SONY    \' \'DVD RW DRU-510A \' \'1.0b\' Removable CD-ROM
     117...
     118
     119burn the image
     120root@pu_ias images# cdrecord -dev=2,0,0 -v boot.iso
     121...
     122Blocks total: 336075 Blocks current: 336075 Blocks remaining: 334489
     123Starting to write CD/DVD at speed 10 in real TAO mode for single session.
     124Waiting for reader process to fill input buffer ... input buffer ready.
     125BURN-Free is ON.
     126Turning BURN-Free off
     127Performing OPC...
     128Starting new track at sector: 0
     129Track 01:    3 of    3 MB written (fifo 100%) buf  39% 150.7x.
     130Track 01: Total bytes read/written: 3244032/3244032 (1584 sectors).
     131Writing  time:    8.480s
     132Average write speed   4.6x.
     133Fixating...
     134Fixating time:   24.931s
     135cdrecord: fifo had 52 puts and 52 gets.
     136cdrecord: fifo was 0 times empty and 0 times full, min fill was 100%.
     137
     138
     139Note: If you are using a cd-rw, blank the cd first
     140root@pu_ias images# cdrecord -dev=2,0,0 -v blank=fast
     141...
     142Starting to write CD/DVD at speed 10 in real BLANK mode for single session.
     143Performing OPC...
     144Blanking PMA, TOC, pregap
     145Blanking time:   28.321s
     146
     147
     148usb boot
     149To use a usb flash drive as your boot device your bios needs to support usb booting. This is
     150sometimes called usb floppy drive booting, check your boot options in your bios setup (usually
     151at startup)
     152
     153The usb boot image is a vfat filesystem approximately 5MB, you'll need at least an 8MB flash drive
     154(you can't buy less than 32 right now though). Make sure nothing important is on this drive, you're
     155going to wipe it out.
     156
     157Insert the drive and check your logs for messages:
     158root@pu_ias images# dmesg | grep -A7 hub.c
     159hub.c: new USB device 00:1d.2-2, assigned address 2
     160scsi4 : SCSI emulation for USB Mass Storage devices
     161Vendor: LEXAR     Model: JUMPDRIVE         Rev: 1.02
     162Type:   Direct-Access?                      ANSI SCSI revision: 02
     163Attached scsi removable disk sdb at scsi4, channel 0, id 0, lun 0
     164SCSI device sdb: 62464 512-byte hdwr sectors (32 MB)
     165sdb: Write Protect is off
     166sdb: sdb1
     167
     168You may have to load some modules to get your usb flash drive working, usb-storage for instance...
     169From the above we know that the usb drive is /dev/sdb, we can write out image to it.
     170root@pu_ias images# dd if=diskboot.img of=/dev/sdb
     17112288+0 records in
     17212288+0 records out
     173
     174Now you can boot your machine with the usb flash drive. If you wish to mount the vfat filesystem that
     175you created, mount the whole device, not sdb1
     176root@pu_ias images# mount /dev/sdb /mnt/flash
     177root@pu_ias images# ls /mnt/flash
     178boot.msg     initrd.img    ldlinux.sys  options.msg  rescue.msg  splash.lss    vmlinuz
     179general.msg  isolinux.bin  memtest      param.msg    snake.msg   syslinux.cfg
     180
     181===pxeboot==
     182Please see the question on configuring pxeboot...
     183floppy boot
     184Floppy boot is no longer supported, the following instructions apply to previous releases.
     185
     186Assuming your using the first floppy drive in your system (does anyone have 2 drives anymore?)
     187format the disk first if it isn\'t formated already
     188# fdformat /dev/fd0
     189Double-sided, 80 tracks, 18 sec/track. Total capacity 1440 kB.
     190Formatting ... done
     191Verifying ... done
     192
     193next copy the boot image onto the floppy
     194# dd if=boot.img of=/dev/fd0 bs=1440k
     1951+0 records in
     1961+0 records out
     197
     198wait for the drive to finish and your prompt to return! patience, patience!
     199repeat for drvnet.img or bootnet.img
     200 
     201=== How do I configure pxeboot? ===
     202
     203PXE Booting is relatively easy to setup (if you control your dhcp server).
     204First, install the dhcp server with the dhcp rpm.
     205You will need to setup some dhcp options in dhcpd.conf, the following is a minimal configuration:
     206{{{
     207#!sh
     208allow booting;
     209allow bootp;
     210
     211# standard configuration directives...
     212ddns-update-style ad-hoc;
     213option resource-location-servers 192.168.0.1;
     214option tftp-server-name "192.168.0.1";
     215
     216# lease options
     217max-lease-time 86400;
     218default-lease-time 86400;
     219       
     220# safety, incase a script kiddie copies this config     
     221ignore unknown-clients;
     222subnet 192.168.0.0 netmask 255.255.0.0 {
     223not authoritative;
     224}
     225
     226# pxe options
     227option space PXE;
     228option PXE.mtftp-ip    code 1 = ip-address;
     229option PXE.mtftp-cport code 2 = unsigned integer 16;
     230option PXE.mtftp-sport code 3 = unsigned integer 16;
     231option PXE.mtftp-tmout code 4 = unsigned integer 8;
     232option PXE.mtftp-delay code 5 = unsigned integer 8;
     233option PXE.mtftp-ip 0.0.0.0;
     234
     235group {
     236# PXE-specific configuration directives...
     237next-server 192.168.0.1;
     238filename "linux-install/pxelinux.0";
     239get-lease-hostnames true;
     240use-host-decl-names on;
     241host pu_ias0 {
     242hardware ethernet 0:22:33:44:55:66;
     243fixed-address 192.168.0.201;
     244}
     245host pu_ias1 {
     246hardware ethernet 0:77:88:99:aa:bb;
     247fixed-address 192.168.0.202;
     248}
     249}
     250
     251}}}
     252
     253You'll need to change the hardware ethernet line to the mac address of your machine.
     254Start dhcp
     255
     256{{{
     257#!sh
     258root@puias etc# service dhcpd start
     259Starting dhcpd:                                              OK 
     260root@puias etc#
     261}}}
     262
     263You'll need your machine to serve ip the pxeboot file on tftp, install the tftp-server rpm and turn on tftp in xinetd.
     264{{{
     265root@tftpboot tftpboot# chkconfig tftp on
     266}}}
     267
     268Next install the system-config-netboot and syslinux packages.
     269{{{
     270root@pu_ias linux-install# rpm -Uvh syslinux-2.11-1.i386.rpm system-config-netboot-0.1.8-1.i386.rpm
     271Preparing...                         ########################################### 100%
     2721:syslinux                        ########################################### 100%
     2732:system-config-netboot ########################################### 100%
     274}}
     275
     276Export your nfs install tree (do this now, pxeos tries to mount):
     277{{{
     278root@pu_ias # exportfs -o async,ro *:/PU_IAS
     279root@pu_ias # exportfs
     280/PU_IAS       
     281}}}
     282
     283Configure pxe:
     284{{{
     285root@pu_ias # pxeos -a -i "PU_IAS Local 2" -p NFS -D 0 -s yournfsserver.somewhere.edu \
     286-L/PU_IAS/local/2WS/en/os/i386 pu_ias-2WS
     287root@pu_ias # pxeos -l
     288pu_ias-2WS
     289Description:    PU_IAS Local 2WS
     290Protocol:       NFS
     291isDiskless:     0
     292Server:         yournfsserver.somwhere.edu
     293Location:       /PU_IAS/local/2WS/en/os/i386
     294}}}
     295
     296Now add a client:
     297{{{
     298root@pu_ias # pxeboot -a -O pu_ias-2 192.168.0.201
     299}}}
     300
     301Now boot your machine, make sure tftp and dhcp are running on the server and that your nfs export is working. Also, check your firewall rules, the default rules will likely prevent your boot from succeeding, disable the firewall on the server temporarily if you experience problems at this point. (This is not the best practice though, you should enable tftp and dhcp on your machine in /etc/sysconfig/iptables)
     302
     303Also, there is great documentation in the system-config-netboot rpm, check out your
     304/usr/share/doc/system-config-netboot-*/ directory.