Difference between revisions of "VirtualBox"

From Amahi Wiki
Jump to: navigation, search
 
(138 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:apps]]
+
{{NeedsUpdate
 +
 
 +
[[Category:Virtualization]]
 +
===[http://www.virtualbox.org VirtualBox] for Fedora 12 Host===
 
__NOTOC__
 
__NOTOC__
WEB SITE:  [http://www.virtualbox.org http://www.virtualbox.org]
+
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.12 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.
 
 
===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…
+
There are two options for install: <br />
 +
# '''VirtualBox repo:'''  If you are selective or do not install Fedora updates, this is not the option for you. It will result in installation of ALL Fedora updates that your HDA requires.<br />
 +
# '''VirtualBox RPM:'''  This will only install the RPM and any required dependencies or dependency updates your HDA requires. It is much faster and will not force ALL Fedora updates like Option 1.
  
=== Install Option 1 ===
+
=== Install Option 1 (VirtualBox Repo) ===
* Become privileged (root user):
+
* Become privileged ('''root''' user):
 
  su -
 
  su -
* Get the VirtualBox repo installed:
+
* Install the VirtualBox repo:
 
  <nowiki>wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo && cp virtualbox.repo /etc/yum.repos.d/</nowiki>
 
  <nowiki>wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo && cp virtualbox.repo /etc/yum.repos.d/</nowiki>
* Need to invoke the new repo:
+
* Enable the new repo:
 
  yum clean all
 
  yum clean all
  yum update
+
yum update
* Install VirtualBox (along with a few other needed packages)! If you’re having issues here, try installing “kernel-PAE-devel” first.
+
* Add dependencies:
  yum install -y VirtualBox-3.2 dkms gcc
+
  yum install dkms gcc
 +
* Install VirtualBox. If you’re having issues here, see [[VirtualBox#Troubleshooting|Troubleshooting]] section below:
 +
  yum install -y VirtualBox-3.2
 
* Add yourself to the “vboxusers” group:
 
* Add yourself to the “vboxusers” group:
 
  usermod -G vboxusers -a <yourusername>
 
  usermod -G vboxusers -a <yourusername>
* Run and enjoy!
+
* ''(OPTIONAL)''  This will bring up the VirtualBox GUI on the HDA Desktop. Run and enjoy!
 
  VirtualBox
 
  VirtualBox
  
Line 26: Line 30:
 
'''NOTE:''' See [http://www.derekhildreth.com/blog/how-to-install-virtualbox-3-on-fedora-12-tutorial/ how-to-install-virtualbox-3-on-fedora-12-tutorial] for more info.
 
'''NOTE:''' See [http://www.derekhildreth.com/blog/how-to-install-virtualbox-3-on-fedora-12-tutorial/ how-to-install-virtualbox-3-on-fedora-12-tutorial] for more info.
  
=== install Option 2 ===
+
=== Install Option 2 (VirtualBox RPM) ===
* Download the applicable RPM for your system from the list below:
+
* Become privileged ('''root''' user):
wget <nowiki>http://download.virtualbox.org/virtualbox/rpm/fedora/12/i386/VirtualBox-3.2-3.2.8_64453_fedora12-1.i686.rpm</nowiki>
+
su -
  wget <nowiki>http://download.virtualbox.org/virtualbox/rpm/fedora/12/i486/VirtualBox-3.2-3.2.8_64453_fedora12-1.i686.rpm</nowiki>
+
* Download the applicable RPM for your system (32- or 64-bit):
wget <nowiki>http://download.virtualbox.org/virtualbox/rpm/fedora/12/i586/VirtualBox-3.2-3.2.8_64453_fedora12-1.i686.rpm</nowiki>
+
  wget <nowiki>http://download.virtualbox.org/virtualbox/3.2.12/VirtualBox-3.2-3.2.12_68302_fedora12-1.i686.rpm</nowiki>
  wget <nowiki>http://download.virtualbox.org/virtualbox/rpm/fedora/12/i686/VirtualBox-3.2-3.2.8_64453_fedora12-1.i686.rpm</nowiki>
+
  wget <nowiki>http://download.virtualbox.org/virtualbox/3.2.12/VirtualBox-3.2-3.2.12_68302_fedora12-1.x86_64.rpm</nowiki>
wget <nowiki>http://download.virtualbox.org/virtualbox/rpm/fedora/12/x86_64/VirtualBox-3.2-3.2.8_64453_fedora12-1.x86_64.rpm</nowiki>
 
  
 
* Download and import the GPG key:
 
* Download and import the GPG key:
 
  wget <nowiki>http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc</nowiki>
 
  wget <nowiki>http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc</nowiki>
rpm --import oracle_vbox.asc
+
rpm --import oracle_vbox.asc
 
* Add dependencies:
 
* Add dependencies:
 
  yum install dkms gcc
 
  yum install dkms gcc
* Install VirtualBox:
+
* Install VirtualBox.  If you’re having issues here, see [[VirtualBox#Troubleshooting|Troubleshooting]] section below:
  install --localinstall VirtualBox-3.2
+
  yum localinstall VirtualBox-3.2*
 
* Add yourself to the “vboxusers” group:
 
* Add yourself to the “vboxusers” group:
 
  usermod -G vboxusers -a <yourusername>
 
  usermod -G vboxusers -a <yourusername>
* Run and enjoy!
+
* ''(OPTIONAL)'' This will bring up the VirtualBox GUI on the HDA Desktop.  Run and enjoy!
 
  VirtualBox
 
  VirtualBox
  
=== Portable VirtualBox On Windows ===
+
=== Update VirtualBox to Latest Version ===
 +
To update VirtualBox to the latest version, you must stop the service:
 +
* Become privileged ('''root''' user):
 +
su -
 +
service vboxwebsrv stop
 +
* Depending on the Install Option you used originally will determine how you update. 
 +
'''Option 1 (RPM):'''  Download RPM from [http://www.virtualbox.org VirtualBox.org] 
 +
yum localinstall RPM-Name
 +
'''Option 2 (Repo):''' 
 +
yum update
 +
* Restart service:
 +
service vboxwebsrv start
 +
 
 +
=== [http://www.amahi.org/apps/phpvirtualbox phpVirtualBox] (Web-Based Access) ===
 +
* It has been packaged for Amahi and is currently in ''ALPHA'' testing.  You will find the manual install steps [[PhpVirtualBox|here]].
 +
 
 +
=== Portable VirtualBox for Windows XP/Vista/7 Host ===
 
* Download latest version from [http://vbox.me here.]
 
* Download latest version from [http://vbox.me here.]
 
* You can install this on a hard drive or USB Flash Drive.
 
* You can install this on a hard drive or USB Flash Drive.
 
* [http://coffeeonthekeyboard.com/how-to-install-virtualbox-guest-additions-in-fedora-12-332/ How to Install VirtualBox Guest Additions in Fedora 12] has additional info that might be helpful.
 
* [http://coffeeonthekeyboard.com/how-to-install-virtualbox-guest-additions-in-fedora-12-332/ How to Install VirtualBox Guest Additions in Fedora 12] has additional info that might be helpful.
  
=== [http://www.amahi.org/apps/phpvirtualbox phpVirtualBox] ===
+
=== Troubleshooting ===
* The application has been packaged for Amahi and is currently in testing.
+
* Applies to 32-bit machines ONLY.
 
+
* Having issues with install, check to see if you have the PAE kernel:
==== Manual Install ====
+
  uname -r
* From the Amahi Applications tab, create a web app called '''phpvb'''
+
* If it returns something like ''2.6.31.5-127.fc12.i686.PAE'', do the following:
* Become root user:
+
  yum install -y kernel-PAE-devel-2.6.31.5-127.fc12.i686
  su -
+
/etc/init.d/vboxdrv setup
* Download and extract the source file:
+
  VirtualBox
cd /var/hda/web-apps/phpvb
+
* VirtualBox should now work.
wget <nowiki>http://code.google.com/p/phpvirtualbox/downloads/detail?name=phpvirtualbox-0.5.zip&can=2&q=</nowiki>
 
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 (needs to be the same user name as added to the ''vboxusers'' group above):
 
  var $username = 'ian';
 
var $password = 'pass';
 
* Exit '''root''' user and edit the crontab for your user (''whoami'' should display your user name):
 
whoami
 
crontab -e
 
* Add the following line to your crontab and 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 not be able to access VirtualBox from your browser at <nowiki>http://phpvb</nowiki>
 
  
  
'''NOTE:'''  See [[Amahi_on_VirtualBox|Amahi on VirtualBox]] for detailed guidance on installing Amahi.
+
'''NOTE:'''  See [[Amahi_on_VirtualBox|Amahi on VirtualBox]] for detailed guidance on installing Amahi on a virtual machine (VM).

Latest revision as of 03:26, 23 June 2020

{{NeedsUpdate

VirtualBox for Fedora 12 Host

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.12 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.

There are two options for install:

  1. VirtualBox repo: If you are selective or do not install Fedora updates, this is not the option for you. It will result in installation of ALL Fedora updates that your HDA requires.
  2. VirtualBox RPM: This will only install the RPM and any required dependencies or dependency updates your HDA requires. It is much faster and will not force ALL Fedora updates like Option 1.

Install Option 1 (VirtualBox Repo)

  • 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

  • Add dependencies:
yum install dkms gcc
  • Install VirtualBox. If you’re having issues here, see Troubleshooting section below:
yum install -y VirtualBox-3.2
  • Add yourself to the “vboxusers” group:
usermod -G vboxusers -a <yourusername>
  • (OPTIONAL) This will bring up the VirtualBox GUI on the HDA Desktop. Run and enjoy!
VirtualBox


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

Install Option 2 (VirtualBox RPM)

  • Become privileged (root user):
su -
  • Download the applicable RPM for your system (32- or 64-bit):
wget http://download.virtualbox.org/virtualbox/3.2.12/VirtualBox-3.2-3.2.12_68302_fedora12-1.i686.rpm
wget http://download.virtualbox.org/virtualbox/3.2.12/VirtualBox-3.2-3.2.12_68302_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. If you’re having issues here, see Troubleshooting section below:
yum localinstall VirtualBox-3.2*
  • Add yourself to the “vboxusers” group:
usermod -G vboxusers -a <yourusername>
  • (OPTIONAL) This will bring up the VirtualBox GUI on the HDA Desktop. Run and enjoy!
VirtualBox

Update VirtualBox to Latest Version

To update VirtualBox to the latest version, you must stop the service:

  • Become privileged (root user):
su -
service vboxwebsrv stop
  • Depending on the Install Option you used originally will determine how you update.

Option 1 (RPM): Download RPM from VirtualBox.org

yum localinstall RPM-Name

Option 2 (Repo):

yum update
  • Restart service:
service vboxwebsrv start

phpVirtualBox (Web-Based Access)

  • It has been packaged for Amahi and is currently in ALPHA testing. You will find the manual install steps here.

Portable VirtualBox for Windows XP/Vista/7 Host

Troubleshooting

  • Applies to 32-bit machines ONLY.
  • Having issues with install, check to see if you have the PAE kernel:
uname -r
  • If it returns something like 2.6.31.5-127.fc12.i686.PAE, do the following:
yum install -y kernel-PAE-devel-2.6.31.5-127.fc12.i686
/etc/init.d/vboxdrv setup
VirtualBox
  • VirtualBox should now work.


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