Difference between revisions of "VirtualBox"

3,367 bytes removed ,  5 years ago
General updates - stage 1
imported>Dalto
(Update install virtualbox instructions with one-liner)
imported>Dalto
(General updates - stage 1)
Line 63: Line 63:


  sudo vboxreload
  sudo vboxreload
== Where Using Multiple Kernels ==
'''Should a new kernel be installed at a later time''', there will be no need to add the VirtualBox module again to it. This is because the '''[[Manjaro_Kernels|Manjaro Hardware Detection tool for Kernels]]''' (mwhd-kernel) will automatically update new kernels with all existing modules being used during the installation process.
'''However, should multiple kernels already be installed''' - and the intention is to use VirtualBox with them as well - then it will be necessary to add the VirtualBox module to them in addition. In order to add the VirtualBox module to another existing kernel:
1. Select the appropriate kernel at the bootup screen
2. Download the '''VirtualBox Host Utilities''' for that particular kernel, as this provides the necessary ''vboxdrv'' VirtualBox module to add. The syntax of the command to do so is:
sudo pacman -S [kernel version]-virtualbox-host-modules
When listing the kernel version currently being used in the command, it is not necessary to write the entire version number. Any version of Kernel 3.5 can be listed simply as 'linux35', and any version of Kernel 3.6 can be listed as 'linux36', and so on. As an example, the following command will install  the ''VirtualBox Host Utilities'' specifically for kernel version 3.5:
sudo pacman -S linux35-virtualbox-host-modules
3. Once the ''VirtualBox Host Utilities'' have been downloaded, enter the following command to add the VirtualBox module to the kernel:
sudo modprobe vboxdrv




==Install the Extension Pack==
==Install the Extension Pack==


It is not available from the Manjaro repositories.
The virtualbox extension pack is available from [[Arch_User_Repository|Arch User Repositoty(AUR)]]. You can install it with:
pamac install virtualbox-ext-oracle


'''It is available in the Arch User Repositories - AUR.'''[https://aur.archlinux.org/packages/virtualbox-ext-oracle/]


[[file:vxextpackb.png|thumb|left|375px]]
= Adding Your Account to the vbox User Group =
 
If it is obtained directly from Oracle, '''[http://www.oracle.com/technetwork/server-storage/virtualbox/downloads/index.html Virtualbox Downloads Section of Oracle's website]''', be aware that you will have to give personal details to Oracle. Again, the Extension pack provides a number of additional and advanced features not otherwise available. Even if there is no immediate intention to use the features provided, it is still worthwhile installing in order to have a complete installation. Once at the downloads section of Oracle's website, to obtain the VirtualBox Extension Pack:
<br clear="all" />
 
1. Scroll down towards the bottom of the page to find the '''Oracle VM VirtualBox Extension Pack''' section
 
2. Click on the appropriate link for the VirtualBox version installed to download the Extension Pack
 
3. After the Extension Pack has downloaded, start the VirtualBox application
 
4. Once VirtualBox has started, select '''File''' from the top menu, and then '''Preferences'''
 
5. Select the '''Extensions''' tab to view that section, and then click a icon called '''Add Package''' located on the far right
 
7. Locate the downloaded Extension Pack, ensure it is highlighted, and then click the '''Open''' button to begin the installation process
 
8. Confirm that you wish to install the Extension Pack, and then confirm that you agree to the license terms (it will at least be necessary to scroll down to the bottom of the terms to activate the '''I Agree''' button)
 
9. The Extension Pack should install within a few seconds, and a confirmation message will appear.




The final step is to now add your personal user account to the '''vbox User Group'''. This is necessary in order to fully access the features provided by VirtualBox, including the ability to use USB devices in a Guest operating system.
The final step is to now add your personal user account to the '''vbox User Group'''. This is necessary in order to fully access the features provided by VirtualBox, including the ability to use USB devices in a Guest operating system.


= Adding Your Account to the vbox User Group =
The syntax of the command to add your user-name to the vbox user group is:
sudo gpasswd -a [username] vboxusers


The command to add your user-name to the vbox user group is:
sudo gpasswd -a $USER vboxusers


As an example, the command listed below will add the personal user account named 'carl' to the vbox user group:


sudo gpasswd -a <font color="green">'''carl'''</font color> vboxusers
You must logout for the change to take effect.
 
 
Now reboot your system for the change to take effect.




Line 154: Line 105:


For Manjaro the Guest Additions is installed using the command
For Manjaro the Guest Additions is installed using the command
pamac install virtualbox-guest-utils


sudo pacman -Syu virtualbox-guest-utils
More importantly, using the method shown to install Guest Additions in Manjaro (or any Arch-based distribution) will break the system permanently, rendering it unusable.


More importantly, using the method shown to install Guest Additions in Manjaro (or any Arch-based distribution) will break the system permanently, rendering it unusable.


==Guest Installation==
==Guest Installation==
Anonymous user