-
Notifications
You must be signed in to change notification settings - Fork 109
Installation Standalone
export TARGETDIR=/tmp
go get harvey-os.org/cmd/centre
centre -i "" -ninep-dir=$TARGETDIR
cd build
bash build.bash
cd $TARGETDIR
bunzip2 plan9-new.iso.bz2
At this point we have plan9-new.iso
in the $TARGETDIR specified to ufs; you might want to use some other location than /tmp. Do not use a location in the harvey tree as most of it is copied in subsequent builds. Now we want to create an empty disk image, and install harvey on it.
Before installing harvey on the image, ensure no large untracked files in repo (other than plan9-new.iso). Other large files, not part of the repo might cause the image creation step to run out of memory.
qemu-img create -f qcow2 harvey.qcow2 2G
qemu-system-x86_64 --enable-kvm -serial stdio -net user -net nic,model=virtio -m 4096 -cdrom plan9-new.iso -drive id=disk,file=harvey.qcow2 -boot d
Now we have manual steps to install. At each prompt, enter the following for a simple standalone installation:
1
yes (use DMA)
ps2
1280x1024x32
vesa
Now we have harvey running rio (an actual GUI!). As before, enter the following at each prompt (most are defaults):
configfs
fossil
partdisk
sdC0
y
w
q
prepdisk
/dev/sdC0/plan9
w
q
fmtfossil
/dev/sdC0/fossil
mountfs
/dev/sdC0/fossil
configdist
local
mountdist
/dev/sdD0/data
browse
exit
copydist
bootsetup
plan9
y
finish
Now quit qemu. Time to boot into your fresh installation of Harvey.
qemu-system-x86_64 --enable-kvm -serial stdio -net user,id=user.0,hostfwd=tcp::5555-:1522,hostfwd=tcp::9999-:9,hostfwd=tcp::17010-:17010,hostfwd=tcp::1666-:1666,hostfwd=tcp::5356-:5356,hostfwd=tcp::17013-:17013 -net nic,model=virtio -m 1024 -drive id=disk,file=harvey.qcow2 -boot d
Boot the 9pcf kernel. At the prompt, enter:
2
You're now in Harvey!
Enable DMA by adding the following to lib/profile:
echo dma on > /dev/sdC0/ctl
(From https://9p.io/wiki/plan9/Drawterm_to_your_terminal/index.html)
ip/ipconfig
auth/factotum
echo 'key proto=p9sk1 dom=livecd user=glenda !password=password' >/mnt/factotum/ctl
aux/listen1 -t tcp!*!17010 /bin/cpu -R &
(Assumes drawterm built: /~https://github.com/9fans/drawterm)
drawterm -a localhost -c localhost -u glenda