wm: doc

ref: 07a29dd24167bf69642dc462be12a64c156d2536
dir: /vmm.ms/

View raw version
.TL
Install 9front in OpenBSD VMM
.AU
jrmu (jrmu@cloud9p.org)
.AB
This guide explains how to install 9front as a virtual machine inside 
.ihtml a <a href="https://wiki.ircnow.org/?n=Vmm.Intro">
OpenBSD's vmm
.ihtml a
.
.AE

.SH
Install
.LP
.ihtml img <img src="https://wiki.ircnow.org/uploads/9/plan9-desktop.png">
.ihtml img

This installation assumes you have
.ihtml a <a href="vmm.html">
configured vmm
.ihtml a
properly.

Download the 9front ISO: 

# ftp https://9front.org/iso/9front-10522.amd64.iso.gz
# mv 9front-10522.amd64.iso.gz /home/iso/
# cd /home/iso
# sha256 9front-10522.amd64.iso.gz
SHA256 (9front-10522.amd64.iso.gz) = 89f1e35bf735bfc9aeca38286a9a6607f3a40292befa4a30133157790f2edbcc
89f1e35bf735bfc9aeca38286a9a6607f3a40292befa4a30133157790f2edbcc      9front-10522.amd64.iso.gz
$ gunzip 9front-10522.amd64.iso.gz
$ doas chown -R iso:iso /home/iso/

.LP
In /etc/vm.conf, specify 9front as the ISO: 

.CW
vm "$USER" {
    owner $USER
    memory 2048M
    cdrom "/home/$USER/$USER.iso"
    disk /home/$USER/$USER.qcow2 
    interface {
        locked lladdr aa:bb:cc:dd:ee:ff
        switch "switch0"
    }
}
.R

Create a user account and make sure to set the folder as go-rx: 

$ doas su $USER
$ doas chmod -R go-rx /home/$USER

In the home folder:

$ vmctl create -s 20G $USER.qcow2

Then log out of the user with ^D, then as admin user in group wheel: 

$ doas vmctl reload
$ vmctl start -c $USER
host# vmctl start -c jrmu