CVSROOT: /cvs Module name: src Changes by: d...@cvs.openbsd.org 2023/04/28 13:46:42
Modified files: usr.sbin/vmctl : main.c vmctl.c usr.sbin/vmd : config.c control.c parse.y vm.c vmd.c vmd.h Log message: vmd(8)/vmctl(8): allow vm owners to override boot kernel. vmd allows non-root users to "own" a vm defined in vm.conf(5). While the user can start/stop the vm, if they break their filesystem they have no means of booting recovery media like a ramdisk kernel. This change opens the provided boot kernel via vmctl and passes the file descriptor through the control channel to vmd. The next boot of the vm will use the provided file descriptor as boot kernel/bios. Subsequent boots (e.g. a reboot) will return to using behavior defined in vm.conf or the default bios image. ok mlarkin@