###############################################################################
                         PLAN9 INSTALLATION WALKTHROUGH
###############################################################################
################################ QUICK STEPS ##################################

[1] LOGIN           - 'ssh YOUR_VPS_SERVER' (your regular username/password)
[2] CREATE DISKS    - 'x' <enter> (please wait...)
[3] INSTALLATION    - 'r' <enter> (follow on-screen instructions)
[4] PRODUCTION MODE - 'z' <enter>
[5] BOOT PLAN9      - 'r' <enter> (enter for "root is from...", user=glenda)

###############################################################################
################################# [1] LOGIN ###################################
###############################################################################

ssh to your vps server (provided in the email sent my smj)

###############################################################################
############################# [2] CREATING DISK ###############################
###############################################################################

VPS Maintenance Shell for plan96 (192.94.73.XX / 10.1.0.XX )
no stats collected.

[c] - Connect to your console
[l] - list your status
[r] - reset or start
[s] - Force Shutdown (not an OS shutdown)
[t] - toggle your Operating System
[i] - Switch your VPS ID (multiple VPS members only)
[x] - Clean install (destroys data)
[z] - Run this after you have done a clean install
[p] - Change your vps.sdf.org password
[u] - View current interface statistics
[U] - View all recorded interface statistics
[q] - Disconnect

[27-Sep-11 09:15:30] Command: x
...

###############################################################################
################ [3] INSTALLATION - FIRST TRY - NO /dev/sd01 ##################
###############################################################################
[27-Sep-11 09:16:32] Command: r

Connecting to System Console - To return to the menu, press ^]

Using config file "/pkg/etc/xen/plan96".

Plan 9 (xen-3.0-x86_32p)
127 holes free
001c2000 06775000 106639360
106639360 bytes free
cpu0: 3006MHz AuthenticAMD AMD64 (cpuid: AX 0x20F51 DX 0x78BFBFF)
Started domain plan96
                     #l0: xen: 100Mbps port 0x0 irq -1: 00163e7e7b04
#l1: xen: 100Mbps port 0x0 irq -1: 00163e0df8c4
256M memory: 104M kernel data, 152M user, 580M swap
cpu0: spurious interrupt 101, last 0
cpu0: spurious interrupt 104, last 1
sdxen: backend /local/domain/0/backend/vbd/83/2048/ secsize 512 sectors 2097152
#S/sd00/data: no partitions
kfs...version...time...

init: starting /bin/rc
/bin/dossrv: serving #s/dos
/bin/mount: mount /n/a:: '/dev/sd*' file does not exist
/bin/mount: mount /n/a:: '/dev/sd*' file does not exist
cp: can't stat /n/a:/plan9.ini: '/n/a:/plan9.ini' does not exist
use DMA for ide drives[yes]:


% inst/textonly
Tue Sep 27 10:28:28 BST 2011 Installation process started

--------------------------------------

Preparing menu...
The following unfinished tasks are ready to be done:
        configfs        - choose the type of file system to install
        stop    - save the current installation state, to be resumed later

Task to do [configfs]:

--------------------------------------
You can install the following types of file systems:

        fossil                  the new Plan9 fileserver
        fossil+venti    fossil + a archival dump server

File system (fossil, fossil+venti)[fossil]:

--------------------------------------

Preparing menu...
The following tasks are done:
        configfs        - choose the type of file system to install

The following unfinished tasks are ready to be done:
        partdisk        - edit partition tables (e.g., to create a plan 9 partition)
        stop    - save the current installation state, to be resumed later
Task to do [partdisk]:

--------------------------------------
The following disk devices were found.

sd00 - Xen block device

Disk to partition (sd00)[sd00]:
The disk you selected HAS NO master boot record on its first sector.
(Perhaps it is a completely blank disk.)
You need a master boot record to use the disk.
Should we install a default master boot record?

Install mbr (y, n)[no default]: y

This is disk/fdisk; use it to create a Plan 9 partition.
If there is enough room, a Plan 9 partition will be
suggested; you can probably just type 'w' and then 'q'.

