rc.d script for running multiple VirtualBox VMs from /etc/rc.conf

Bernhard Froehlich decke at bluelife.at
Wed Apr 13 08:45:22 UTC 2011

On Tue, 12 Apr 2011 12:15:37 -0700, Tobias Oberstein wrote:
> I wanted to configure multiple VirtualBox VMs to startup
> automatically at boot time and generally be a nice citizen to the
> FreeBSD way of starting up stuff.
> Using that rc.d script (see attached) you can configure starting up
> multiple VirtualBox VMs from /etc/rc.conf:

Sorry it's probably my fault because you're the 3rd one who has written
such a script but we already have one for 4.0.


It is a bit less complicated and can also manage multiple VMs but it
does not have separated flags per VM.

# vboxheadless_enable (bool):   Set to "NO" by default.
#                               Set it to "YES" to enable vboxheadless.
# vboxheadless_user (str):      User account to run with
# vboxheadless_list (str):      Space Separated VBox Hostnames
# vboxheadless_flags (str):     Custom flags for VBoxHeadless

Bernhard Fröhlich

More information about the freebsd-emulation mailing list