Skip to content

Instantly share code, notes, and snippets.

@yoke88
Forked from dominicsayers/virtualbox.md
Last active August 29, 2015 14:05
Show Gist options
  • Save yoke88/78190250c83c9273e000 to your computer and use it in GitHub Desktop.
Save yoke88/78190250c83c9273e000 to your computer and use it in GitHub Desktop.

Installing Virtualbox 4.3 on Ubuntu Server 13.10 64-bit

First install Virtualbox

  1. Add deb http://download.virtualbox.org/virtualbox/debian trusty contrib to /etc/apt/sources.list
  2. wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
  3. sudo apt-get update
  4. sudo apt-get install dkms unzip vim linux-headers-$(uname -r) build-essential virtualbox-4.3 -y
  5. wget http://download.virtualbox.org/virtualbox/4.3.14/Oracle_VM_VirtualBox_Extension_Pack-4.3.14-95030.vbox-extpack
  6. sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.3.14-95030.vbox-extpack

Prepare the user which vboxweb-service use,you must create the user's home directory

  1. sudo useradd -m -G vboxusers vbox
  2. sudo passwd vbox set the password of vbox and record it

Install apache,PHP and Other components

  1. sudo apt-get install apache2 php5 libapache2-mod-php5 php-soap -y
  2. sudo service apache2 restart

Install and config phpvirtualbox

  1. wget 'http://downloads.sourceforge.net/project/phpvirtualbox/phpvirtualbox-4.3-1.zip' -O phpvirtualbox.zip
  2. sudo unzip phpvirtualbox.zip
  3. sudo mv phpvirtualbox-4.3-1 /var/www/html/phpvirtualbox
  4. sudo mv /var/www/html/phpvirtualbox/config.php-example /var/www/html/phpvirtualbox/config.php
  5. sudo vi /var/www/html/phpvirtualbox/config.php and make $username and $password match the user you created earlier

Config virtualbox webservice

  1. sudo vi /etc/default/virtualbox
  2. Add VBOXWEB_USER=vbox
  3. sudo /etc/init.d/vboxweb-service start
  4. In a browser, go to http://your-server/phpvirtualbox and login with username 'admin' and password 'admin' (you can change it when login into phpvirtualbox)
@yoke88
Copy link
Author

yoke88 commented Aug 19, 2014

Installing Virtualbox 4.3 on Ubuntu Server 13.10 64-bit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment