Moderators, translator
455
edits
(Marked this version for translation) |
m (Applied command templates) |
||
Line 2: | Line 2: | ||
__TOC__ | __TOC__ | ||
<translate> | <translate> | ||
==Overview== <!--T:1--> | ==Overview== | ||
<!--T:1--> | |||
[[file:vbox.png|left]] | [[file:vbox.png|left]] | ||
Developed by Sun Microsystems, now Oracle Corporation, '''[https://www.virtualbox.org/ VirtualBox]''' is a popular application that allows for other operating systems (known as ''Guests'') to be installed and run within an existing operating system (known as the ''Host''). This is undertaken through the process of ''virtualisation'', whereby virtual versions of your computer (also referred to as ''virtual machines'' or ''VMs'') are created within and draw resources directly from the host system. As such, how fast or powerful a virtual machine may be will depend entirely on the resources available - and allocated - for it to use. The benefits of virtualisation include: | Developed by Sun Microsystems, now Oracle Corporation, '''[https://www.virtualbox.org/ VirtualBox]''' is a popular application that allows for other operating systems (known as ''Guests'') to be installed and run within an existing operating system (known as the ''Host''). This is undertaken through the process of ''virtualisation'', whereby virtual versions of your computer (also referred to as ''virtual machines'' or ''VMs'') are created within and draw resources directly from the host system. As such, how fast or powerful a virtual machine may be will depend entirely on the resources available - and allocated - for it to use. The benefits of virtualisation include: | ||
Line 15: | Line 17: | ||
===Install VirtualBox=== <!--T:3--> | ===Install VirtualBox=== <!--T:3--> | ||
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 list what kernels is installed use mhwd (example) | 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 list what kernels is installed use mhwd (example) | ||
{{UserCmdOutput|command=mhwd-kernel -li|result= | |||
<pre> | |||
$ mhwd-kernel -li | $ mhwd-kernel -li | ||
Currently running: 6.6.17-1-MANJARO (linux66) | |||
The following kernels are installed in your system: | |||
* linux66 | |||
</pre>}} | |||
<!--T:4--> | <!--T:4--> | ||
To install VirtualBox and the kernel modules for your installed kernel enter the following command in the terminal: | To install VirtualBox and the kernel modules for your installed kernel enter the following command in the terminal - continuing the above example: | ||
{{UserCmd|command=sudo pacman -Syu virtualbox linux66-virtualbox-host-modules}} | |||
<!--T:5--> | <!--T:5--> | ||
Once the installation has completed, it will then be necessary to add the ''VirtualBox Module'' to your kernel. '''The easy way is to simply reboot your system'''. Otherwise, to start using VirtualBox immediately, enter the following command: | Once the installation has completed, it will then be necessary to add the ''VirtualBox Module'' to your kernel. '''The easy way is to simply reboot your system'''. Otherwise, to start using VirtualBox immediately, enter the following command: | ||
{{UserCmd|command=sudo vbox-reload}} | |||
===Install the Extension Pack(Optional)=== <!--T:6--> | ===Install the Extension Pack(Optional)=== <!--T:6--> | ||
The extension pack is a proprietary set of extensions providing extra functionality to VirtualBox like USB2 and USB3 passthrough. You only need this if you are going to use the functionality provided and it is '''not required''' for VirtualBox to function. | The extension pack is a proprietary set of extensions providing extra functionality to VirtualBox like USB2 and USB3 passthrough. You only need this if you are going to use the functionality provided and it is '''not required''' for VirtualBox to function. | ||
* Oracle Cloud Infrastructure integration | * Oracle Cloud Infrastructure integration | ||
Line 43: | Line 50: | ||
'''Please install the same version extension pack as your installed version of VirtualBox.''' – [https://www.virtualbox.org/wiki/Downloads VirtualBox Download page]}} | '''Please install the same version extension pack as your installed version of VirtualBox.''' – [https://www.virtualbox.org/wiki/Downloads VirtualBox Download page]}} | ||
Check your VirtualBox version (example) | Check your VirtualBox version (example) | ||
{{UserCmdOutput|command=vboxmanage --version|result=<pre>7.0.14r161095</pre>}} | |||
====Install extensionpack using AUR==== <!--T:8--> | ====Install extensionpack using AUR==== <!--T:8--> | ||
Locate the correct AUR PKGBUILD using pamac (or the AUR helper of choice) - example is using '''pamac''' | Locate the correct AUR PKGBUILD using pamac (or the AUR helper of choice) - example is using '''pamac''' | ||
{{Important|AUR PKGBUILDs labelled manjaro is '''not''' maintained by Manjaro!}} | {{Important|AUR PKGBUILDs labelled manjaro is '''not''' maintained by Manjaro!}} | ||
{{UserCmdOutput|command=pamac search --aur virtualbox-ext-oracle|result= | |||
<pre> | |||
virtualbox6-ext-oracle 6.1.x-5 AUR | |||
Oracle VM VirtualBox Extension Pack 6.1.48 (stable) | |||
virtualbox6.1-ext-oracle 6.1.50-1 AUR | |||
Oracle VM VirtualBox Extension Pack (version 6.1) | |||
virtualbox-ext-oracle-dev 7.0.97.161344-1 AUR | |||
Oracle VM VirtualBox Extension Pack for virtualbox dev | |||
version | |||
virtualbox-ext-oracle 7.0.14-1 AUR | |||
Oracle VM VirtualBox Extension Pack | |||
</pre>}} | |||
<!--T:9--> | <!--T:9--> | ||
When you have found the match you can install using the helper - example is using pamac | When you have found the match you can install using the helper - example is using pamac | ||
{{UserCmd|command=pamac build virtualbox-ext-<nowiki><your-decision></nowiki>}} | |||
====Get extensionpack from VirtualBox==== <!--T:10--> | ====Get extensionpack from VirtualBox==== <!--T:10--> | ||
Line 84: | Line 84: | ||
The extension '''.vbox-extpack''' is a registered mime extension so just open the file and VirtualBox will install the extension pack. Provide your password when asked. | The extension '''.vbox-extpack''' is a registered mime extension so just open the file and VirtualBox will install the extension pack. Provide your password when asked. | ||
==Configuring the host== <!--T:11--> | == Configuring the host == <!--T:11--> | ||
=== Adding Your Account to the '''vboxusers''' User Group === | === Adding Your Account to the '''vboxusers''' User Group === | ||
The final step is to now add your personal user account to the {{ic|vboxusers}} group. This is necessary in order to fully access the features provided by VirtualBox. The '''$USER''' variable translates to the currently logged in user and you must logout or restart for the change to take effect. | The final step is to now add your personal user account to the {{ic|vboxusers}} group. This is necessary in order to fully access the features provided by VirtualBox. The '''$USER''' variable translates to the currently logged in user and you must logout or restart for the change to take effect. | ||
{{UserCmd|command=sudo gpasswd -a $USER vboxusers}} | |||
==Manjaro VBox guest== <!--T:12--> | ==Manjaro VBox guest== <!--T:12--> | ||
Line 95: | Line 95: | ||
Before installation of Manjaro ensure the correct display settings for VM. The Manjaro recommendation - to ensure the best experience - is contradicting the recommendations from VirtualBox developers. To have the VM screensize adapting to the window size - you need enable VBoxSVGA but doing so you cannot enable 3D. To use 3D you need to use VMSVGA which will force you to set the VM screen size inside the VM. If you use the VMSVGA adapter - mhwd will keep telling you to switch - you can do it but you will not be able to utilize 3D graphics. | Before installation of Manjaro ensure the correct display settings for VM. The Manjaro recommendation - to ensure the best experience - is contradicting the recommendations from VirtualBox developers. To have the VM screensize adapting to the window size - you need enable VBoxSVGA but doing so you cannot enable 3D. To use 3D you need to use VMSVGA which will force you to set the VM screen size inside the VM. If you use the VMSVGA adapter - mhwd will keep telling you to switch - you can do it but you will not be able to utilize 3D graphics. | ||
===Troubleshooting guest=== <!--T:14--> | ===Troubleshooting Manjaro guest=== <!--T:14--> | ||
If you deem it necessary to ensure the packages are installed please follow this recipe | If you deem it necessary to ensure the packages are installed please follow this recipe | ||
{{UserCmdOutput|command=mhwd-kernel -li|result= | |||
Currently running: | <pre> | ||
Currently running: 6.6.17-1-MANJARO (linux66) | |||
The following kernels are installed in your system: | The following kernels are installed in your system: | ||
* | * linux66 | ||
</pre>}} | |||
{{UserCmd|command=sudo pacman -Syu virtualbox-guest-utils}} | |||
===Guest Configuration=== <!--T:15--> | ===Guest Configuration=== <!--T:15--> | ||
You will need to load the modules if you don't want to reboot: | You will need to load the modules if you don't want to reboot: | ||
{{UserCmd|command=sudo modprobe vboxguest vboxvideo vboxsf}} | |||
<!--T:16--> | <!--T:16--> | ||
The guest utils than need to be started and enabled: | The guest utils than need to be started and enabled: | ||
{{UserCmd|command=sudo systemctl enable --now vboxservice.service}} | |||
<!--T:17--> | <!--T:17--> | ||
Add you VM user to the vboxsf group (this requires you to logout to apply the new group) | Add you VM user to the vboxsf group (this requires you to logout to apply the new group) | ||
{{UserCmd|command=sudo usermod -aG vboxsf <nowiki>${USER}</nowiki>}} | |||
<!--T:18--> | <!--T:18--> | ||
Create media folder in root directory if it does not already exist | Create media folder in root directory if it does not already exist | ||
{{UserCmd|command=sudo mkdir /media}} | |||
<!--T:19--> | <!--T:19--> | ||
Assign the correct permissions to the media folder to be able to access shared folders | Assign the correct permissions to the media folder to be able to access shared folders | ||
{{UserCmd|command=sudo chmod 755 /media}} | |||
==Advise, Tips, and Tricks== <!--T:20--> | ==Advise, Tips, and Tricks== <!--T:20--> |