From owner-freebsd-emulation@FreeBSD.ORG Wed Apr 13 08:45:22 2011 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 896F51065673 for ; Wed, 13 Apr 2011 08:45:22 +0000 (UTC) (envelope-from decke@bluelife.at) Received: from groupware.itac.at (groupware.itac.at [91.205.172.99]) by mx1.freebsd.org (Postfix) with ESMTP id 103528FC17 for ; Wed, 13 Apr 2011 08:45:21 +0000 (UTC) Received: from home.bluelife.at (93.104.210.95) by groupware.itac.at (Axigen) with (AES256-SHA encrypted) ESMTPSA id 13BBBD; Wed, 13 Apr 2011 10:45:29 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: Wed, 13 Apr 2011 10:45:21 +0200 From: Bernhard Froehlich To: Tobias Oberstein In-Reply-To: <634914A010D0B943A035D226786325D422B76F91CA@EXVMBX020-12.exch020.serverdata.net> References: <634914A010D0B943A035D226786325D422B76F91CA@EXVMBX020-12.exch020.serverdata.net> Message-ID: <41b7269d367ea0d98c3bd4071358d3ab@bluelife.at> X-Sender: decke@bluelife.at User-Agent: Roundcube Webmail/0.5.1 X-AxigenSpam-Level: 1 X-CTCH-RefID: str=0001.0A0B020B.4DA562A0.0203,ss=1,fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown Cc: freebsd-emulation@freebsd.org Subject: Re: rc.d script for running multiple VirtualBox VMs from /etc/rc.conf X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Apr 2011 08:45:22 -0000 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. 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. # 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/