cylinder = 1048576 bytes
'* p1                    0 1024       (1024 cylinders, 1.00 GB) PLAN9
>>> w
>>> q

--------------------------------------

Preparing menu...
The following tasks are done:
        configfs        - choose the type of file system to install
        partdisk        - edit partition tables (e.g., to create a plan 9 partition)

The following unfinished tasks are ready to be done:
        prepdisk        - subdivide plan 9 disk partition
        stop    - save the current installation state, to be resumed later

Task to do [prepdisk]:

--------------------------------------
The following Plan 9 disk partitions were found.

/dev/sd00/plan9
  empty                 0 2097120    (2097120 sectors, 1023.98 MB)

Plan 9 partition to subdivide (/dev/sd00/plan9)[/dev/sd00/plan9]:
This is disk/prep; use it to subdivide the Plan 9 partition.
If it is not yet subdivided, a sensible layout will be suggested;
you can probably just type 'w' and then 'q'.

no plan9 partition table found
9fat 204800
nvram 1
fossil 1687519
swap 204800
' 9fat                  0 204800     (204800 sectors, 100.00 MB)
' nvram            204800 204801     (1 sectors, 512 B )
' fossil           204801 1892320    (1687519 sectors, 823.98 MB)
' swap            1892320 2097120    (204800 sectors, 100.00 MB)
>>> w
>>> q

--------------------------------------

Preparing menu...
The following tasks are done:
        configfs        - choose the type of file system to install
        partdisk        - edit partition tables (e.g., to create a plan 9 partition)
        prepdisk        - subdivide plan 9 disk partition

The following unfinished tasks are ready to be done:
        fmtfossil       - initialize disks for a fossil server
        stop    - save the current installation state, to be resumed later

Task to do [fmtfossil]:

--------------------------------------
You have the following fossil partitions.

Fossil partition to format (/dev/sd00/fossil)[/dev/sd00/fossil]:
Done.

--------------------------------------

Preparing menu...
The following tasks are done:
        configfs        - choose the type of file system to install
        partdisk        - edit partition tables (e.g., to create a plan 9 partition)
        prepdisk        - subdivide plan 9 disk partition
        fmtfossil       - initialize disks for a fossil server

The following unfinished tasks are ready to be done:
        mountfs - choose and mount file system partition
        stop    - save the current installation state, to be resumed later

Task to do [mountfs]:

--------------------------------------
The following partitions named fossil* were found.

Please choose one to use as the installation file system
for your Plan 9 installation.

--rw-r----- S 0 glenda glenda 864009728 Feb 11  2010 /dev/sd00/fossil

Fossil partition (/dev/sd00/fossil)[/dev/sd00/fossil]:

--------------------------------------

Preparing menu...% fossil/fossil -c . /env/fossilconf
prompt: % mount -c /srv/fossil /n/newfs
fsys main create /active/adm adm sys d775
prompt: fsys main create /active/adm/users adm sys 664
prompt: uname upas :upas
prompt: users -w
        nuser 6 len 96
prompt: fsys main create /active/dist sys sys d775
prompt: fsys main create /active/dist/replica sys sys d775
prompt: fsys main create /active/dist/replica/client sys sys d775
prompt: fsys main create /active/dist/replica/client/plan9.db sys sys 664
prompt: fsys main create /active/dist/replica/client/plan9.log sys sys a664
prompt:
The following tasks are done:
        configfs        - choose the type of file system to install
        partdisk        - edit partition tables (e.g., to create a plan 9 partition)
        prepdisk        - subdivide plan 9 disk partition
        fmtfossil       - initialize disks for a fossil server
        mountfs - choose and mount file system partition

The following unfinished tasks are ready to be done:
        configdist      - choose the source of the distribution archive
        download        - download or continue to download the distribution archives
        stop    - save the current installation state, to be resumed later

Task to do [configdist]:

--------------------------------------
Are you going to download the distribution
from the internet or do you have it on local media?

Distribution is from (local, net)[local]:

--------------------------------------

Preparing menu...
The following tasks are done:
        configfs        - choose the type of file system to install
        partdisk        - edit partition tables (e.g., to create a plan 9 partition)
        prepdisk        - subdivide plan 9 disk partition
        fmtfossil       - initialize disks for a fossil server
        mountfs - choose and mount file system partition
        configdist      - choose the source of the distribution archive

