Tag: virtualbox

09 May 2014 » Debian Virtualbox Host

Notes on setting up a Debian Virtualbox host for my employer

Overview

https://www.virtualbox.org/manual/

https://blogs.oracle.com/virtualization/entry/new_commercial_license_for_oracle

  • Oracle VM VirtualBox Enterprise - Named User Plus - $50 per named user
  • Oracle’s standard processor licensing, $1,000 per processor socket

Setting up the host box.

How to autostart vms

Good guide to setting up autostart

http://lifeofageekadmin.com/how-to-set-your-virtualbox-vm-to-automatically-startup/

Log

First you need to create the file /etc/default/virtualbox and add a few variables.


            VBOXAUTOSTART_DB=/etc/vbox
            VBOXAUTOSTART_CONFIG=/etc/vbox/vbox.cfg
            

Create the file /etc/vbox/vbox.cfg


            root# mkdir /etc/vbox
            

With one line.


            default_policy = allow
            

Set permissions on directory to the vboxuser group and make sure users can write to the directory as well as sticky bit.


            root# chgrp vboxusers /etc/vbox
            root# chmod 1775 /etc/vbox
            

Add administrator to the vboxusers group.


            root# groups administrator
            administrator : administrator sudo
            
            root# usermod -a -G vboxusers administrator
            
            root# groups administrator
            administrator : administrator sudo vboxusers
            

Every user who wants to enable autostart for individual machines has to set the path to the autostart database directory with


            administrator$ VBoxManage setproperty autostartdbpath /etc/vbox
            

List the vms


            administrator$ VBoxManage list vms
            "craigdeb" {0e7bca8b-b552-4ebb-9e39-bb1f6fb19d5c}
            

            administrator$ VBoxManage modifyvm craigdeb --autostart-enabled on
            

            root# update-rc.d virtualbox defaults
            

After log place holder


            code