Linux: Starting the Web Service With init
On Linux, the web service can be automatically started during
host boot by adding appropriate parameters to the file
/etc/default/virtualbox. There is one
mandatory parameter, VBOXWEB_USER, which must
be set to the user which will later start the VMs. The
parameters in the following table all start with the
VBOXWEB_ prefix string. For example:
VBOXWEB_HOST and
VBOXWEB_PORT.
Web Service Configuration Parameters
Web Service Configuration Parameters
Parameter
Description
Default
USER
The user which the web service runs as
HOST
The host to bind the web service to
localhost
PORT
The port to bind the web service to
18083
SSL_KEYFILE
Server key and certificate file, in PEM format
SSL_PASSWORDFILE
File name for password to server key
SSL_CACERT
CA certificate file, in PEM format
SSL_CAPATH
CA certificate path
SSL_DHFILE
DH file name or DH key length in bits
SSL_RANDFILE
File containing seed for random number generator
TIMEOUT
Session timeout in seconds, 0 disables timeouts
300
CHECK_INTERVAL
Frequency of timeout checks in seconds
5
THREADS
Maximum number of worker threads to run in parallel
100
KEEPALIVE
Maximum number of requests before a socket will be
closed
100
ROTATE
Number of log files, 0 disables log rotation
10
LOGSIZE
Maximum log file size to trigger rotation, in bytes
1MB
LOGINTERVAL
Maximum time interval to trigger log rotation, in
seconds
1 day
Setting the parameter SSL_KEYFILE enables the
SSL/TLS support. Using encryption is strongly encouraged, as
otherwise everything, including passwords, is transferred in
clear text.