Alright! Time to get VM’s rolling.
I’m going to be running phpvirtualbox on Ubuntu Server 12.04.3. The phpvirtualbox software will work really well because it’s web based and the server is headless.
Basically I’m following these guides:
https://gist.github.com/dominicsayers/3012172
And doing the following:
Install VirtualBox – note you will most likely need to upgrade
1 |
sudo nano /etc/apt/sources.list.d/virtualbox.list |
Add the line
1 |
deb http://download.virtualbox.org/virtualbox/debian raring contrib non-free |
To that file then exit by hitting ^X
. Continuing:
1 2 3 4 5 6 |
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add - sudo apt-get update sudo apt-get install dkms unzip sudo apt-get install virtualbox-4.2 --no-install-recommends wget http://download.virtualbox.org/virtualbox/4.2.12/Oracle_VM_VirtualBox_Extension_Pack-4.2.12.vbox-extpack sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.2.12.vbox-extpack |
Then install phpvirtualbox
1 2 3 4 5 6 7 8 9 10 |
sudo apt-get install apache2 php5 libapache2-mod-php5 sudo service apache2 restart sudo adduser --ingroup vboxusers vbox wget 'http://sourceforge.net/projects/phpvirtualbox/files/latest/download' -O phpvirtualbox-latest.zip sudo unzip phpvirtualbox-latest.zip -d /var/www cd /var/www sudo mv phpvirtualbox-latest phpvirtualbox cd phpvirtualbox sudo mv config.php-example config.php sudo nano config.php |
Edit this file to set $username and $password match the user you created earlier
Also add the following disable phpVirtualbox’s authentication:
1 |
var $noAuth = true; |
Then ^X
to exit. Continue with the installation:
1 |
sudo nano /etc/default/virtualbox |
Add the line:
1 |
VBOXWEB_USER=vbox |
Then ^X
to exit. Start virtualbox with:
1 |
sudo /etc/init.d/vboxweb-service start |
And then navigate to yourserversip/phpvirtualbox
Then getting a virtalbox VM running inside of that is easy!
1 Comment