HOWTO:VirtualBox

From PardusWiki
(Difference between revisions)
Jump to: navigation, search
(Adding user to vboxusers.)
(VirtualBox Extension Pack for Pardus 2011)
 
(47 intermediate revisions by 4 users not shown)
Line 1: Line 1:
== Downloading the VirtualBox installation package. ==
+
= Latest release of VirtualBox=
:# In your favourite browser (Firefox,Konqueror etc) goto: http://www.virtualbox.org/wiki/Downloads
+
= The easy way for Pardus 2011=
:# Click Binaries(all platforms) link then choose 'Linux(i386)' from the Platform dropdown menu.
+
== Installing VirtualBox ==
:# Check 'I agree to the VirtualBox Personal Use and Evaluation License (PUEL)' and 'Continue'.
+
Install VirtualBox from the official Pardus repo, which is available in Package Manager.
:# In 'Download Information and Files' select 'Sun xVM VirtualBox 1.6' and 'Download Selected with Sun Download Manager >>'.
+
== VirtualBox Extension Pack for Pardus 2011 ==
:# In 'Security Warning' select 'Continue'.
+
Check the version of the used VirtualBox in KMenu > System > Oracle VM VirtualBox > Help > VirtualBox info...
:# In 'Opening 1218....'  check the mark at 'Open with javaws(default)' and 'OK'.
+
:# In "Warning-Security" select 'Run'.
+
:# In 'Sun(TM) Download Manager 2.0 - License' select 'ACCEPT'
+
:# In 'Sun(TM) Download Manager - Set Options and Proxies' select 'Browse' to change the download directory and 'OK'(2x).
+
:# In 'Sun(TM) Download Manager' select 'VirtualBox-1.6.4-Linux_x86.run' and 'Start'.
+
:# After download close the Sun(TM) Download Manager.
+
  
