2002-11-18 15:39:43 +03:00
|
|
|
.\" $NetBSD: xfer,v 1.14 2002/11/18 12:39:52 lukem Exp $
|
1999-01-13 10:30:01 +03:00
|
|
|
.
|
1997-12-18 22:20:10 +03:00
|
|
|
Installation is supported from several media types, including:
|
2000-10-10 16:55:15 +04:00
|
|
|
.(bullet
|
1999-01-13 10:30:01 +03:00
|
|
|
Tape
|
|
|
|
.It
|
|
|
|
NFS
|
|
|
|
.It
|
|
|
|
CD-ROM
|
|
|
|
.It
|
|
|
|
FTP
|
2000-10-10 16:55:15 +04:00
|
|
|
.bullet)
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
|
|
|
Note that installing on a
|
|
|
|
.Sq bare
|
|
|
|
machine requires either a bootable
|
2002-06-30 04:46:48 +04:00
|
|
|
tape drive or an ethernet to a compatible NFS server.
|
|
|
|
MVME147 may also need to be booted over an RS232 connection.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
1997-12-18 22:20:10 +03:00
|
|
|
The procedure for transferring the distribution sets onto installation
|
2002-06-30 04:46:48 +04:00
|
|
|
media depends on the type of media.
|
|
|
|
Instructions for each type of media are given below.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
1998-01-04 15:48:14 +03:00
|
|
|
In order to create installation media, you will need all the files and
|
|
|
|
subdirectories in these two directories:
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2000-10-29 17:08:04 +03:00
|
|
|
.(item -offset indent
|
|
|
|
.Pa \&.../NetBSD-\*V/\*M/installation
|
|
|
|
.It
|
|
|
|
.Pa \&.../NetBSD-\*V/\*M/binary
|
|
|
|
.item)
|
1999-01-13 10:30:01 +03:00
|
|
|
.
|
2000-10-10 16:55:15 +04:00
|
|
|
.Ss2 Creating boot/install tapes
|
1999-01-13 10:30:01 +03:00
|
|
|
.
|
2002-06-30 04:46:48 +04:00
|
|
|
Installing from tape is the simplest method of all.
|
|
|
|
This method uses two tapes, one containing a bootable ramdisk and miniroot,
|
|
|
|
the other containing the installation sets.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
1997-12-18 22:20:10 +03:00
|
|
|
The boot tape is created as follows:
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2000-10-29 17:08:04 +03:00
|
|
|
.Dl # Ic "cd .../NetBSD-\*V/\*M/installation"
|
|
|
|
.Dl # Ic "set T = /dev/nrst0"
|
|
|
|
.Dl # Ic "mt -f $T rewind"
|
|
|
|
.Dl # Ic "dd if=tapeimage/stboot of=$T"
|
|
|
|
.Dl # Ic "dd if=tapeimage/bootst of=$T obs=8k conv=osync"
|
2002-11-18 15:39:43 +03:00
|
|
|
.Dl # Ic "gzip -dc tapeimage/netbsd-RAMDISK.gz | dd of=$T obs=8k conv=osync"
|
2001-10-24 02:13:35 +04:00
|
|
|
.Dl # Ic "gzip -dc miniroot/miniroot.fs.gz | dd of=$T obs=8k conv=osync"
|
2000-10-29 17:08:04 +03:00
|
|
|
.Dl # Ic "mt -f $T rewind"
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
1997-12-18 22:20:10 +03:00
|
|
|
The installation set tape is created as follows:
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2000-10-29 17:08:04 +03:00
|
|
|
.Dl # Ic "cd .../NetBSD-\*V/\*M/binary/sets"
|
|
|
|
.Dl # Ic "set T = /dev/nrst0"
|
|
|
|
.Dl # Ic "mt -f $T rewind"
|
|
|
|
.Dl # Ic "for f in base etc comp games man misc text; do"
|
|
|
|
.Dl Ic "\ \ \ \ gzip -d \*< $f.tgz | dd of=$T bs=8k"
|
|
|
|
.Dl # Ic "done"
|
|
|
|
.Dl # Ic "mt -f $T rewind"
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
1997-12-18 22:20:10 +03:00
|
|
|
If the tape does not work as expected, you may need to explicitly
|
2002-06-30 04:46:48 +04:00
|
|
|
set the EOF mark at the end of each tape segment.
|
|
|
|
Consult the tape-related manual pages on the system where the tapes
|
|
|
|
are created for more details.
|
1999-01-13 10:30:01 +03:00
|
|
|
.
|
2000-10-10 16:55:15 +04:00
|
|
|
.Ss2 Boot/Install from NFS server
|
1999-01-13 10:30:01 +03:00
|
|
|
.
|
1997-12-18 22:20:10 +03:00
|
|
|
If your machine has a disk and network connection, but no tape drive,
|
1999-01-13 10:30:01 +03:00
|
|
|
it may be convenient for you to install
|
|
|
|
.Nx
|
2002-06-30 04:46:48 +04:00
|
|
|
over the network.
|
|
|
|
This involves temporarily booting your machine over NFS, just long enough
|
|
|
|
so you can initialize its disk.
|
|
|
|
This method requires that you have access to an NFS server on your
|
|
|
|
network so you can configure it to support diskless boot for your machine.
|
|
|
|
Configuring the NFS server is normally a task for a system administrator,
|
|
|
|
and is not trivial.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
|
|
|
If you are using a
|
|
|
|
.Nx
|
|
|
|
system as the boot-server, have a look at
|
|
|
|
the
|
|
|
|
.Xr diskless 8
|
2002-06-30 04:46:48 +04:00
|
|
|
manual page for guidelines on how to proceed with this.
|
|
|
|
If the server runs another operating system, consult the
|
2000-10-29 17:08:04 +03:00
|
|
|
documentation that came with it (i.e.
|
|
|
|
.Xr add_client 8
|
|
|
|
on
|
|
|
|
.Tn SunOS ) .
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
1999-02-20 19:18:10 +03:00
|
|
|
Booting an MVME147 from ethernet is not possible without first downloading
|
2002-06-30 04:46:48 +04:00
|
|
|
a small bootstrap program (sboot) via RS232.
|
|
|
|
See the section entitled
|
2000-10-29 17:08:04 +03:00
|
|
|
.Sx "Installing from NFS"
|
|
|
|
for details on how to accomplish this.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
1997-12-18 22:20:10 +03:00
|
|
|
sboot expects to be able to download a second stage bootstrap
|
|
|
|
program via TFTP after having acquired its IP address through RARP
|
|
|
|
It will look for a filename derived from the machine's IP address
|
2000-10-29 17:08:04 +03:00
|
|
|
expressed in hexadecimal, with an extension of
|
|
|
|
.Sq Pa .147 .
|
|
|
|
For example, an MVME147 with IP address 130.115.144.11 will make an TFTP
|
|
|
|
request for
|
|
|
|
.Pa 8273900B.147 .
|
|
|
|
Normally, this file is just a symbolic link to the
|
2000-10-10 16:55:15 +04:00
|
|
|
.Nx*M
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pa netboot
|
|
|
|
program, which should be located in a place
|
1997-12-18 22:20:10 +03:00
|
|
|
where the TFTP daemon can find it (remember, many TFTP daemons run in
|
2002-06-30 04:46:48 +04:00
|
|
|
a chroot'ed environment).
|
|
|
|
The netboot program may be found in the install directory of this distribution.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2000-11-01 13:58:29 +03:00
|
|
|
The
|
2000-11-21 15:38:59 +03:00
|
|
|
.Tn MVME162
|
|
|
|
,
|
2000-11-01 13:58:29 +03:00
|
|
|
.Tn MVME167
|
2000-11-21 15:38:59 +03:00
|
|
|
,
|
|
|
|
.Tn MVME172
|
|
|
|
,
|
|
|
|
and
|
|
|
|
.Tn MVME177
|
2002-06-30 04:46:48 +04:00
|
|
|
boot ROMs have code builtin to boot over ethernet from a TFTP server.
|
|
|
|
You should configure it to download the same
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pa netboot
|
2000-11-01 13:58:29 +03:00
|
|
|
program as is used for
|
|
|
|
.Tn MVME147 .
|
1999-02-20 19:18:10 +03:00
|
|
|
.Pp
|
1997-12-18 22:20:10 +03:00
|
|
|
The netboot program will query a bootparamd server to find the NFS
|
|
|
|
server address and path name for its root, and then load a kernel from
|
2002-06-30 04:46:48 +04:00
|
|
|
that location.
|
2002-11-18 15:39:43 +03:00
|
|
|
The server should have a copy of the netbsd-RAMDISK kernel in
|
1997-12-18 22:20:10 +03:00
|
|
|
the root area for your client (no other files are needed in the client
|
|
|
|
root, although it might be a convenient place to put the uncompressed
|
2000-10-29 17:08:04 +03:00
|
|
|
miniroot image) and
|
|
|
|
.Pa /etc/bootparams
|
|
|
|
on the server should have an entry for your client and its root directory.
|
|
|
|
Note that you should rename the
|
2002-11-18 15:39:43 +03:00
|
|
|
.Pa netbsd-RAMDISK
|
2000-10-29 17:08:04 +03:00
|
|
|
kernel to just
|
|
|
|
.Pa netbsd
|
|
|
|
in the client's root directory before trying to netboot the client.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
1997-12-18 22:20:10 +03:00
|
|
|
The client will need access to the miniroot image, which can be
|
2002-06-30 04:46:48 +04:00
|
|
|
provided using NFS or remote shell.
|
|
|
|
If using NFS, miniroot.fs.gz should be expanded on the server,
|
|
|
|
because doing so from the RAMDISK shell is not so easy.
|
|
|
|
The unzipped miniroot takes about 7.5 MB of space.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
|
|
|
If you will be installing
|
|
|
|
.Nx
|
|
|
|
on several clients, it may be useful
|
1997-12-18 22:20:10 +03:00
|
|
|
to know that you can use a single NFS root for all the clients as long
|
2002-11-18 15:39:43 +03:00
|
|
|
as they only use the netbsd-RAMDISK kernel.
|
2002-06-30 04:46:48 +04:00
|
|
|
There will be no conflict between clients because the RAM-disk kernel
|
|
|
|
will not use the NFS root.
|
1997-12-18 22:20:10 +03:00
|
|
|
No swap file is needed; the RAM-disk kernel does not use that either.
|
1999-01-13 10:30:01 +03:00
|
|
|
.
|
2000-10-10 16:55:15 +04:00
|
|
|
.Ss2 Install/Upgrade from CD-ROM
|
1999-01-13 10:30:01 +03:00
|
|
|
.
|
2002-06-30 04:46:48 +04:00
|
|
|
This method requires that you boot from another device
|
|
|
|
(i.e. tape or network, as described above).
|
|
|
|
You may need to make a boot tape on another machine using the files
|
|
|
|
provided on the CD-ROM.
|
2002-11-18 15:39:43 +03:00
|
|
|
Once you have booted netbsd-RAMDISK (the RAMDISK kernel) and loaded the
|
2002-06-30 04:46:48 +04:00
|
|
|
miniroot, you can load any of the distribution sets directly from the CD-ROM.
|
|
|
|
The
|
2000-10-29 17:08:04 +03:00
|
|
|
.Ic install
|
|
|
|
program in the miniroot automates the
|
1997-12-18 22:20:10 +03:00
|
|
|
work required to mount the CD-ROM and extract the files.
|
1999-01-13 10:30:01 +03:00
|
|
|
.
|
2000-10-10 16:55:15 +04:00
|
|
|
.Ss2 Install/Upgrade via FTP
|
1999-01-13 10:30:01 +03:00
|
|
|
.
|
2002-06-30 04:46:48 +04:00
|
|
|
This method requires that you boot from another device
|
|
|
|
(i.e. tape or network, as described above).
|
|
|
|
You may need to make a boot tape on another machine using the files
|
|
|
|
in .../install (which you get via FTP).
|
2002-11-18 15:39:43 +03:00
|
|
|
Once you have booted netbsd-RAMDISK (the RAM-disk kernel) and loaded the
|
2002-06-30 04:46:48 +04:00
|
|
|
miniroot, you can load any of the distribution sets over the net using FTP.
|
|
|
|
The
|
2000-10-29 17:08:04 +03:00
|
|
|
.Ic install
|
|
|
|
program in the miniroot
|
1997-12-18 22:20:10 +03:00
|
|
|
automates the work required to configure the network interface and
|
|
|
|
transfer the files.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
1997-12-18 22:20:10 +03:00
|
|
|
This method, of course, requires network access to an FTP server.
|
2002-06-30 04:46:48 +04:00
|
|
|
This might be a local system, or it might even be ftp.netbsd.org itself.
|
|
|
|
If you wish to use ftp.netbsd.org as your FTP file
|
1997-12-18 22:20:10 +03:00
|
|
|
server, you may want to keep the following information handy:
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2000-10-29 17:08:04 +03:00
|
|
|
.(disp
|
|
|
|
No IP Address: ftp.netbsd.org
|
|
|
|
Login: anonymous
|
|
|
|
Password: \*<your e-mail address\*>
|
|
|
|
Server path: /pub/NetBSD/NetBSD-\*V/\*M/binary
|
|
|
|
.disp)
|
1999-01-13 10:30:01 +03:00
|
|
|
.(Note
|
2001-07-24 22:02:56 +04:00
|
|
|
If you're not using a nameserver during installation,
|
1998-01-04 15:48:14 +03:00
|
|
|
you might find 204.152.184.75 handy; it's the IP address of
|
2000-10-29 17:08:04 +03:00
|
|
|
ftp.netbsd.org as of October, 2000.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Note)
|