| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
loading of invalid kernel files.
Reported by mlarkin@
OK mlarkin@
|
| | |
|
| |
|
|
|
|
|
|
| |
Tested by Jon Bernard and reyk@.
OK reyk@, no objections mlarkin@.
Thanks
|
| |
|
|
|
|
| |
once again after setting the next available id.
Suggested by edd@
|
| |
|
|
|
|
| |
style that is used in other places. Also keep the vmid from the parent.
OK edd@
|
| |
|
|
|
|
|
| |
Brings us one step closer to having disabled by default vms is vm.conf(5),
which can be started with vmctl(8).
Input, testing and OK reyk@. Thanks.
|
| |
|
|
|
|
| |
this group will be added to all VM tap(4) interfaces in the switch.
Tested by martijn@
|
| |
|
|
| |
Requested and tested by martijn@
|
| |
|
|
| |
OK rzalamena@
|
| |
|
|
|
|
| |
undead VM processes.
OK mlarkin@
|
| |
|
|
|
|
| |
See vm.conf(5) for more details.
OK mlarkin@
|
| |
|
|
|
|
|
|
|
|
|
| |
operations that aren't allowed under pledge. This is a companion to
the "vmd" process that runs as root but with pledge.
With the "priv" process, each new tap(4) interface now gets a
description to indicate the vm, eg. "vm1-if0-myvm". For network
configuration will be done by vmd/priv later.
OK mlarkin@
|
| |
|
|
| |
No objections from mlarkin@ sunil@
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
If a VM exits, terminate it and remove it from the list of
available VMs. That allows a VM with name `foo' to be restarted
after it has exited.
This changes structures shared between vmd and vmctl. You need to
rebuild vmctl also.
ok mlarkin@
|
| |
|
|
|
|
| |
control socket before free'ing the vm.
Found by and OK jsg@
|
| |
|
|
|
|
| |
titles (including flags) to distinguish between daemons, this makes it
possible to manage multiple copies of a daemon using the normal infrastructure
by symlinking rc.d scripts to a new name. ok jung@ ajacoutot@, smtpd ok gilles@
|
| |
|
|
|
| |
vmctl stop 3
vmctl stop "openbsd.vm"
|
| |
|
|
| |
ok reyk@
|
| |
|
|
| |
ok reyk@
|
| | |
|
| |
|
|
|
|
|
|
| |
instances of the same configuration will be handled in a different way
later. It is also not a good idea to use the same writeable disk
with multiple VMs at the same time.
As discussed with mlarkin@
|
| | |
|
| |
|
|
|
|
|
| |
unique id to it. This happens in the vm child process and has to be
communicated to the parent processes to track the vm. Knowing the vm
id in the parent and vmm processes also allows to remove vm from the
daemons list on terminate requests later.
|
| | |
|
| |
|
|
| |
Pointed out by deraadt@
|
| |
|
|
|
|
|
|
| |
the configuration in vmctl directly, it now sends a (re)load request
to vmd. The reload also resets the existing configuration status -
this doesn't do much difference yet but a future change will compare
if a specified VM is already running. "load" will allow to add
configuration, while "reload" resets the state before loading.
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
vmm.conf(5) in vmmctl. For a short time, both vmd and vmmctl will
support a configuration file, but vmmctl will be changed to send
"load" requests to vmd instead of loading and parsing the file
directly.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
"vmm" with reduced privileges:
- the "parent" opens fds (disks, ifs, etc.) but runs as root but pledged as
"stdio rpath wpath proc tty sendfd".
- the "vmm" process handles the creation and supervision of vm processes,
and the primary communication with the vmm(4) subsystem. It runs as _vmd
in the chroot but does not use pledge, as the vmm ioctls are not allowed
by any pledge model yet.
With this change, vmd starts to track the configuration state of VMs
in vmd and will allow other things later (like terminating a vm by
name, moving the configuration parser to vmd, ...). More incremental
changes will follow.
|
| |
|
|
|
|
|
|
| |
process into multiple parts and adopting the "proc.c"-style from other
daemons. This allows to further reduce the privileges, to give better
pledge(2), and to add some upcoming changes.
"please do" mlarkin@, deraadt@
|
| |
|
|
|
|
|
|
|
| |
last VM is terminated. This allows to remove the explicit "vmm
enable" / "vmm disable" (VMM_IOC_START / VMM_IOC_STOP) ioctls. You'll
have to update kernel and userland for this change, as the kernel ABI
changes.
OK mpi@ mlarkin@
|
| | |
|
| |
|
|
|
|
|
|
|
| |
in the current control socket loop. Add a poll before the accept that
is not restarted and allows to escape the loop. This code is kind of
temporary, as we're planning to replace the event handling, but it
allows to kill (or Ctrl+c) vmd for now.
OK tedu@, discussed with many
|
| |
|
|
|
|
| |
messages to log_*.
From Cesare Gargano
|
| |
|
|
|
|
| |
foreground with -d.
OK mlarkin@ jung@
|
| | |
|
| | |
|
|
|
There is still a lot to be done, and fixed, in these userland components
but I have received enough "it works, commit it" emails that it's time
to finish those things in tree.
discussed with many, tested by many.
|