Skip to content
VirtualBox Machines Control init script
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
vboxctl
Makefile
README
vboxctl.spec

README

#
# Author: Rogério Carvalho Schneider <stockrt@gmail.com>
# URL:    http://stockrt.github.com
#

VirtualBox Machines Control init script

Usage: ./vboxctl {start|startall|stop|stopall|poweroff|poweroffall|reset|resetall|open|openall|startvm <vmname>|stopvm <vmname>|poweroffvm <vmname>|resetvm <vmname>|openvm <vmname>|status}

With this init script you will be able to control your VMs with the following
options:

- start
Start all configured VMs in /etc/vbox/vbox.cfg

- startall
Start all VMs

- stop
Stop (grace) all configured VMs in /etc/vbox/vbox.cfg

- stopall
Stop (grace) all running VMs

- poweroff
Power off (force) all configured VMs in /etc/vbox/vbox.cfg

- poweroffall
Power off (force) all running VMs

- reset
Reset (reboot) all configured VMs in /etc/vbox/vbox.cfg

- resetall
Reset (reboot) all running VMs

- open
Open GUI for all configured VMs in /etc/vbox/vbox.cfg

- openall
Open GUI for all running VMs

- startvm <vmname>
Start one specific VM

- stopvm <vmname>
Stop one specifc VM

- poweroffvm <vmname>
Power off one specific VM

- resetvm <vmname>
Reset (reboot) one specific VM

- openvm <vmname>
Open GUI for one specific VM

- status
Show which VMs are running

In order to use this initscript you will need to configure
/etc/vbox/vbox.cfg like this:
 VM_USER="stockrt"
 MACHINES="fedora01 centos01 freebsd7 windows-xp"
You can’t perform that action at this time.