AW: rc.d script for running multiple VirtualBox VMs from
/etc/rc.conf
Tobias Oberstein
tobias.oberstein at tavendo.de
Wed Apr 13 12:28:48 UTC 2011
Hi Bernhard,
> > 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.
Ah, ok;)
>
> http://svn.bluelife.at/index.cgi/blueports/view/emulators/virtualbox-ose-
> devel/files/vboxheadless.in
>
> It is a bit less complicated and can also manage multiple VMs but it does not
> have separated flags per VM.
Mine is more complicated, yes .. but it's more or less a direct adaption of the script for apache22.
Also, I definitely need flags per VM, since we run each VM
i) under a dedicated user
ii) on a separate ZFS filesystem
iii) with specific VNC port/password
i+iii requires flags per VM.
iii) is for obvious reasons .. need to connect to each VM on a distinct port.
i) is for a) security and b) management of VMs by different "VM admins" which don't have to be root or have a user which would manage all VMs.
==
I there interest to consolidate our scripts?
Tobias
>
> # 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
> http://www.bluelife.at/
More information about the freebsd-emulation
mailing list