The following unfinished tasks are ready to be done:
        mountdist       - locate and mount the distribution
        download        - download or continue to download the distribution archives
        stop    - save the current installation state, to be resumed later

Task to do [mountdist]:

--------------------------------------
Please wait... Scanning storage devices...
        /dev/sd00/9fat
        /dev/sd00/data
        /dev/sd00/fossil
        /dev/sd00/nvram
        /dev/sd00/swap

The following storage media were detected.
Choose the one containing the distribution.

        /dev/sd00/fossil (plan9 fossil)

Distribution disk [no default]:
Distribution disk [no default]: /dev/sd00/fossil  (this is wrong, see second try!)
% bind /n/newfs /n/distmedia

Which directory contains the distribution?
Any of the following will suffice (in order of preference):
        - the root directory of the cd image
        - the directory containing plan9.iso
        - the directory containing plan9.iso.bz2
Typing `browse' will put you in a shell that you can use to
look for the directory.

Location of archives [browse]:
This is a simple shell. Commands are:
        cd directory    - change to directory
        lc                              - list contents of current directory
        exit                    - exit shell

Move to the directory containing the distribution
and then exit.
commands are cd, lc, and exit
/% lc
adm  dist
/% exit
No distribution found in /
Location of archives [browse]: Ctrl-] 

(Aborted due to no plan9 image loaded - no /dev/sd01)

###############################################################################
############## [3] INSTALLATION - SECOND TRY - /dev/sd01 loaded ###############
###############################################################################
...
same as above, untill 
...

Task to do [mountdist]:

--------------------------------------
Please wait... Scanning storage devices...
        /dev/sd00/9fat
        /dev/sd00/data
        /dev/sd00/fossil
        /dev/sd00/nvram
        /dev/sd00/swap
        /dev/sd01/cdboot
        /dev/sd01/data

The following storage media were detected.
Choose the one containing the distribution.

        /dev/sd00/fossil (plan9 fossil)
        /dev/sd01/cdboot (microsoft fat)
        /dev/sd01/data (iso9660 cdrom)

Distribution disk [no default]: /dev/sd01/data
% 9660srv
/bin/9660srv 2675: serving /srv/9660
% mount /srv/9660 /n/distmedia /dev/sd01/data

Which directory contains the distribution?
Any of the following will suffice (in order of preference):
        - the root directory of the cd image
        - the directory containing plan9.iso
        - the directory containing plan9.iso.bz2
Typing `browse' will put you in a shell that you can use to
look for the directory.

Location of archives [browse]:
This is a simple shell. Commands are:
        cd directory    - change to directory
        lc                              - list contents of current directory
        exit                    - exit shell

Move to the directory containing the distribution
and then exit.

