Как установить манжаро на виртуальную машину
Устанавливаем 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
Вам также может понравиться
Установка Conky-Manager в Debian 10
Discord – устанавка в операционной системе linux
Приложение для просмотра документов – Evince
3 комментария к « Устанавливаем 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
Установите Manjaro Linux на VirtualBox
Давайте протестируем Manjaro Linux на виртуальной машине VirtualBox, чтобы увидеть, насколько верны эти утверждения. Если вы хотите продолжить, вы можете получить копию ISO здесь. Мы используем вариант, в котором используется среда Gnome Desktop, но вы можете выбрать то, что вам больше подходит. Также, если у вас его еще нет, вы можете получить VirtualBox здесь. Он доступен для Windows, Mac и большинства дистрибутивов Linux.
После установки VirtualBox давайте сначала создадим виртуальную машину. Тип виртуальной машины установлен на Linux с 64-битной версией Arch. Для памяти, хотя Манджаро рекомендует 1 ГБ, мы собираемся выделить вдвое больше. Если ваш хост позволяет, вам следует выделить больше памяти для лучшего взаимодействия.
Теперь давайте создадим виртуальный жесткий диск. Опять же, Manjaro рекомендует 30 ГБ дискового пространства, но чем больше, тем лучше.
Нажмите Create , и мы закончили создание виртуальной машины. Мы можем немного настроить использование ЦП перед установкой ОС на эту виртуальную машину. Для этого щелкните правой кнопкой мыши виртуальную машину и перейдите в «Настройки». Перейдите в Настройки → Система → Процессоры.
Установка Manjaro
Загрузка виртуальной машины в первый раз (просто дважды щелкните виртуальную машину), и VirtualBox попросит вас выбрать ISO-образ Manjaro, который вы загрузили ранее. Найдите и выберите его в своей файловой системе, и виртуальная машина загрузится с нее.
В появившемся Boot Menu вы можете настроить свой часовой пояс ( tz), вашу раскладку клавиатуры и поддержку драйверов. Приятно видеть, что Manjaro упорядочивает эти детали в самом меню загрузки, вместо того, чтобы заставлять пользователей проходить через утомительный мастер настройки. Все настройки по умолчанию достаточно хороши, за исключением, возможно, вашего часового пояса.
Как только вы освоите эти параметры, выберите в меню Boot: Manjaro и нажмите .
Мастер «Hello Manjaro» запустится автоматически при загрузке виртуальной машины и будет иметь встроенный установщик, который поможет нам в установке.
Перейдите к «Запустить установщик», выберите язык, местоположение, часовой пояс, раскладку клавиатуры, английский (США) раскладку по умолчанию, если вы не уверены.
Нажмите Далее, и мы можем выбрать наш диск с ОС в меню разделов.
При желании мы можем разбить диск на разделы по своему усмотрению. Поскольку к виртуальной машине подключен только один виртуальный диск, мы выбираем этот диск и выбираем опцию Стереть диск. Это отформатирует диск и автоматически разбивает его на простой макет.
Если вы используете физический жесткий диск в режиме сквозной передачи или если вы устанавливаете ОС на свой физический компьютер, вы должны быть осторожны с выбранным диском и тем, как вы хотите разбить его на разделы. этот диск.
Если у вас двойная загрузка, рекомендуется создать разделы вручную, и вы должны попытаться оставить существующие разделы нетронутыми. Если на вашей рабочей станции задействовано несколько дисков, попробуйте отключить те, на которых есть важные данные, чтобы случайно не отформатировать их. Также рекомендуется создавать резервные копии всех ваших данных перед тем, как что-либо делать с физическим диском.
Далее вам необходимо создать учетную запись пользователя и установить пароль для нее и своей учетной записи администратора (пользователь root).
Нажмите Далее, после этого, и мы сможем просмотреть изменения в последний раз перед форматированием диска и фиксацией изменений.
Щелкните Установить, , чтобы начать процесс. Это может занять несколько минут. После этого вы можете перезагрузить виртуальную машину, и вы попадете прямо в только что установленную среду Manjaro. Войдите, используя свое имя пользователя и пароль.
Если по какой-то причине вы снова оказались в меню установки, это просто означает, что диск ISO не был автоматически удален VirtualBox. Выключите виртуальную машину и перейдите в Настройки → Хранилище виртуальной машины под контроллером IDE. Мы увидим, что ISO прикреплен. Затем в правом столбце вы можете использовать значок компакт-диска, чтобы удалить его.
Теперь вы можете загрузиться в установленную ОС.
Менеджер пакетов Pacman
Вы можете обновить свою систему, выполнив команду:
Где ‘-S’ — для синхронизации системы с официальными репозиториями. И «-y» предназначен для обновления локальной базы данных для пакета, чтобы ускорить его работу с удаленными.. Параметр ‘-u’ предназначен для обновления всей системы.
После того, как система обновится по своему вкусу, вы можете продолжить и установить другие пакеты. Например, если вы хотите установить ‘htop’, вы можете сделать это с помощью:
А затем введите `y` для подтверждения при появлении запроса.
Заключение
Arch Linux не для всех. Если только вы не хотите тратить много времени на настройку каждой мелочи по своему вкусу. Хотя такая деятельность имеет свои достоинства, Manjaro снижает время обучения, помогая людям начать работу в считанные минуты.
How to install Manjaro 18.04 on Oracle VirtualBox 6.0
Manjaro an Arch-based Linux OS using the XFCE desktop environment for its flagship variant, so it is abnormally lightweight for a Linux OS, an excellent characteristic for any VM.
S ome of you may recall our earlier article on Installing VirtualBox on MX Linux. This article is an add-on to that one, but not quite a “Part II.”
By following along with the article, we’ll perform several tasks (hopefully learning a great deal). Among these tasks:
However, before we begin, let me first explain why I chose Manjaro as our host VM.
Why Manjaro?
I chose Manjaro as the OS for our VirtualBox VM for a slue of reasons, but mainly because:
Before we get started creating our new VM, please download the latest Manjaro 18.4.0 XFCE Stable version.
Create a New VM in VirtualBox
Launch VirtualBox. If you don’t have an icon on your desktop, your Panel, or the MX Linux Application Menu under Accessories, open a terminal window and launch the Oracle VM VirtualBox Manager window. Use the command below:
Newly Installed Oracle VM VirtualBox Manager Window
Once we are at the newly installed Oracle VM VirtualBox Manager window, select the New icon (blue starburst) at the top center of the window.
Create a Virtual Machine – Name and Operating System
Enter a name for your new Operating System in the Name box.
To quickly and easily identify my installed virtual machines, I like uniquely identifying the names of my VM. (In this case, mtr-Manjaro – mtr for my initials, and Manjaro for the OS).
Accept the default path for Machine Folder.
Select Linux for Type.
Choose Arch Linux (64-bit) for Version.
While we could choose Expert Mode, there is no need for our purposes.
Click Next.
Create A Virtual Hard Disk
Accept the default option Create a virtual hard disk now. (Please note the “The recommended size of the hard disk is 8.00 GB.” statement.)
Click Create.
Hard Disk File Type
While VDI (VirtualBox Disk Image) is usually the default and the standard Hard Disk file type for VirtualBox VMs, I chose VMDK (Virtual Machine Disk) instead. I hope to use the VMDK option for a later article on VMWare Player.
VMDKs are easiest to use when transferring VMs between Oracle VirtualBox and VMWare Workstation Player.
VHD (Virtual Hard Disk) is the hard disk default file type used by Microsoft.
Different Virtual Machine applications use different default hard disk file types, but the major players offer support for most of the significant hard disk file types.
Storage on Physical Hard Disk
Select the default, Dynamically allocated.
Click Next.
File Location and Size
The default size 8.00GB (remember a few steps earlier on the Create Virtual Machine – hard disk window, the Oracle VM VirtualBox Manager made a note of this).
However, I increased the size of my hard drive to 20.00GB as I have the space available.
Click Create.
Oracle VM VirtualBox Manager with newly created VM
VirtualBox Manager Pre-Installation HouseKeeping
Back at the Oracle VM VirtualBox Manager window, we see our newly created VM. However, we have not yet installed an OS.
Before doing this, let’s first do a bit of housekeeping.
Enable Shared Clipboard and Drag’n’Drop
With your newly created VM highlighted in the column on the left, select the Settings icon from the top of the Oracle VM VirtualBox Manager window (gold machine gear).
Select the Advanced tab and set both the Shared Clipboard and Drag’n’Drop to Bidirectional.
This enables us to share our clipboard and drag-and-drop files between our host machine and our VM effortlessly.
Leave the Snapshot Folder with the default setting.
Configure Networking
Select the Network from the left-hand column, and ensure that Enable Network Adapter is checked.
Change Welcome to the Manjaro Linux 18.0.4 “Illyria” Installer option to Bridged Adapter. This ensures that both the VM and host machine are on the same subnet and networking is fluid without modifications to your router or any other changes.
Leave all other settings at their defaults.
Set Installation Media
Select Storage from the left-hand column.
Change the Empty (CD) icon under Controller: IDE in the Storage Devices box to the manjaro-Xfce-8.0.4-stable-x86_64.iso we downloaded earlier.
Leave all other options as the defaults.
Click OK.
Manjaro 18.0.4 Installation on VirtualBox VM
We are now ready to install our new OS on our new VirtualBox VM.
Newly Created Virtual Machine
From the Oracle VM VirtualBox Manager window, select the Start icon (green arrow from the upper-row).
Welcome to Manjaro
At the Welcome to Manjaro screen, I accept the defaults and choose Boot: Manjaro.x86_64 Xfce.
Please be patient as Manjaro Linux (Live) boots.
Welcome to Manjaro!
After Manjaro (Live) boots, we can ‘play’ with the live distro, or we can choose Launch installer at the Welcome to Manjaro! window.
Let’s choose the latter.
Manjaro Linux 18.0.4 “Illyria” Installer.
At the Welcome to the Manjaro Linux 18.0.4 “Illyria” Installer window, enter your preferred Language.
Click Next.
Select Region and Timezone
Select your desired Region and Zone.
Click Next.
Select your desired keyboard settings
Select your desired keyboard settings.
Click Next.
As this is a VirtualBox VM installation, the Erase disk option will not harm and is our best option.
I prefer Swap (with Hibernate), so that’s my choice. The Swap/No Swap, Hibernate/No Hibernate pros and cons are too intricate to include in this article, but FOSS Linux readers wishing further information should visit the Arch Linux wiki.
Once satisfied with your settings, click Next.
The Users Creation/Screen settings you choose are entirely your choice. However, I prefer as much detail, consistency, and security as possible.
Per my preference, I use my entire name, choose the same name as the VirtualBox VM (mtr-Manjaro in this case), a secure password, and choose not to login automatically without asking for the password.
I do, however, allow for the same password for the administrator (root) account.
When satisfied with your settings, click Next.
Review your settings on the Summary screen.
If you notice errors or changes you’d like to make, click Back to return to the relevant window.
When satisfied with your settings, click Next.
Click Install now button when presented the Continue with setup? box.
If your screen locks during the installation process, use the following to unlock:
After installation completes, check Restart now.
We must remove the Manjaro ISO from the Virtual Optical Drive before rebooting (lest we reboot into Live Manjaro again).
Accomplish this by selecting the Devices tab in the [Running] – Oracle VM VirtualBox window.
Choose Optical Drives, and select Remove disk from virtual drive. Choose Force Unmount if prompted.
Congratulations! You just installed Manjaro 18.0.4 XFCE on VirtualBox.
Click Done.
When your VM reboots, you’re greeted with the Manjaro Log In screen.
Congratulations! You have successfully installed Manjaro 18.0.4 XFCE on your VirtualBox.
Next, we need to perform some essential post-installation housekeeping tasks.
Manjaro 18.0.4 Post-Installation Housekeeping
There are many more post-installation housekeeping functions desirable after a Manjaro installation than contained below. However, these are those I believe vital to a new Manjaro installation.
Since this is a VirtualBox installation, we first need to install Guest Additions.
Oracle’s VirtualBox Guest Additions are VM-specific and designed for installation inside the virtual machine after installation of the guest operating system.
The Guest Additions affords VirtualBox users a host of extra features, including:
The Oracle VM Virtual Box User’s Manual provides specific information on features of Guest Additions.
Although our Manjaro installation (on VirtualBox) already contains the Guest Additions CD image, we want the latest and greatest version available.
The installation of updates should be the first housekeeping step performed on any new OS installation. This ensures your OS is up-to-date, but it also ensures that your OS contains the latest security updates available.
So first let’s update our Manjaro installation.
Always Update Your OS First!
Launch the terminal.
Enter the following commands:
Enter the root password when prompted.
Select the default provider when prompted.
Click Y when asked if you would like to Proceed with the installation?.
After all the updates install, reboot if prompted.
Guest Additions Installation via Terminal
Enter the following commands:
Enter the root password if prompted.
Select the default provider when prompted.
Click Y when asked if you would like to Proceed with the installation?.
There are hosts of other tweaks that I like to perform after a successful installation such as favorite software installations, setting the GRUB timeout to 0, among others. However, we covered the essentials.
Hopefully, in this article, you’ve learned not only the benefits and appeal of Manjaro Linux along with the steps required for a successful installation of an OS (specifically Manjaro) within VirtualBox but also the need for post-installation housekeeping, whether within VirtualBox or a physical machine.
We encourage you to test not only the ins and outs of your new Manjaro installation but also the various options and functionality of your VirtualBox installation. Snapshots, the Network Operations Manager, the Recording option, are few useful ones to name.
We’d love to hear of your experiences here at FOSS Linux.