The Machine Emulator, or tme, is a
program that provides a general-purpose framework for computer
emulation. The first machine that tme could emulate was the
Sun 2/120, one of the first widely available Sun workstations.

The files you want to download and place in the my-tape
directory are:

From the sun2/binary/kernel directory: netbsd.RAMDISK.gz

From the sun2/installation/miniroot directory: miniroot.fs.gz

From the sun2/binary/sets directory: base.tgz, etc.tgz, kern-FOURMEG.tgz, and any other
binary sets that you want to install.

The NetBSD 1.6.1 and earlier tapeboot program has bugs that prevent it
from booting a Sun 2; version 1.12 fixes these bugs, but it isn't available
from an official NetBSD site yet. Download it from here and place it in the
my-tape directory:

Now we will create the virtual tape. Although this isn't necessary,
for convenience we will make numbered symlinks to these files. The
numbers will correspond to positions, or segments, on the virtual
tape, and we will then use those symlink names with tme:

Label the disk with edlabel /dev/rsd0c. Remember,
all partitions that you create must begin on cylinder boundaries,
because the classic Sun disklabel format requires it. NetBSD will
assign a geometry to the virtual disk (since the virtual disk does not
report one), and you can find the sectors per cylinder value inside
edlabel.

It takes a very long time for newfs to make filesystems.
(This is true even on a real Sun 2.)

Unless you've set up Ethernet access for tmesh, answer
n when install asks you Configure the network?.

When asked Install from (f)tp, (t)ape, (C)D-ROM, (N)FS,
select t for tape. The tape device is nrst0. Start
with file number 6, corresponding to base.tar. This
set will take the longest - around two hours on a 500MHz machine.
After this set has been installed, install the other sets, at tape
file numbers 7, 8, etc.

It takes a very long time for MAKEDEV to make devices.
(This is true even on a real Sun 2.)

Once install is done, it will leave you at the #
prompt. After you halt the machine, a simple b at
the PROM prompt should boot the installed system.

Now that the system has been fully installed, you may want to
add a line to MY-SUN2 to automatically power up the
machine each time you start tmesh: