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