VirtualBox

From Amahi Wiki
Jump to: navigation, search


WEB SITE: http://www.virtualbox.org

Virtual Box on Fedora 12

LATEST RELEASE: 3.2.10

This is a step by step tutorial on how to get VirtualBox 3 up and running on Fedora 12. Specifically, this guide was written using the VirtualBox 3.2.10 version and an i386 CPU (32-bit), but should work with all versions. It can be adapted to upcoming versions and different CPUs (64-bit). The folks at VirtualBox have made it easy to install for Fedora users and I’m going to show you how in a few easy steps. Right, open a terminal window and let’s get to it…

Install Option 1

  • Become privileged (root user):
su -
  • Install the VirtualBox repo:
wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo && cp virtualbox.repo /etc/yum.repos.d/
  • Enable the new repo:
yum clean all
yum update
  • Install VirtualBox (along with a few other required packages). If you’re having issues here, try installing kernel-PAE-devel first:
yum install -y VirtualBox-3.2 dkms gcc
  • Add yourself to the “vboxusers” group:
usermod -G vboxusers -a <yourusername>
  • Run and enjoy!
VirtualBox


NOTE: See how-to-install-virtualbox-3-on-fedora-12-tutorial for more info.

Install Option 2

  • Become privileged (root user):
su -
  • Download the applicable RPM for your system from the list below:
wget http://download.virtualbox.org/virtualbox/rpm/fedora/12/i386/VirtualBox-3.2-3.2.8_64453_fedora12-1.i686.rpm
wget http://download.virtualbox.org/virtualbox/rpm/fedora/12/i486/VirtualBox-3.2-3.2.8_64453_fedora12-1.i686.rpm
wget http://download.virtualbox.org/virtualbox/rpm/fedora/12/i586/VirtualBox-3.2-3.2.8_64453_fedora12-1.i686.rpm
wget http://download.virtualbox.org/virtualbox/rpm/fedora/12/i686/VirtualBox-3.2-3.2.8_64453_fedora12-1.i686.rpm
wget http://download.virtualbox.org/virtualbox/rpm/fedora/12/x86_64/VirtualBox-3.2-3.2.8_64453_fedora12-1.x86_64.rpm
  • Download and import the GPG key:
wget http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc
rpm --import oracle_vbox.asc
  • Add dependencies:
yum install dkms gcc
  • Install VirtualBox:
install --localinstall VirtualBox-3.2
  • Add yourself to the “vboxusers” group:
usermod -G vboxusers -a <yourusername>
  • Run and enjoy!
VirtualBox

Portable VirtualBox On Windows

Web Front End (phpVirtualBox)

  • The application has been packaged for Amahi and is currently in ALPHA testing.
  • If you want to install it manually, follow the steps below:
  • From the Amahi Applications tab, create a web app called phpvb.
  • Become root user:
su -
  • Download and extract the source file:
cd /var/hda/web-apps/phpvb
wget http://code.google.com/p/phpvirtualbox/downloads/detail?name=phpvirtualbox-0.5.zip&can=2&q=
unzip phpvirtualbox-0.5.zip
mv phpvirtualbox-0.5/* html
chown -R apache:users html
  • Edit /var/hda/web-apps/phpvb/html/config.php and change the values below to your user name and password (must be the same user name as added to the vboxusers group durig VirtualBox install):
var $username = 'ian';
var $password = 'pass';
  • (OPTIONAL) To enable automatic start on reboot, exit root user and edit crontab for your user (whoami will display the current user name):
whoami
crontab -e

and add the following line. (to save, enter : followed by wq):

@reboot /usr/bin/vboxwebsrv -b --logfile /dev/null >/dev/null
  • Start the service:
/usr/bin/vboxwebsrv -b --logfile /dev/null >/dev/null
  • That's it. You should now be able to access VirtualBox from your browser at http://phpvb. It will restart automatically on reboot as well.
  • Refer to phpVirtualBox Installation for additional guidance.


NOTE: See Amahi on VirtualBox for detailed guidance on installing Amahi a virtual machine (VM).