Сервер linux на virtualbox

How to install Ubuntu 22.04 Server on VirtualBox

Ubuntu 22.04 LTS Linux server is the latest long-term supported server OS from Canonical developers. Although, yet most of the server users are resorting currently on Ubuntu 20.04 LTS, however, for those who want to try out the Jammy Jellyfish on a Virtual machine before moving to it, this article will help them.

Most of the users would already be familiar with VirtualBox, if not, then it is an open-source project from Oracle to run virtual machines on all popular operating systems such as Windows, Linux, macOS, and FreeBSD.

Steps to install Ubuntu 22.04 Server on VirtualBox

Estimated reading time: 11 minutes

1. Download Ubuntu 22.04 Server LTS ISO

First, we must have a bootable ISO file of Ubuntu 22.04 Server jammy jellyfish Linux. For that, we can visit the official Image download page of Ubuntu. On the page, click on the button given for Downloading the ISO file.

2. Do you have VirtualBox?

Of course, to install Ubuntu 22.04 server Virtual machine on VBox, we also need to have VirtualBox installed on our existing host operating system. For Windows users, the installation of VirtualBox is just like any other software once you have the setup from its official website. Whereas Debian, Ubuntu, and its based Linux users can see our article on – VirtualBox installation on the Linux system.

3. Create Virtual Machine

Once you have installed the VirtualBox or if you already have then simply run it.

Create New VM

After that click on the “New” button to create a fresh Virtual machine.

Create Virtual Machine for Ubuntu server

Name Virtual Machine

Give some name to your virtual machine such as “Ubuntu 22.04” where select Type- Linux and version to Ubuntu.

Select Virtual machine Guest OS version

Set RAM for VM

If you are planning to install Ubuntu 22.04 Server with Desktop interface then for good performance and if your host system allows, then set the RAM to 4GB or less as per your system configuration.

Читайте также:  Сменить пароль через командную строку linux

Allocate RAM to your Linux Server virtaul machine

Create a Virtual Hard disk

Let the “Create a virtual hard disk now” option be selected and move to the next step.

Create a Virtual hard disk VBox

If you have any plan to use the Virtual hard disk later in VMware then go for VMDK otherwise let the default option VDI be selected.

Hard disk type file Vbox

Also, let the default “Dynamic Allocated” option be selected as it is. Allocate around 30GB of virtual space.

File Allocation type for Virtual disk

4. Start Ubuntu 22.04 server Virtual Machine

Finally, once all the above steps are done, you will see a newly created virtual machine on your VirtualBox. Select that from the left side panel and hit the Start button.

Start Ubuntu 22.04 Server virtual machine

5. Add Ubuntu 22.04 server ISO to VirtualBox

Now, we need to select the downloaded Ubuntu 22.04 ISO file as a Start-up disk to boot our Virtual machine with that. For that click on the “Folder” icon.

After clicking on the Folder icon, a pop-up window will open to add the ISO image file. Click on the “Add” button and then select your downloaded ISO file.

Add Ubuntu 22.04 server ISO to VirtualBox

As you have done this, the same ISO image will show in the “ISO Image selection ” area. Scroll to your added Ubuntu 22.04 LTS image and hit the Choose button.

Optical Disk Selector VirtualBOx

Finally, click on the Start button.

Start Ubuntu server VirtualBox machine

6. Grub Menu to select and boot the OS

Once the virtual machine is started, you will see the Grub menu as the first screen to select “Try or Install Ubuntu Server” to boot with it.

Try or install Ubuntu server operating system

7. Install Ubuntu 22.04 on VirtualBox

Finally, from the installation wizard, select the language, by default it will be English. In the next step, let the default keyboard layout be selected, and just press the Enter key to move further.

Select Server installation language

8. Ubuntu Server standard or minimized

In the next step, the installation wizard will ask you what type of server installation do you want? It is recommended to let the default option be selected and simply hit the Enter key.

Ubuntu Server standard or minimized

9. Network Connections VirtualBox

Ubuntu server will automatically identify the connected network and select the same to use. If you want to customize that then use the arrow key and manually select the Adapter you want to use.

Network Connections VirtualBox

Skip the Proxy in the next step and hit the Enter key again.

After that again press the Enter key to let the system select the default Ubuntu Mirror to fetch packages.

Читайте также:  Ati radeon driver linux mint

10. Erase disk and Install Ubuntu 22.04 server

Now, the system will show the entire attached virtual hard disk where it is planning to install the Ubuntu server. Use the TAB key to select the DONE option and hit the Enter key.

Erase disk and Install Ubuntu 22.04 server File system summary ubuntu

confirm disk formatiing

11. Set Username and password

Soon, you will have the Profile Setup area from where we can create a user for our Server.

Create Linux ubuntu server userr

After that, if you want to access the server remotely using the SSH then you can select the “Install OpenSSH Server” using arrow keys and spacebar otherwise simply select the “DONE” and move forward because we can install it later.

SkipOpen SSH installation

12. Select the Ubuntu Server package to install (optional)

Do you want to install some popular and common server software packages such as Docker? Then you can select them here otherwise, leave them unselected and select the Done option.

Install Ubuntu 22.04 server on VirtualBox