/% lc -l
d-rwxrwxr-x M 17 glenda   sys       0 Apr 25  2010 386
d-rwxrwxr-x M 17 glenda   sys       0 Dec 12  2002 68000
d-rwxrwxr-x M 17 glenda   sys       0 Dec 12  2002 68020
--r--r--r-- M 17 glenda   sys   13006 Jul 13  2005 LICENSE
--rw-rw-r-- M 17 presotto sys   14333 Jun 29  2003 LICENSE.afpl
--rw-rw-r-- M 17 presotto sys   15081 Jun 25  2003 LICENSE.gpl
--r--r--r-- M 17 glenda   sys      63 Apr 14  2002 NOTICE
d-rwxrwxr-x M 17 glenda   sys       0 Dec 12  2002 acme
d-rwxrwxr-x M 17 glenda   sys       0 Dec 12  2002 adm
d-rwxrwxr-x M 17 glenda   sys       0 Dec 12  2002 alpha
d-rwxrwxr-x M 17 glenda   sys       0 Aug  3  2005 amd64
d-rwxrwxr-x M 17 glenda   sys       0 Apr 16  2007 arm
--rw-rw-r-- M 17 sys      sys 2949120 May 27  2010 bootdisk.img
d-rwxrwxr-x M 17 geoff    sys       0 Apr 17  2010 cfg
d-rwxrwxr-x M 17 glenda   sys       0 Jun 30  2007 cron
d-rwxrwxr-x M 17 glenda   sys       0 Dec  2  2007 dist
d-rwxrwxr-x M 17 rsc      sys       0 Jan  4  2005 env
d-rwxrwxr-x M 17 glenda   sys       0 May  8  2002 fd
d-rwxrwxr-x M 17 glenda   sys       0 Feb 25  2010 lib
d-rwxrwxr-x M 17 glenda   sys       0 Mar 15  2004 lp
d-rwxrwxr-x M 17 glenda   sys       0 Dec 29  2006 mail
d-rwxrwxr-x M 17 glenda   sys       0 Dec 12  2002 mips
d-rwxrwxr-x M 17 glenda   sys       0 Nov 28  2006 mnt
d-rwxrwxr-x M 17 glenda   sys       0 Jan  8  2003 n
d-rwxrwxr-x M 17 glenda   sys       0 Dec 12  2002 power
d-rwxrwxr-x M 17 glenda   sys       0 May 11  2007 power64
d-rwxrwxr-x M 17 glenda   sys       0 Dec 12  2002 rc
d-rwxrwxr-x M 17 glenda   sys       0 Dec 12  2002 sparc
d-rwxrwxr-x M 17 glenda   sys       0 Aug  3  2005 sparc64
d-rwxrwxr-x M 17 glenda   sys       0 Dec  2  2007 sys
d-r-xr-xr-x M 17 glenda   sys       0 May  8  2002 tmp
d-rwxrwxr-x M 17 glenda   sys       0 Dec 12  2002 usr
/% exit

--------------------------------------

Preparing menu...
The following tasks are done:
        configfs        - choose the type of file system to install
        partdisk        - edit partition tables (e.g., to create a plan 9 partition)
        prepdisk        - subdivide plan 9 disk partition
        fmtfossil       - initialize disks for a fossil server
        mountfs - choose and mount file system partition
        configdist      - choose the source of the distribution archive
        mountdist       - locate and mount the distribution

The following unfinished tasks are ready to be done:
        copydist        - copy the distribution into the file system
        stop    - save the current installation state, to be resumed later

Task to do [copydist]:

--------------------------------------
|############################################################| 100%
--------------------------------------

Preparing menu...
The following tasks are done:
        configfs        - choose the type of file system to install
        partdisk        - edit partition tables (e.g., to create a plan 9 partition)
        prepdisk        - subdivide plan 9 disk partition
        fmtfossil       - initialize disks for a fossil server
        mountfs - choose and mount file system partition
        configdist      - choose the source of the distribution archive
        mountdist       - locate and mount the distribution
        copydist        - copy the distribution into the file system

The following unfinished tasks are ready to be done:
        bootsetup       - create a boot floppy or configure hard disk to boot plan 9
        stop    - save the current installation state, to be resumed later

Task to do [bootsetup]:

--------------------------------------

Initializing Plan 9 FAT configuration partition (9fat)

rc (bootsetup): null list in concatenation

--------------------------------------

Preparing menu...
The following tasks are done:
        configfs        - choose the type of file system to install
        partdisk        - edit partition tables (e.g., to create a plan 9 partition)
        prepdisk        - subdivide plan 9 disk partition
        fmtfossil       - initialize disks for a fossil server
        mountfs - choose and mount file system partition
        configdist      - choose the source of the distribution archive
        mountdist       - locate and mount the distribution
        copydist        - copy the distribution into the file system

The following unfinished tasks are ready to be done:
        bootsetup       - create a boot floppy or configure hard disk to boot plan 9
        stop    - save the current installation state, to be resumed later

Task to do [bootsetup]:

--------------------------------------

Initializing Plan 9 FAT configuration partition (9fat)

Initializing Plan 9 FAT partition.
add 9load at clust 2
Initializing FAT file system
type hard, 100 tracks, 64 heads, 32 sectors/track, 512 bytes/sec
Adding file /n/newfs/386/9load, length 264076
add 9load at clust 2
used 266240 bytes
% cp /n/newfs/386/9load /n/9fat/9load
% cp /n/newfs/386/9pcf /n/9fat/9pcf

There are myriad ways to boot a Plan 9 system.
You can use any of the following.

  floppy - create a boot floppy
  plan9  - make the plan 9 disk partition the default for booting
  win9x  - add a plan 9 option to windows 9x boot menu
  winnt  - add a plan 9 option to windows nt/2000/xp boot manager

If you are upgrading an extant third edition installation and booting
from something other than a floppy, you needn't run anything here.
Just type ctl-d.
Enable boot method (floppy, plan9, win9x, winnt)[no default]:
Enable boot method (floppy, plan9, win9x, winnt)[no default]:
--------------------------------------

Preparing menu...
The following tasks are done:
        configfs        - choose the type of file system to install
        partdisk        - edit partition tables (e.g., to create a plan 9 partition)
        prepdisk        - subdivide plan 9 disk partition
        fmtfossil       - initialize disks for a fossil server
        mountfs - choose and mount file system partition
        configdist      - choose the source of the distribution archive
        mountdist       - locate and mount the distribution
        copydist        - copy the distribution into the file system
        bootsetup       - create a boot floppy or configure hard disk to boot plan 9

The following unfinished tasks are ready to be done:
        finish  - finish the installation and reboot
        stop    - save the current installation state, to be resumed later

Task to do [finish]:  Ctrl-]

###############################################################################
####################### [4] CHANGE TO PRODUCTION MODE #########################
###############################################################################
VPS Maintenance Shell for plan96 (192.94.73.XX / 10.1.0.XX)
no stats collected.

[c] - Connect to your console
[l] - list your status
[r] - reset or start
[s] - Force Shutdown (not an OS shutdown)
[t] - toggle your Operating System
[i] - Switch your VPS ID (multiple VPS members only)
[x] - Clean install (destroys data)
[z] - Run this after you have done a clean install
[p] - Change your vps.sdf.org password
[u] - View current interface statistics
[U] - View all recorded interface statistics
[q] - Disconnect

[27-Sep-11 15:03:34] Command: z

Changing your system from 'installation' to 'production' mode.

(continue)

###############################################################################
############################# [5] BOOTING PLAN9 ###############################
###############################################################################
[27-Sep-11 15:04:17] Command: r

Connecting to System Console - To return to the menu, press ^]

Using config file "/pkg/etc/xen/plan96".

Plan 9 (xen-3.0-x86_32p)
127 holes free
00270000 067dd000 106352640
106352640 bytes free
cpu0: 3006MHz AuthenticAMD AMD64 (cpuid: AX 0x20F51 DX 0x78BFBFF)
Started domain plan96
                     #l0: xen: 100Mbps port 0x0 irq -1: 00163e1008c0
#l1: xen: 100Mbps port 0x0 irq -1: 00163e09a7f8
256M memory: 104M kernel data, 152M user, 578M swap
cpu0: spurious interrupt 101, last 0
cpu0: spurious interrupt 104, last 1
sdxen: backend /local/domain/0/backend/vbd/88/2048/ secsize 512 sectors 2097152
cpu0: spurious interrupt 105, last 1
sdxen: backend /local/domain/0/backend/vbd/88/2064/ secsize 512 sectors 570936
#S/sd00/: part plan9 32 2097152
#S/sd00/: part 9fat 32 204832
#S/sd00/: part nvram 204832 204833
#S/sd00/: part fossil 204833 1892352
#S/sd00/: part swap 1892352 2097152
#S/sd01/: part cdboot 213144 218904
root is from (tcp, local)[local!#S/sd00/fossil]:
user[none]: glenda
time...
fossil(#S/sd00/fossil)...version...time...

init: starting /bin/rc
#m/mousectl: rc: can't open: unknown device in # filename
init: rc exit status: rc 24: error

init: starting /bin/rc
%

###############################################################################
                                    THE END
###############################################################################
Thanks to smj for vps setup and installation instructions.
The Plan9 tutorial is here:  http://sdf.org/?tutorials/VPS_Plan9