💾 Archived View for g.0x6d77.org › log › no-console.gmi captured on 2022-07-16 at 13:21:45. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
No console
I locked myself out from my OpenBSD.amsterdam machine the other
day. I was upgrading to 7.1, and was a bit trigger happy after
running sysmerge which lead to the entry in /etc/ttys being overwritten
with the default.
The machine was still running fine, but I had no accesss. I rarely
ever touch this machine, it's just running my secondary DNS, not
enabling ssh on it is one less thing to worry about 🤷.
The fix was simple.
Log into the host machine.
Kill the VM:
$ doas pkill -9 -xf "vmd: <my VM name>"
Restart it (with connection to console):
$ vmctl start -c <my VM name>
Enter boot -s in the boot prompt to boot into single user mode.
Mount the file system:
$ fsck -p $ mount -a
Edit the ttys entry:
$ ed /etc/ttys /^tty00 c tty00 "/usr/libexec/getty std.115200" vt220 on secure . w q
Reboot:
$ reboot
Solved.