ref: 03c80278b2fec07b71ced71e7f5db1cea9ca71ec
parent: 07e51d1019e9f2d22a0e97140d6605f48d14d83b
author: jrmu <jrmu@cloud9p.org>
date: Sat Aug 17 11:37:19 EDT 2024
Update openbsd vmm guide
--- /dev/null
+++ b/vmm.ms
@@ -1,0 +1,65 @@
+.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
\ No newline at end of file