Move next and the system will start the installation process of the Ubuntu 22.04 server on VirtualBox as a Virtual Machine.

13. Install VirtualBox Guest Additions

Access your Ubuntu server terminal and with an active internet connection on your virtual machine to run the given commands:

sudo apt install virtualbox-guest-additions-iso virtualbox-guest-utils virtualbox-dkms

for Extension pack:

sudo apt install virtualbox-ext-pack

Restart the system…

14. Switch to root user and set a password

As you reboot the Ubuntu server virtual machine, a login interface will appear. Enter the details of the user you have created while installing it.

Login Ubuntu server virtualbox

Set Ubuntu root user password

Enter the new password for your root user.

FAQ

Yes, we can run Virtual machines on an Ubuntu server with the help of a virtualization module called KVM (Kernel-based Virtual Machine). Whereas those who have a GUI Desktop server can use VirtualBox or VMware Player workstation.

To create a VirtualBox server in Linux, we need to install some Server OS distros on it such as Ubuntu server, RedHat, Fedora, OpenSUSE, and more… In this article, you can see how we have installed the Ubuntu 22.04 Server on VirtualBox.

Yes, Linux servers are not only free and open source but consume less Memory and offer an easy-to-use command line package manager to install thousands of packages. That is the reason most of the hosting and cloud servers are running on Linux.

Multipass can launch and run virtual machines and configure them with cloud-init like a public cloud. uses Hyper-V on Windows, QEMU and HyperKit on macOS and LXD on Linux for minimal overhead and the fastest possible start time. It uses images tuned for cloud usage

Читайте также:  Сетевой видеорегистратор linux os

Yes, Ubuntu Server is free to use for both Commercial and Personal projects. However, if an Enterpise want can buy extended security, certified compliance and 24×7 support for their Ubuntu server running infrastructure from Ubuntu.

Yes, of course; we can install Ubuntu server on Laptops, Desktops or even on virtual machines like any other Linux distro.

No, Multipass is not a hypervisor instead a tool to quickly create Ubuntu VM environment and manage it with cloud-init. In simple, it is a platfrom that uses hypervisor such as KVM, HyperKit and Hyper-v to create virtual machines instantly.

Other Articles:

Источник

Сервер linux на virtualbox

1. Вступление
В рамках этой статьи рассмотрим подробную установку средства виртуализации Oracle VM VirtualBox (далее просто VirtualBox) и создания виртуальной машины под управлением Ubuntu 18.04 Server.

Почему будем использовать именно VirtualBox?
Причин несколько:

1) Он прост в установке на любую операционную систему (Windows, MacOS, Linux);
2) Имеет обширное комьюнити пользователей, а значит — можно найти ответ на любой вопрос;
3) Поддерживает создание множества виртуальных машин под разными ОС (Windows, FreeBSD, Ubuntu, CentOS, RedHat и др.);
4) Создание отдельных виртуальных сетей между виртуальными машинами;
5) Cоздание и восстановление снимков системы (снапшотов) и довольно обширную интеграцию с ОС хоста;
6) Бесплатный;

Зачем это нужно?

1) Для обучения;
2) Для тестирования каких-то программ, сборки пакетов под определённую конфигурацию системы;
3) Для решения задач «домашнего сервера» при наличии мощной машины хоста;

Версии ПО используемые для установки в данном руководстве:
— Windows 10, версии 1903;
— VirtualBox 6.1;
— Ubuntu 18.04 Server LTS;

2. Подготовка

2.1 Скачивание, установка и настройка Oracle VM VirtualBox

Скачать VirtualBox можно с официального сайта — ссылка: https://www.virtualbox.org

Нам необходимо скачать то,
что на скриншоте выделено
красными прямоугольниками,
а именно:
— Сам установочный файл
VirtualBox:
https://download.virtualbox.org/virtualbox/6.1.0/VirtualBox-6.1.0-135406-Win.exe
— И т.н Extension Pack
пакет очень полезных
расширений
(общие папки, поддержка
USB выше 2.0 и др.)
для виртуальных машин:
https://download.virtualbox.org/virtualbox/6.1.0/Oracle_VM_VirtualBox_Extension_Pack-6.1.0.vbox-extpack

2.2 Скачивание образа системы Ubuntu 18.04 Server
Пока скачивается одно, можно загрузить образ системы с официального сайта:
https://releases.ubuntu.com/18.04.4

Выбираем тут Server install image
(Прямая ссылка:
http://releases.ubuntu.com/18.04/ubuntu-18.04.3-live-server-amd64.iso ),
выбираем путь для сохранения.
Готово.

3. Установка VirtualBox

Установка самого VirtualBox
не сложна и заключается, в основном,
в «Далее-Далее-Принять-Готово»,
(кроме двух моментов о которых
расскажу далее),
подробно расписывать его
установку смысла не имеет,
но скриншоты процесса приложу ниже.

Два «сложных» момента заключаются в следующем:

1) Необходимо включить в BIOS
ПК на который устанавливается
средство виртуализации,
настройку Virtualization Technology.
2) При установке кратковременно
пропадёт сеть на ПК, VirtualBox
об этом любезно предупредит.

Источник

Оцените статью
Adblock
detector