- VirtualBox
- Содержание
- Enabling Virtualisation
- Install VirtualBox
- Install the Extension Pack(Optional)
- Install extensionpack using AUR
- Get extensionpack from VirtualBox
- Adding Your Account to the vboxusers User Group
- Selecting a Display Controller
- Troubleshooting guest
- Guest Configuration
- Guest Installation
- Guest Additions
- Guest Display
- Guest Internet Connection
- VirtualBox
- Содержание
- Enabling Virtualisation
- Install VirtualBox
- Install the Extension Pack(Optional)
- Install extensionpack using AUR
- Get extensionpack from VirtualBox
- Adding Your Account to the vboxusers User Group
- Selecting a Display Controller
- Troubleshooting guest
- Guest Configuration
- Guest Installation
- Guest Additions
- Guest Display
- Guest Internet Connection
- Устанавливаем VirtualBox в Manjaro
- Устанавливаем VirtualBox
- Устанавливаем расширения
- Заключение
- Вам также может понравиться
- Возвращаем поисковик от Google в Linux Mint
- Задаем статический IP адрес в Ubuntu Server 20.04
- Установка дистрибутива для тестов на безопасность – Kali Linux
- 2 комментария к « Устанавливаем VirtualBox в Manjaro »
VirtualBox
Содержание
Developed by Sun Microsystems, now Oracle Corporation, 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:
- The fast and easy installation of other operating systems without affecting your existing system (e.g. no need for dual booting and/or preparation in the form of hard disk partitioning or re-sizing)
- Completely safe learning and experimentation with operating systems, as nothing that occurs within a Guest will affect the Host (e.g. the Host operating system can also be installed as a Guest in a virtual machine as a risk-free means of trying out new things), and
- An almost unlimited capacity to install as many additional operating systems as desired. provided space is available on your hard drive to store them!
Enabling Virtualisation
Before installing VirtualBox, it is important to first ensure that virtualization has been enabled in your BIOS. The exact instructions for doing this vary based on your hardware. Please review the manual provided by your computer or motherboard manufacturer for specific instructions.
Install VirtualBox
To install VirtualBox, you need to install the packages virtualbox and 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 and the kernel modules for your installed kernel enter the following command in the terminal:
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:
Install the Extension Pack(Optional)
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
- USB 2.0 and USB 3.0 Host Controller
- Host Webcam
- VirtualBox RDP
- PXE ROM
- Disk Encryption
- NVMe
Check your VirtualBox version (example)
Install extensionpack using AUR
Locate the correct AUR PKGBUILD using pamac (or the AUR helper of choice) — example is using pamac
When you have found the match you can install using the helper — example is using pamac
Get extensionpack from VirtualBox
Same rule apply — match your VirtualBox version — usually the latest version applies.
If the latest version do not match yours — you can find earlier versions using this page
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.
Adding Your Account to the vboxusers User Group
The final step is to now add your personal user account to the 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.
For those intending to use Manjaro under VirtualBox, you can install Manjaro as usual. Please observe below point of setting the correct display type.
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.
Troubleshooting guest
If you deem it necessary to ensure the packages are installed please follow this recipe
Guest Configuration
You will need to load the modules if you don’t want to reboot:
The guest utils than need to be started and enabled:
Add you VM user to the vboxsf group (this requires you to logout to apply the new group)
Create media folder in root directory if it does not already exist
Assign the correct permissions to the media folder to be able to access shared folders
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.
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.
- The process to install any Guest operating system, including Manjaro, is exactly the same as if actually installing for real on your computer.
Guest Additions
Guest Additions are special software packages designed to improve the performance and usability of guest operating systems.
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.
Instructions for installing the guest additions in Manjaro are provided above. For other operating systems please review the VirtualBox instructions linked below
Guest Display
If you are using other guests e.g. Ubuntu, Linux Mint and others be sure to use the default VMSVGA display driver.
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.
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.
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
Источник
VirtualBox
Содержание
Developed by Sun Microsystems, now Oracle Corporation, 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:
- The fast and easy installation of other operating systems without affecting your existing system (e.g. no need for dual booting and/or preparation in the form of hard disk partitioning or re-sizing)
- Completely safe learning and experimentation with operating systems, as nothing that occurs within a Guest will affect the Host (e.g. the Host operating system can also be installed as a Guest in a virtual machine as a risk-free means of trying out new things), and
- An almost unlimited capacity to install as many additional operating systems as desired. provided space is available on your hard drive to store them!
Enabling Virtualisation
Before installing VirtualBox, it is important to first ensure that virtualization has been enabled in your BIOS. The exact instructions for doing this vary based on your hardware. Please review the manual provided by your computer or motherboard manufacturer for specific instructions.
Install VirtualBox
To install VirtualBox, you need to install the packages virtualbox and 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 and the kernel modules for your installed kernel enter the following command in the terminal:
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:
Install the Extension Pack(Optional)
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
- USB 2.0 and USB 3.0 Host Controller
- Host Webcam
- VirtualBox RDP
- PXE ROM
- Disk Encryption
- NVMe
Check your VirtualBox version (example)
Install extensionpack using AUR
Locate the correct AUR PKGBUILD using pamac (or the AUR helper of choice) — example is using pamac
When you have found the match you can install using the helper — example is using pamac
Get extensionpack from VirtualBox
Same rule apply — match your VirtualBox version — usually the latest version applies.
If the latest version do not match yours — you can find earlier versions using this page
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.
Adding Your Account to the vboxusers User Group
The final step is to now add your personal user account to the 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.
For those intending to use Manjaro under VirtualBox, you can install Manjaro as usual. Please observe below point of setting the correct display type.
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.
Troubleshooting guest
If you deem it necessary to ensure the packages are installed please follow this recipe
Guest Configuration
You will need to load the modules if you don’t want to reboot:
The guest utils than need to be started and enabled:
Add you VM user to the vboxsf group (this requires you to logout to apply the new group)
Create media folder in root directory if it does not already exist
Assign the correct permissions to the media folder to be able to access shared folders
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.
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.
- The process to install any Guest operating system, including Manjaro, is exactly the same as if actually installing for real on your computer.
Guest Additions
Guest Additions are special software packages designed to improve the performance and usability of guest operating systems.
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.
Instructions for installing the guest additions in Manjaro are provided above. For other operating systems please review the VirtualBox instructions linked below
Guest Display
If you are using other guests e.g. Ubuntu, Linux Mint and others be sure to use the default VMSVGA display driver.
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.
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.
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
Источник
Устанавливаем VirtualBox в Manjaro
Про установку Virtual Box на сайте уже имеются статьи, например, установка VirtualBox в Ubuntu, а так же в Debian 10. На сей же раз мы установим VirtualBox на Manjaro. Собственно, затягивать с описанием не стану, лишь поясню. Virtual Box позволяет вам создавать виртуальные машины, на которых например, можно производить какие то эксперименты. Установка VirtualBox в Manjaro немного отличается от установки в той же Ubuntu, и в этой статье мы разберем как установить VirtualBox в Manjaro. И так, давайте перейдем от слов к делу.
Устанавливаем VirtualBox
Все действия я буду производить в терминале, что бы сделать данный гайд более универсальным для читателей. И так, для установки VirtualBox необходимо ввести команду:
Далее необходимо выбрать версию вашего ядра операционной системы. В том случае, если вы не знаете какое ядро у вас сейчас установлено, введите команду:
Как вы можете увидеть, у меня ядро версии 5.4.44. В вашем же случае версия ядро будет другой. После того как выяснили версию ядра, указываем ее введя номер, под которым будет ваша версия. В моем случае это номер “5) linux54”, что собственно и будет соответствовать версии ядра моей системы:
После чего подтверждаем установку и дожидаемся завершения установки VirtualBox.
Устанавливаем расширения
После установки давайте установим расширения Extension Pack. Так же возможно, вам потребуется установить сам пакет “yay”, для этого все в том же терминале вводим команды:
Дальше необходимо указать какую версию Extension Pack установить, после чего указываем “I” и дожидаемся установки:
Далее вводим следующую последовательность команд:
Поясню немного что это за команды, перво командой мы добавляем своего пользователя в группу vboxusers. Второй командой мы устанавливаем модули, а третей командой добавляем модуль VirtualBox к вашему ядру. Замечу, что выделенный пункт во второй команде означает версию вашего ядра, в моем же случае, насколько вы помните, у меня ядро версии “5.4”. В случае же третий команды, возможно будет ошибка, для ее исправления можно просто перезагрузить ваш компьютер, и тогда необходимость выполнения третий команды отпадает:
Заключение
После всех манипуляций, вы можете начинать пользоваться VirtualBox на операционной системе Manjaro. Так же, можно все пакеты описанные в данной статье установить через менеджер программ. Тут как кому удобней, правда, вам все же придется добавлять своего пользователя в группу “vboxusers” через терминал.
А на этом сегодня все. Надеюсь данная статья будет вам полезна.
Журнал Cyber-X
Вам также может понравиться
Возвращаем поисковик от Google в Linux Mint
Задаем статический IP адрес в Ubuntu Server 20.04
Установка дистрибутива для тестов на безопасность – Kali Linux
2 комментария к « Устанавливаем VirtualBox в Manjaro »
Proceed with install? [Y/n] y
:: (1/1) Parsing SRCINFO: virtualbox-ext-oracle
==> Сборка пакета virtualbox-ext-oracle 6.1.18-1 (Чт 25 фев 2021 21:30:34)
==> Получение исходных файлов…
-> Загрузка Oracle_VM_VirtualBox_Extension_Pack-6.1.18.vbox-extpack…
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 10.6M 100 10.6M 0 0 1177k 0 0:00:09 0:00:09 –:–:– 1204k
==> Проверка файлов source с использованием sha256sums…
Oracle_VM_VirtualBox_Extension_Pack-6.1.18.vbox-extpack … Готово
==> Сборка пакета virtualbox-ext-oracle 6.1.18-1 (Чт 25 фев 2021 21:30:45)
==> Проверка зависимостей для запуска…
==> Проверка зависимостей для сборки…
==> Получение исходных файлов…
-> Найден Oracle_VM_VirtualBox_Extension_Pack-6.1.18.vbox-extpack
==> Проверка файлов source с использованием sha256sums…
Oracle_VM_VirtualBox_Extension_Pack-6.1.18.vbox-extpack … Готово
==> Удаление директории ‘$srcdir/’…
==> Распаковка исходных файлов…
==> Запускается prepare()…
==> Исходные файлы готовы.
==> ОШИБКА: Cannot find the fakeroot binary.
error making: virtualbox-ext-oracle
Источник