==  Installing additional package.==
+
Select the appropriate VirtualBox x.y.z Extension Pack >[https://www.virtualbox.org/wiki/Download_Old_Builds_4_0 All Platforms] and select Open with:/usr/bin/xdg-open (default) and follow the instructions.
In Pardus>Package Manager install the following packages: kernel-source, gcc and make
+
  
== Installing VirtualBox ==
+
= The easy way for Pardus 2008/2009=
:# Open Pardus>Programs>System>More Applications>Terminal Program - Super User Mode and cd to where VirtualBox-1.6.4-Linux_x86.run is downloaded (/home/username)
+
=[[Use ONLY the "Installing VirtualBox by a RUN-file" option in Pavi]]=
:# Install Virtualbox with the command: sh VirtualBox-1.6.4-Linux_x86.run
+
With all other options there is a '''BIG''' change that it will destroy your system.
:# To load kernel module after a new start give the command: echo vboxdrv>>/etc/modules.autoload.d/kernel-2.6
+
 
:# Close Terminal Program
+
So don't use the options "Downloading and installing VirtualBox from the internet" and "Upgrade VirtualBox".
 +
 
 +
1. Add repository. (from [http://forum.pardususer.de/index.php?topic=44.msg3525#msg3525 http://www.pardususer.de/])
 +
 
 +
Name:
 +
pardususer.de
 +
Address for Pardus 2009:
 +
http://pakete.pardususer.de/pardus-2009/pisi-index.xml.bz2
 +
 
 +
(in konsole:  {{command | sudo pisi ar pardususer.de http://pakete.pardususer.de/pardus-2009/pisi-index.xml.bz2 -y}} )
 +
 
 +
Address for Pardus 2008:
 +
http://pakete.pardususer.de/pardus-2008/pisi-index.xml.bz2
 +
 
 +
(in konsole:  {{command | sudo pisi ar pardususer.de http://pakete.pardususer.de/pardus-2008/pisi-index.xml.bz2 -y}} )
 +
 
 +
2. Search and install Pavi in Package Manager. After installation Pavi can be found in: System > Pavi (Pardus VirtualBox Installer)
 +
 
 +
3. With Pavi you can install/update VirtualBox in Pardus. After installation of VirtualBox the menu item is in: System > Oracle VM VirtualBox (Virtual Machine)
 +
 
 +
Documentation can be found in /opt/VirtualBox/UserManual.pdf and have a look at http://www.virtualbox.org/wiki/User_FAQ
 +
 
 +
=The not so easy way=
 +
====  Download VirtualBox Package ====
 +
:# Run browser. Navigate to: http://www.virtualbox.org/wiki/Linux_Downloads or http://dlc.sun.com/virtualbox/vboxdownload.html#linux (including previous versions)
 +
:# Download the BIN file: "All Distributions [i386/AMD64]" and save it on your desktop
 +
 
 +
====  Prepare VirtualBox Installation ====
 +
Run Package Manager, make sure "Show New Packages" is clicked on, then search, and click on the checkboxes that read:
 +
:#"kernel-source"
 +
:#"gcc"
 +
:#"make".
 +
 
 +
==== Install VirtualBox ====
 +
:# Run Konsole [Programs>System>Konsole], type "su root" ('to perform high-level functions), give password. Then type "cd Desktop" to navigate to the Desktop where it has been saved, if you have saved it elsewhere type "cd /home/[username]/[foldername] etc."
 +
:# In Konsole, type the following to install VirtualBox: <pre>sh "name of the downloaded file"</pre>When the kernel in Pardus is updated you have to repeat the "sh ...." command.
 +
:# To load the kernel module after a new start give the command:<pre>echo vboxdrv>>/etc/modules.autoload.d/kernel-2.6</pre>
 +
:# If you need "Host Interface" networking give the command:<pre>echo vboxnetflt>>/etc/modules.autoload.d/kernel-2.6</pre>
 +
:# Finally you need to create an extra symbolic link (a bug workaround): <pre>ln -s /lib/libcap.so.2.10 /lib/libcap.so.1</pre>
 +
:# Close Konsole
  
== Adding user to vboxusers. ==
+
==== Add Users To VirtualBox ====
:# In Pardus>Tasma>System>User Manager select the user that is allowed to use VirtualBox  and 'Edit'
+
:# In Pardus>Tasma>System>User Manager select the user that is allowed to use VirtualBox  and select 'Edit'
 
:# In 'Groups' put a mark at 'vboxusers' and 'Apply'
 
:# In 'Groups' put a mark at 'vboxusers' and 'Apply'
 
:# Close User Manager and Tasma.
 
:# Close User Manager and Tasma.
 +
==== Activating USB support. ====
 +
:# Open file /etc/fstab in KWrite with administrator privileges: [Alt + F2] and enter '''kdesu kwrite /etc/fstab''' + [Run].
 +
:# Add the next line at the bottom:<pre>none /proc/bus/usb usbfs devgid=85,devmode=666 0 0  + <enter></pre>
 +
:# Save file and close KWrite.
 +
:# '''Restart''' the computer.
 +
:# In VirtualBox a USB stick can be mounted with Devices > USB Devices > .
  
Restart the pc. (important)
+
= Stable version of VirtualBox=
 +
A stable version of VirtualBox can be installed through Package Manager.
  
The VirtualBox entry is in: Pardus>Programs>System>Sun xVM VirtualBox (Virtual Machine)
+
Warning: this version doesn't give support for USB !

Latest revision as of 14:04, 21 November 2011

Contents

Latest release of VirtualBox

The easy way for Pardus 2011

Installing VirtualBox

Install VirtualBox from the official Pardus repo, which is available in Package Manager.

VirtualBox Extension Pack for Pardus 2011

Check the version of the used VirtualBox in KMenu > System > Oracle VM VirtualBox > Help > VirtualBox info...

Select the appropriate VirtualBox x.y.z Extension Pack >All Platforms and select Open with:/usr/bin/xdg-open (default) and follow the instructions.

The easy way for Pardus 2008/2009

Use ONLY the "Installing VirtualBox by a RUN-file" option in Pavi

With all other options there is a BIG change that it will destroy your system.

So don't use the options "Downloading and installing VirtualBox from the internet" and "Upgrade VirtualBox".

1. Add repository. (from http://www.pardususer.de/)

Name:

pardususer.de

Address for Pardus 2009:

http://pakete.pardususer.de/pardus-2009/pisi-index.xml.bz2

(in konsole: sudo pisi ar pardususer.de http://pakete.pardususer.de/pardus-2009/pisi-index.xml.bz2 -y )

Address for Pardus 2008:

http://pakete.pardususer.de/pardus-2008/pisi-index.xml.bz2

(in konsole: sudo pisi ar pardususer.de http://pakete.pardususer.de/pardus-2008/pisi-index.xml.bz2 -y )

2. Search and install Pavi in Package Manager. After installation Pavi can be found in: System > Pavi (Pardus VirtualBox Installer)

3. With Pavi you can install/update VirtualBox in Pardus. After installation of VirtualBox the menu item is in: System > Oracle VM VirtualBox (Virtual Machine)

Documentation can be found in /opt/VirtualBox/UserManual.pdf and have a look at http://www.virtualbox.org/wiki/User_FAQ

The not so easy way

Download VirtualBox Package

  1. Run browser. Navigate to: http://www.virtualbox.org/wiki/Linux_Downloads or http://dlc.sun.com/virtualbox/vboxdownload.html#linux (including previous versions)
  2. Download the BIN file: "All Distributions [i386/AMD64]" and save it on your desktop

Prepare VirtualBox Installation

Run Package Manager, make sure "Show New Packages" is clicked on, then search, and click on the checkboxes that read:

  1. "kernel-source"
  2. "gcc"
  3. "make".

Install VirtualBox

  1. Run Konsole [Programs>System>Konsole], type "su root" ('to perform high-level functions), give password. Then type "cd Desktop" to navigate to the Desktop where it has been saved, if you have saved it elsewhere type "cd /home/[username]/[foldername] etc."
  2. In Konsole, type the following to install VirtualBox:
    sh "name of the downloaded file"
    When the kernel in Pardus is updated you have to repeat the "sh ...." command.
  3. To load the kernel module after a new start give the command:
    echo vboxdrv>>/etc/modules.autoload.d/kernel-2.6
  4. If you need "Host Interface" networking give the command:
    echo vboxnetflt>>/etc/modules.autoload.d/kernel-2.6
  5. Finally you need to create an extra symbolic link (a bug workaround):
    ln -s /lib/libcap.so.2.10 /lib/libcap.so.1
  6. Close Konsole

Add Users To VirtualBox

  1. In Pardus>Tasma>System>User Manager select the user that is allowed to use VirtualBox and select 'Edit'
  2. In 'Groups' put a mark at 'vboxusers' and 'Apply'
  3. Close User Manager and Tasma.

Activating USB support.

  1. Open file /etc/fstab in KWrite with administrator privileges: [Alt + F2] and enter kdesu kwrite /etc/fstab + [Run].
  2. Add the next line at the bottom:
    none /proc/bus/usb usbfs devgid=85,devmode=666 0 0   + <enter>
  3. Save file and close KWrite.
  4. Restart the computer.
  5. In VirtualBox a USB stick can be mounted with Devices > USB Devices > .

Stable version of VirtualBox

A stable version of VirtualBox can be installed through Package Manager.

Warning: this version doesn't give support for USB !

Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox