2002-07-22 17:59:24 +04:00
|
|
|
.\" $NetBSD: xfer,v 1.11 2002/07/22 13:59:24 lukem Exp $
|
1999-01-13 10:30:01 +03:00
|
|
|
.
|
1995-11-24 11:50:29 +03:00
|
|
|
Installation is supported from several media types, including:
|
2000-10-10 16:55:15 +04:00
|
|
|
.(bullet -compact -offset indent
|
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)
|
1999-01-13 10:30:01 +03:00
|
|
|
.(Note
|
2000-10-29 17:08:04 +03:00
|
|
|
Installing on a
|
|
|
|
.Sq bare
|
|
|
|
machine requires some bootable device; either a tape drive or
|
|
|
|
.Tn Sun Ns No -compatible
|
|
|
|
NFS server.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Note)
|
|
|
|
.Pp
|
1995-11-24 11:50:29 +03:00
|
|
|
The procedure for transferring the distribution sets onto
|
2002-06-30 16:57:29 +04:00
|
|
|
installation 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
|
2000-10-10 16:55:15 +04:00
|
|
|
In order to create installation media, you will need all the
|
1999-01-13 10:30:01 +03:00
|
|
|
files in the directory
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
|
|
|
.Dl Pa \&.../NetBSD-\*V/\*M/
|
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
|
|
|
.
|
1995-11-24 11:50:29 +03:00
|
|
|
Installing from tape is the simplest method of all.
|
1999-01-13 10:30:01 +03:00
|
|
|
This method uses two tapes; one called the
|
|
|
|
.Em boot
|
|
|
|
tape, and another called the
|
|
|
|
.Em install No tape.
|
|
|
|
.Pp
|
1995-11-24 11:50:29 +03:00
|
|
|
The boot tape is created as follows:
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
|
|
|
.Dl # Ic "cd .../NetBSD-\*V/\*M/installation/tapeimage"
|
|
|
|
.Dl # Ic "sh MakeBootTape /dev/nrst0"
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
1995-11-24 11:50:29 +03:00
|
|
|
The install tape is created as follows:
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pp
|
|
|
|
.Dl # Ic "cd .../NetBSD-\*V/\*M/installation/tapeimage"
|
|
|
|
.Dl # Ic "sh MakeInstallTape /dev/nrst0"
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
1995-11-24 11:50:29 +03:00
|
|
|
If the tapes do not work as expected, you may need to explicitly
|
2002-06-30 16:57:29 +04:00
|
|
|
set the EOF mark at the end of each tape segment.
|
|
|
|
It may also be necessary to use the
|
1999-01-13 10:30:01 +03:00
|
|
|
.Cm conv=osync
|
|
|
|
argument to
|
|
|
|
.Xr dd 1 .
|
|
|
|
Note that
|
|
|
|
this argument is incompatible with the
|
|
|
|
.Cm bs=
|
2002-06-30 16:57:29 +04:00
|
|
|
argument.
|
|
|
|
Consult the tape-related manual pages on the system where the tapes are
|
1995-11-24 11:50:29 +03:00
|
|
|
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
|
|
|
.
|
1995-11-24 11:50:29 +03:00
|
|
|
If your machine has a disk and network connection, but no tape drive,
|
2000-10-10 16:55:15 +04:00
|
|
|
it may be convenient for you to install
|
|
|
|
.Nx
|
2002-06-30 16:57:29 +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
|
2000-10-10 16:55:15 +04:00
|
|
|
If you are using a
|
|
|
|
.Nx
|
|
|
|
system as the boot-server, have a look at
|
2000-10-29 17:08:04 +03:00
|
|
|
the
|
|
|
|
.Xr diskless 8
|
2002-06-30 16:57:29 +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
|
2000-10-10 16:55:15 +04:00
|
|
|
When instructed to boot over the network, your \*M expects to be
|
1999-01-13 10:30:01 +03:00
|
|
|
able to download a second stage bootstrap program via
|
|
|
|
.Tn TFTP
|
|
|
|
after
|
|
|
|
it has acquired its IP address through
|
|
|
|
.Tn RARP .
|
|
|
|
It will attempt to download a file using a name derived from the
|
2002-07-22 17:59:24 +04:00
|
|
|
machine's recently acquired IP address,
|
|
|
|
and in the case of sun3x machines, an extension which corresponds to the
|
|
|
|
machine architecture.
|
2000-10-10 16:55:15 +04:00
|
|
|
(It may be handy to have a hexadecimal
|
2002-06-30 16:57:29 +04:00
|
|
|
calculator for this next step.)
|
2002-07-22 17:59:24 +04:00
|
|
|
The filename is created by
|
1999-01-13 10:30:01 +03:00
|
|
|
converting the machine's assigned IP address into hexadecimal,
|
|
|
|
most-significant octet first, using uppercase characters for the
|
|
|
|
non-decimal (A-F) digits.
|
2002-07-22 17:59:24 +04:00
|
|
|
sun3x machines use a filename suffix of
|
|
|
|
.Pa .SUN3X .
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2002-07-22 17:59:24 +04:00
|
|
|
For example, a sun3 which has been assigned IP address 130.115.144.11
|
1999-01-13 10:30:01 +03:00
|
|
|
will make an
|
|
|
|
.Tn TFTP
|
|
|
|
request for
|
2002-07-22 17:59:24 +04:00
|
|
|
.Pa 8273900B ,
|
|
|
|
and a sun3x will try
|
|
|
|
.Pa 8273900B.SUN3X .
|
1999-01-13 10:30:01 +03:00
|
|
|
Normally, this file
|
2000-10-10 16:55:15 +04:00
|
|
|
is a symbolic link to the
|
|
|
|
.Nx*M
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pa netboot
|
|
|
|
program, which should
|
|
|
|
be located in a place where the
|
|
|
|
.Tn TFTP
|
2002-06-30 16:57:29 +04:00
|
|
|
daemon can find it.
|
|
|
|
(Remember, many TFTP daemons run in 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
|
1995-11-24 11:50:29 +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
|
2002-06-30 16:57:29 +04:00
|
|
|
kernel from that location.
|
|
|
|
The server should have a copy of the netbsd-rd kernel in the root area
|
|
|
|
for your client (no other files are needed in the client root) and
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pa /etc/bootparams
|
|
|
|
on the server
|
1995-11-24 11:50:29 +03:00
|
|
|
should have an entry for your client and its root directory.
|
|
|
|
The client will need access to the miniroot image, which can be
|
1999-05-19 09:49:06 +04:00
|
|
|
provided using NFS or remote shell.
|
1999-01-13 10:30:01 +03:00
|
|
|
.Pp
|
2000-10-10 16:55:15 +04:00
|
|
|
If you will be installing
|
|
|
|
.Nx
|
|
|
|
on several clients, it may be useful
|
1995-11-24 11:50:29 +03:00
|
|
|
to know that you can use a single NFS root for all the clients as long
|
2002-06-30 16:57:29 +04:00
|
|
|
as they only use the netbsd-rd kernel.
|
|
|
|
There will be no conflict between clients because the RAM-disk kernel will
|
|
|
|
not use the NFS root.
|
1995-11-24 11:50:29 +03:00
|
|
|
No swap file is needed; the RAM-disk kernel does not use that either.
|
1999-01-13 10:30:01 +03:00
|
|
|
.
|
|
|
|
.Ss2 Install/Upgrade from CD-ROM
|
|
|
|
.
|
1995-11-24 11:50:29 +03:00
|
|
|
This method requires that you boot from another device (i.e. tape
|
1999-01-13 10:30:01 +03:00
|
|
|
or network, as described above). You may need to make a boot tape
|
2002-06-30 16:57:29 +04:00
|
|
|
on another machine using the files provided on the CD-ROM.
|
|
|
|
Once you have booted netbsd-rd (the RAM-disk kernel) and loaded the
|
1995-11-24 11:50:29 +03:00
|
|
|
miniroot, you can load any of the distribution sets directly from
|
2002-06-30 16:57:29 +04:00
|
|
|
the CD-ROM.
|
|
|
|
The
|
2000-10-29 17:08:04 +03:00
|
|
|
.Ic install
|
|
|
|
program in the miniroot automates the
|
1995-11-24 11:50:29 +03:00
|
|
|
work required to mount the CD-ROM and extract the files.
|
1999-01-13 10:30:01 +03:00
|
|
|
.
|
|
|
|
.Ss2 Install/Upgrade via FTP
|
|
|
|
.
|
1995-11-24 11:50:29 +03:00
|
|
|
This method requires that you boot from another device (i.e. tape
|
2002-06-30 16:57:29 +04:00
|
|
|
or network, as described above).
|
|
|
|
You may need to make a boot tape on another machine using the files in
|
2000-10-29 17:08:04 +03:00
|
|
|
.Pa .../install
|
2002-06-30 16:57:29 +04:00
|
|
|
(which you get via FTP).
|
|
|
|
Once you have booted netbsd-rd (the RAM-disk kernel)
|
1995-11-24 11:50:29 +03:00
|
|
|
and loaded the miniroot, you can load any of the distribution sets
|
2002-06-30 16:57:29 +04:00
|
|
|
over the net using FTP.
|
|
|
|
The
|
2000-10-29 17:08:04 +03:00
|
|
|
.Ic install
|
|
|
|
program in the miniroot
|
1995-11-24 11:50:29 +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-16 00:06:21 +03:00
|
|
|
The preparations for this installation/upgrade method are easy; all
|
|
|
|
you make sure that there's some FTP site from which you can retrieve
|
2000-10-10 16:55:15 +04:00
|
|
|
the
|
|
|
|
.Nx
|
2002-06-30 16:57:29 +04:00
|
|
|
distribution when you're about to install or upgrade.
|
|
|
|
You need to know the numeric IP address of that site, and, if it's not on
|
1997-12-16 00:06:21 +03:00
|
|
|
a network directly connected to the machine on which you're installing
|
2000-10-10 16:55:15 +04:00
|
|
|
or upgrading
|
|
|
|
.Nx ,
|
|
|
|
you need to know the numeric IP address of the
|
|
|
|
router closest to the
|
|
|
|
.Nx
|
2002-06-30 16:57:29 +04:00
|
|
|
machine.
|
|
|
|
Finally, you need to know the numeric IP address of the
|
2000-10-10 16:55:15 +04:00
|
|
|
.Nx
|
|
|
|
machine itself.
|