8,560
edits
MatrixUser (talk | contribs) (Replaced content with "===Instale o Pacote de Extensão(Opcional)===") |
(Updating to match new version of source page) |
||
Line 18: | Line 18: | ||
{{UserCmd|command=mhwd-kernel -l}} | {{UserCmd|command=mhwd-kernel -l}} | ||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
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= | {{UserCmdOutput|command=mhwd-kernel -li|result= | ||
Line 25: | Line 26: | ||
* linux66 | * linux66 | ||
</pre>}} | </pre>}} | ||
</div> | |||
Para instalar o VirtualBox e os módulos do kernel para o seu kernel instalado, digite o seguinte comando no terminal - continuando o exemplo acima: | Para instalar o VirtualBox e os módulos do kernel para o seu kernel instalado, digite o seguinte comando no terminal - continuando o exemplo acima: | ||
Line 34: | Line 36: | ||
===Instale o Pacote de Extensão(Opcional)=== | ===Instale o Pacote de Extensão(Opcional)=== | ||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
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 42: | Line 45: | ||
* Disk Encryption | * Disk Encryption | ||
* NVMe | * NVMe | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
{{Important|As noted by VirtualBox - it is important you are using the extension pack matching your installed version of VirtualBox.<br/> | {{Important|As noted by VirtualBox - it is important you are using the extension pack matching your installed version of VirtualBox.<br/> | ||
'''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>}} | {{UserCmdOutput|command=vboxmanage --version|result=<pre>7.0.14r161095</pre>}} | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
====Install extensionpack using AUR==== | ====Install extensionpack using AUR==== | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
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!}} | ||
Line 64: | Line 73: | ||
Oracle VM VirtualBox Extension Pack | Oracle VM VirtualBox Extension Pack | ||
</pre>}} | </pre>}} | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
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>}} | {{UserCmd|command=pamac build virtualbox-ext-<nowiki><your-decision></nowiki>}} | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
====Get extensionpack from VirtualBox==== | ====Get extensionpack from VirtualBox==== | ||
Same rule apply - match your VirtualBox version - usually the latest version applies. | Same rule apply - match your VirtualBox version - usually the latest version applies. | ||
Line 78: | Line 91: | ||
</blockquote> | </blockquote> | ||
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. | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
== Configuring the host == | == Configuring the host == | ||
=== 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}} | {{UserCmd|command=sudo gpasswd -a $USER vboxusers}} | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
==Manjaro VBox guest== | ==Manjaro VBox guest== | ||
For those intending to use Manjaro under VirtualBox, you can install Manjaro as usual. Please observe below point of setting the correct display type. | For those intending to use Manjaro under VirtualBox, you can install Manjaro as usual. Please observe below point of setting the correct display type. | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
===Selecting a Display Controller=== | ===Selecting a Display Controller=== | ||
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. | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
===Troubleshooting Manjaro guest=== | ===Troubleshooting Manjaro guest=== | ||
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 | ||
Line 99: | Line 120: | ||
</pre>}} | </pre>}} | ||
{{UserCmd|command=sudo pacman -Syu virtualbox-guest-utils}} | {{UserCmd|command=sudo pacman -Syu virtualbox-guest-utils}} | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
===Guest Configuration=== | ===Guest Configuration=== | ||
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}} | {{UserCmd|command=sudo modprobe vboxguest vboxvideo vboxsf}} | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
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}} | {{UserCmd|command=sudo systemctl enable --now vboxservice.service}} | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
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>}} | {{UserCmd|command=sudo usermod -aG vboxsf <nowiki>${USER}</nowiki>}} | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
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}} | {{UserCmd|command=sudo mkdir /media}} | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
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}} | {{UserCmd|command=sudo chmod 755 /media}} | ||
</div> | |||
==Avisos, Dicas e Truques== | ==Avisos, Dicas e Truques== | ||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
Advice on using Virtualbox effectively, as well as some tips and tricks learned along the way, have been provided for the benefit of new users. | Advice on using Virtualbox effectively, as well as some tips and tricks learned along the way, have been provided for the benefit of new users. | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
===Guest Installation=== | ===Guest Installation=== | ||
* Virtualbox can run installation files (ISOs) directly as virtual discs, so there is no need to burn them to an installation medium such as a disc or USB data stick. | * Virtualbox can run installation files (ISOs) directly as virtual discs, so there is no need to burn them to an installation medium such as a disc or USB data stick. | ||
* The process to install any Guest operating system, [[Installation_Guides|including Manjaro]], is exactly the same as if actually installing for real on your computer. | * The process to install any Guest operating system, [[Installation_Guides|including Manjaro]], is exactly the same as if actually installing for real on your computer. | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
===Guest Additions=== | ===Guest Additions=== | ||
Guest Additions are special software packages designed to improve the performance and usability of guest operating systems. | Guest Additions are special software packages designed to improve the performance and usability of guest operating systems. | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
They are installed within the Guest operating system itself, and most notably result in enhancing the display resolution, as well as enabling much better control over the mouse. As such, two tell-tale signs that Guest Additions have not been installed in a Guest are that the display will not scale to the size of the display window (i.e. it will be necessary to scroll around to see the whole screen), and the mouse may be quite hard to control. | They are installed within the Guest operating system itself, and most notably result in enhancing the display resolution, as well as enabling much better control over the mouse. As such, two tell-tale signs that Guest Additions have not been installed in a Guest are that the display will not scale to the size of the display window (i.e. it will be necessary to scroll around to see the whole screen), and the mouse may be quite hard to control. | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
Instructions for installing the guest additions in Manjaro are provided above. For other operating systems please review the VirtualBox instructions [[#See Also|linked below]] | Instructions for installing the guest additions in Manjaro are provided above. For other operating systems please review the VirtualBox instructions [[#See Also|linked below]] | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
===Guest Display=== | ===Guest Display=== | ||
If you are using other guests e.g. Ubuntu, Linux Mint and others be sure to use the default VMSVGA display driver. | If you are using other guests e.g. Ubuntu, Linux Mint and others be sure to use the default VMSVGA display driver. | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
It will be necessary to activate the '''Enable 3D acceleration''' box in order to allow for some desktop effects (such as transparency) to be shown. This can be undertaken by going into the settings menu, and then selecting the '''Display''' section. | It will be necessary to activate the '''Enable 3D acceleration''' box in order to allow for some desktop effects (such as transparency) to be shown. This can be undertaken by going into the settings menu, and then selecting the '''Display''' section. | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
If you are getting screen distortion or transparent dialogs using Windows guest - shutdown the VM and change the graphics settings of the VM. Remove the checkbox for '''Enable 3D acceleration'''. | If you are getting screen distortion or transparent dialogs using Windows guest - shutdown the VM and change the graphics settings of the VM. Remove the checkbox for '''Enable 3D acceleration'''. | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
===Guest Internet Connection=== | ===Guest Internet Connection=== | ||
Some users have encountered problems when attempting to connect their virtual machine to the internet using the default VirtualBox settings. Where this is the case, try the following solution | Some users have encountered problems when attempting to connect their virtual machine to the internet using the default VirtualBox settings. Where this is the case, try the following solution | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
* Click the '''Settings Button''' and then select the '''Network''' tab | * Click the '''Settings Button''' and then select the '''Network''' tab | ||
* Next to the '''Attached to''' heading is a button that states '''NAT'''. Click it to reveal a drop down menu and select '''Bridged Adapter''' instead. | * Next to the '''Attached to''' heading is a button that states '''NAT'''. Click it to reveal a drop down menu and select '''Bridged Adapter''' instead. | ||
* Next to the '''Name''' heading is a button whereby you may select how you are currently connected to the internet (e.g. ''Wlan'' means Wireless, and ''Eth0'' means Ethernet). Select the appropriate connection type you are currently using. | * Next to the '''Name''' heading is a button whereby you may select how you are currently connected to the internet (e.g. ''Wlan'' means Wireless, and ''Eth0'' means Ethernet). Select the appropriate connection type you are currently using. | ||
* Click the '''OK''' button to confirm. | * Click the '''OK''' button to confirm. | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
==General Troubleshooting== | ==General Troubleshooting== | ||
* A VirtualBox installation will not automatically detect when USB device has been connected. As such, it is therefore necessary to click the USB icon located at the bottom of the VirtualBox window in order to select and activate it. | * A VirtualBox installation will not automatically detect when USB device has been connected. As such, it is therefore necessary to click the USB icon located at the bottom of the VirtualBox window in order to select and activate it. | ||
* It is possible to enable the (very useful) ability to copy and paste text between the Guest and Host systems. This is undertaken by clicking '''Settings''' button and then going to the '''General''' Section. | * It is possible to enable the (very useful) ability to copy and paste text between the Guest and Host systems. This is undertaken by clicking '''Settings''' button and then going to the '''General''' Section. | ||
* Don't be afraid to take risks, to experiment, and to have fun with Guest operating systems. The worst that can happen is that they will have to be re-installed! | * Don't be afraid to take risks, to experiment, and to have fun with Guest operating systems. The worst that can happen is that they will have to be re-installed! | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
==See Also== | ==See Also== | ||
* [https://https://forum.manjaro.org/t/howto-virtualbox-installation-usb-shared-folder/1178 VirtualBox Installation, USB and Shared Folders Forum Wiki HowTo] | * [https://https://forum.manjaro.org/t/howto-virtualbox-installation-usb-shared-folder/1178 VirtualBox Installation, USB and Shared Folders Forum Wiki HowTo] | ||
* The official [http://www.virtualbox.org/manual/ VirtualBox Manual] | * The official [http://www.virtualbox.org/manual/ VirtualBox Manual] | ||
</div> | |||
[[Category:Contents Page{{#translation:}}]] | [[Category:Contents Page{{#translation:}}]] | ||
[[Category:Virtualisation{{#translation:}}]] | [[Category:Virtualisation{{#translation:}}]] |