1dnl $OpenBSD: install,v 1.39 2014/03/19 01:59:48 tedu Exp $ 2OpenBSDInstallPrelude 3 4There are several ways to install OpenBSD onto a disk. The easiest way is 5to boot from the bootable CD-ROM mini image, then install from your favorite 6source. You can also use one of the OpenBSD installation floppies, if your 7machine has a floppy drive. Network booting is supported through means of 8dhcpd(8) and tftpd(8). 9 10Booting from Floppy Disk installation media: 11 12 At the SRM console prompt, enter 13 boot dva0 14 You should see info about the primary and secondary boot 15 and then the kernel should start to load. It will take a 16 while to load the kernel from the floppy, most likely more 17 than a minute. If some action doesn't eventually happen, 18 or the spinning cursor has stopped and nothing further has 19 happened, or the machine spontaneously reboots, then either 20 you have a bad boot floppy (in which case you should try 21 another) or your alpha is not currently supported by OpenBSD. 22 23Booting from CD-ROM installation media: 24 25 At the SRM console prompt, enter 26 show device 27 to find the device ID of your CD-ROM drive (the device ID is 28 usually in the second column (``bootdev'') and should start 29 with DKA for a SCSI CD-ROM drive). If your drive shows up with 30 a drive number with trailing zeros, you will want to ignore them 31 (unless it is DKA0). For example, if your CD-ROM drive is listed 32 as DKA600, you want to use dka6 (device IDs are case 33 insensitive). 34 35 Insert the OpenBSD/MACHINE CD-ROM and enter 36 boot DEVICE 37 where DEVICE is the dka device name. 38 39 You should see info about the primary and secondary boot 40 and then the kernel should start to load. If the kernel 41 fails to load or the spinning cursor has stopped and nothing 42 further has happened, you either have a hardware problem or 43 your MACHINE is not currently supported by OpenBSD; try booting 44 from a floppy instead if possible. 45 46Booting from Network: 47 48 In order to bootstrap via the network, you must provide a second 49 system to act as a boot server. It is convenient if this is a second 50 OpenBSD machine as the necessary services are already installed, 51 although source code for such programs as dhcpd can be found in 52 OpenBSD's source tree, and should be reasonably portable to other 53 UN*X-like operating systems. More information on diskless booting 54 can be found in the OpenBSD diskless(8) manual page. 55 56 In this case, you will need to set up dhcpd on the server, which can 57 serve bootp protocol requests. Start by editing the /etc/dhcpd.conf 58 on the bootserver, and declare an information block. Here is an 59 example: 60 61 subnet 10.0.0.0 netmask 255.0.0.0 { 62 host piper { 63 always-reply-rfc1048 "true"; 64 filename "netboot"; 65 option root-path "/alpha"; 66 hardware ethernet 00:02:56:00:73:31; 67 fixed-address 10.42.42.42; 68 } 69 } 70 71 Do not forget to enable dhcpd. 72 73 You will also need to enable tftpd, for the MACHINE to download the 74 "netboot" from the server in the /tftpboot directory. 75 76 Next, you need to add an entry for your MACHINE in /etc/bootparams. 77 For example: 78 79 piper root=myserver:/alpha 80 81 Enable rpc.bootparamd either by turning it on in /etc/rc.conf and 82 rebooting, or by running it manually. 83 84 Only uncompressed kernels are supported for booting in this release. 85 This means you have to execute the following command on your boot 86 server before installing a new kernel for your MACHINE to boot: 87 88 # gzip -dc bsd.rd > /alpha/bsd 89 90 This assumes you have path /alpha exported via NFS. 91 92 Once loaded, netboot will mount /alpha over NFS and load the kernel 93 from there. 94 95Installing using the Floppy, CD-ROM or Network procedure: 96 97OpenBSDInstallPart2 98 99 Boot your machine from the installation media as described above. 100 101 It will take a while to load the installation kernel, especially 102 from a slow network connection or a CD-ROM, most likely more than 103 a minute. 104 If some action doesn't eventually happen, or the spinning cursor 105 has stopped and nothing further has happened, either your boot 106 media is bad, your diskless setup is incorrect, or you may have 107 a hardware or configuration problem. 108 109OpenBSDInstallPart3 110 111OpenBSDInstallPart4 112 113OpenBSDInstallPart5 114 115OpenBSDInstallPart6({:-CD-ROM, -:}) 116 117OpenBSDURLInstall 118 119OpenBSDCDROMInstall 120 121OpenBSDDISKInstall({:-"wdN" or -:},{:-only -:}) 122 123OpenBSDCommonInstall 124 125OpenBSDInstallWrapup 126 127OpenBSDCongratulations 128 129 130 131OpenBSDUnattendedInstallation 132