Running virtualbox on Slackware. -------------------------------- Users and groups. The virtualbox-host Slackware package uses the following uid and gid: vboxhost 215 The user account under which system wide virtal machines are running. This actually acts as a normal user and the group for this user is vboxusers. vboxusers 215 Users added to this group are allowed to run private virtual machines. Init scripts and configuration. The init script is installed as /etc/rc.d/rc.virtualbox and that script does loading and unloading kernel modules, start and stop machines that should autorun in headless mode, and start or stop the vboxwebsrv daemon if this package was compiled with gsoap support. If you will not autorun headless virtual machines, just add "/etc/rc.d/rc.virtualbox start" to rc.local. If your main purpose is to run "headless", then it's better to add the init script to /etc/rc.d/rc.M and /etc/rc.d/rc.6. In /etc/rc.d/rc.M around line 327: # Start the sendmail daemon: if [ -x /etc/rc.d/rc.sendmail ]; then . /etc/rc.d/rc.sendmail start fi # Start virtualbox if [ -x /etc/rc.d/rc.virtualbox ]; then /etc/rc.d/rc.virtualbox start fi # Load ALSA (sound) defaults: if [ -x /etc/rc.d/rc.alsa ]; then . /etc/rc.d/rc.alsa fi In /etc/rc.d/rc.6 around line 133: # Shut down YP services: if [ -x /etc/rc.d/rc.yp ]; then if grep -wq stop /etc/rc.d/rc.yp ; then /etc/rc.d/rc.yp stop fi fi # Stop virtual machines if [ -x /etc/rc.d/rc.virtualbox ]; then /etc/rc.d/rc.virtualbox stop fi # Bring down the networking system, but first make sure that this # isn't a diskless client with the / partition mounted via NFS: if ! /bin/mount | /bin/grep -q 'on / type nfs' ; then if [ -x /etc/rc.d/rc.inet1 ]; then . /etc/rc.d/rc.inet1 stop fi fi Autorun machines. To autorun headless machines add these to /etc/vbox/autorun.cfg like this: # Account to use. VBOXHOST="vboxhost" i=0 # Machine definitions, add them in the order to start. They will be stopped # in the reverse order. Remmember to add a line to increase $i after each # machine. VBOX_NAME[$i]="MBSE Gateway" # name of the machine VBOX_UUID[$i]="02117c0e-9fe0-492a-8ff2-b4ffe0f94960" # uuid of the machine VBOX_AUTO[$i]="false" # true to start VBOX_STOP[$i]="acpipowerbutton" # or acpibutton VBOX_PORT[$i]=5000 # RDP port i=$(($i+1)) # next VBOX_NAME[$i]="MBSE Web" # name of the machine VBOX_UUID[$i]="6e3611d9-0a38-4e75-8ca7-8db67d976326" # uuid of the machine VBOX_AUTO[$i]="true" # true to start VBOX_STOP[$i]="acpipowerbutton" # or savestate VBOX_PORT[$i]=5001 # RDP port i=$(($i+1)) To stop a machine use savestate or acpipowerbutton. The savestate option is fast, but users logged in such machine are not warned but experience a freeze. Choosing the acpipowerbutton does a normal shutdown but takes a lot longer. This is IMHO the best choice for virtual servers.