Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Jan 2026 12:06:01 -0500
From:      Mark Johnston <markj@freebsd.org>
To:        freebsd-virtualization@freebsd.org
Subject:   new vmm group to enable non-root bhyve use
Message-ID:  <aWpv-eWao6sqQOf4@nuc>

index | next in thread | raw e-mail

Hi,

I posted some patches for review which add a new "vmm" group and modify
the default ownership and mode of /dev/vmmctl.  The result is that
regular users that belong to the vmm group will be able to create and
run bhyve VMs, albeit with some caveats:
- They must run bhyve in "monitor mode", i.e., with -M, to ensure that
  the VM is destroyed automatically upon last close.
- PCI passthru cannot be used.
- The user of course needs to be able to access any filesystem resources
  specified in the bhyve configuration, e.g., disk files or tap devices.
  Note that the slirp networking backend has recently gotten some
  improvements and can be used as an unprivileged user.

The /dev/vmm* device files for a particular VM are owned by the user
that created the VM, so the same user can inspect and destroy the VM
with bhyvectl.

The patch series starts here (follow the linked revisions in the "stack"
tab): https://reviews.freebsd.org/D54739

Any feedback or comments would be appreciated.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?aWpv-eWao6sqQOf4>