Difference between revisions of "VirtualBox"

518 bytes removed ,  4 years ago
Update install virtualbox instructions with one-liner
imported>Fhdk
imported>Dalto
(Update install virtualbox instructions with one-liner)
Line 52: Line 52:




{{tip|You will need to know what kernel version is being run when installing VirtualBox. To acquire this information, enter the command '''uname -r''' into the terminal.}}
To install VirtualBox, you need to install the packages {{ic|virtualbox}} and {{ic|linux*-virtualbox-host-modules}}. The latter must match the version of the kernel you are running.




To install VirtualBox, enter the following command in the terminal:
To install VirtualBox and automatically install the kernel modules for your installed kernels enter the following command in the terminal:


  sudo pacman -S virtualbox
  pamac install virtualbox $(pacman -Qsq "^linux" | grep "^linux[0-9]*$" | awk '{print $1"-virtualbox-host-modules"}' ORS=' ')
 
 
It will then be necessary to select the appropriate '''VirtualBox Host Module''' to install, depending on the kernel version currently being run. Rather like installing a driver, doing so will ensure that VirtualBox is able to run properly. For example, where running kernel 3.7, the appropriate number would be entered to install the following module:
 
uname -r
 
You will have something like : ''3.7.4-1-MANJARO''. It means that the kernel is ''linux37''. Then install it with
 
sudo pacman -S linux''37''-virtualbox-host-modules




Line 72: Line 63:


  sudo vboxreload
  sudo vboxreload
{{tip|VirtualBox messages<br/><code>/sbin/vboxconfig</code> &rarr; <code>sudo vboxreload</code><br/><code>/sbin/rcvbox</code> &rarr; <code>sudo vboxreload</code> }}


== Where Using Multiple Kernels ==
== Where Using Multiple Kernels ==
Anonymous user