Установка Ubuntu на VirtualBox

В этой статье мы детально рассмотрим то, как установить Linux Ubuntu на VirtualBox — программу для создания виртуальной машины на компьютере.
Подробный видео-урок:
Установка Linux Ubuntu на виртуальную машину
Такой подход к инсталляции поможет в удобной форме протестировать интересующую вас систему, исключив ряд сложных манипуляций, в числе которых необходимость переустановки основной ОС и разметки диска.
Этап 1: Подготовка к установке

- Для начала запустите VirtualBox. Кликните на кнопку «Создать».
- VDI. Подойдет для простых целей, когда перед вами не стоит каких-то глобальных задач, а вы просто хотите протестировать ОС, идеально подойдет для домашнего использования.
- VHD. Его особенностями можно считать обмен данными с файловой системой, обеспечение безопасности, восстановление и резервное копирование (при необходимости), также имеется возможность конвертирования физических дисков в виртуальные.
- WMDK. Имеет схожие возможности со вторым типом. Его чаще используют в профессиональной деятельности.
Этап 2: Работа c образом диска

- В окне появится информация о том, что вы только что создали. Ознакомьтесь с отображаемыми на экране данными, они должны совпадать с ранее введенными. Для продолжения работы нажмите на кнопку «Запустить».
- VirtualBox попросит выбрать диск, на котором находится Ubuntu. При помощи любого из известных эмуляторов, например UltraISO, смонтируйте образ.
Этап 3: Установка
- Установщик Ubuntu запущен. Подождите, пока загрузятся необходимые данные.

- Выберите язык из списка в левой части окна. Нажмите «Установить Ubuntu».

- Определитесь, хотите ли вы, чтобы обновления устанавливались в процессе установки либо со сторонних носителей. Нажмите «Продолжить».

- Так как на только что созданном виртуальном жестком диске нет информации, выберите первый пункт, кликните «Продолжить».

- Установщик Linux предостерегает вас от ошибочных действий. Ознакомьтесь с представленной вам информацией и смело жмите «Продолжить».

- Укажите ваше место пребывания и нажмите «Продолжить». Таким образом установщик определит, в каком часовом поясе вы находитесь и сможет правильно настроить время.

- Выберите язык и раскладку клавиатуры. продолжите установку.

- Заполните все поля, что видите на экране. Выберите, хотите ли вы вводить пароль при входе, или же вход будет осуществляться автоматически. Нажмите кнопку «Продолжить».

- Дождитесь окончания установки. Она может занять несколько минут. В процессе на экране будет появляться интересная, полезная информация об устанавливаемой ОС. Можете ознакомиться с ней.

Этап 4: Ознакомление с операционной системой
- После окончания установки перезапустите виртуальную машину.

- После перезапуска будет загружена Linux Ubuntu.

- Ознакомьтесь с рабочим столом и возможностями ОС.

На самом деле, установить Ubuntu на виртуальную машину не так уж сложно. Для этого не нужно быть опытным пользователем. Достаточно лишь внимательно читать инструкции в процессе установки, и все получится!
Как установить Linux используя Virtualbox
Если вы работаете на Windows версии ниже 10 или хотите получить изолированную операционную систему Linux, да ещё и с графическим окружением, то можно воспользоваться сторонним бесплатным программным продуктом под названием VirtualBox.
Общая информация о технологии виртуализации
Инсталлятор Oracle VM VirtualBox для Windows Hosts Ссылка на скачивание: Download Oracle VM VirtualBox
Образ операционной системы Ubuntu Linux в формате ISO Ссылка на скачивание: Download Ubuntu Desktop
Для начала необходимо установить и запустить приложение VirtualBox.

Нажимаем кнопку «Создать», выбираем из списка тип операционной системы «Linux», если нет своих предпочтений по дистрибутиву, то выбираем версию «Ubuntu» 32 или 64 битной архитектуры, а название можно ввести любое.

Указываем объём оперативной памяти выделенной под виртуальную систему. Рекомендованный объём составляет 1024 MB.

Указываем объём дискового пространства выделенного под виртуальную систему. Рекомендованный объём составляет 10 GB.

Тип виртуального жёсткого диска можно оставить как есть — VDI (VirtualBox Disk Image).

Формат хранения данных выберите исходя из личных предпочтений. Динамический виртуальный жёсткий диск растёт по мере заполнения, а фиксированный создаётся сразу того размера, который был указан на предыдущем шаге.

Имя и размер файла можно оставить без изменений и сразу нажать на кнопку «Создать».

По завершению у вас будет создана виртуальная машина, но она пока без операционной системы. Для того чтобы её установить, нужно скачать Ubuntu Linux (32-bit или 64-bit, в зависимости от того, что было выбрано на шаге, где мы указывали тип ОС).
Нажатие на кнопку «Запустить» должно привести к появлению диалогового окна с предложением указать путь до скаченного ISO образа. Сделайте этого и нажмите кнопку «Продолжить»

Виртуальная машина автоматически будет выполнять часть процессов, но в некоторых операциях всё же потребуется участие пользователя.
Выберите языковую поддержку в списке слева и нажмите «Установить Ubuntu».

Можно загрузить обновления сразу на этапе установки.

Без особых опасений выбираем пункт «Стереть диск и установить Ubuntu» и двигаемся дальше.

Если вы выбрали русский язык на первом этапе установки, то вам предложат русскую раскладку клавиатуры в качестве дополнительной.

Заполните поля и выберите режим входа в систему.

Далее начнётся процедура разметки диска, переноса файлов, установка обновлений и другие процессы, которые не потребуют прямого участия пользователя.

По завершению виртуальный компьютер перезагрузится и вы попадёте в уже установленную среду Ubuntu Linux.
Но это ещё не всё. Весьма желательно установить так называемые «Дополнения гостевой ОС». Они содержат драйверы и прочие системные файлы, необходимые для наилучшей производительности и обеспечения дополнительных функциональных возможностей между виртуальной и гостевой операционными системами.
Выберите пункт меню «Устройства» программы VirtualBox, подпункт «Подключить образ диска Дополнений гостевой ОС…» и дождитесь предложение запустить приложение для автоматического запуска с виртуального привода.
How to Install Ubuntu Desktop on a Virtual Machine using VirtualBox 7
If you want to learn Linux and play around with it in a safe environment, it is best to give it a try by running Linux on a virtual machine using a virtualization solution from Oracle called VirtualBox.
![]()
![]()
DevOps with Valentine
Download a Linux distribution
For this example, I will be using Ubuntu Desktop LTS, but the installation steps are very similar to any
It is best first to start downloading the Linux distribution. For example, Ubuntu Desktop LTS is about 3.6 GB in size, and depending on your internet connection, this may take a while to download.
If you wish to install Ubuntu Desktop, head to the Ubuntu download page and click on Download.
Install VirtualBox
VirtualBox is a free virtualization solution. VirtualBox is available for many operating systems, including Windows and macOS. Go to the VirtualBox download page to find the installation package for your operating system.
The installation is pretty straightforward, and in no time, you should have VirtualBox running.
VirtualBox 7 is the newest version of VirtualBox and has a changed UI compared to VirtualBox 6. If you have VirtualBox 6, consider upgrading to VirtualBox 7.
Create a new virtual machine using VirtualBox
Click on the New button to start the process of configuring a new virtual machine.
In the next window, use the following name: Ubuntu Desktop LTS, or, even better UbuntuDesktopLTS. Just by having the name Ubuntu in…
How to run an Ubuntu Desktop virtual machine using VirtualBox 7
In this tutorial, we’ll walk you through one of the easiest ways to try out Ubuntu Desktop on a virtual machine. VirtualBox is a general purpose virtualiser that is available across Linux, Mac OS and Windows. It’s a great way to experience Ubuntu regardless of your current operating system.
VirtualBox 7 and above includes a new feature called Unattended Guest OS Install which significantly streamlines the setup experience for common operating systems like Ubuntu, making it easier than ever to get started.
Note: This tutorial will also work for other distributions, so try it out with some of the Ubuntu flavours as well!
What you’ll learn
- How to install and configure VirtualBox
- How to import an Ubuntu image
- How to run a virtual instance of Ubuntu Desktop
- Further configuration options
What you’ll need
- A PC with internet access!
Download an Ubuntu Image
You can download an Ubuntu image here. Make sure to save it to a memorable location on your PC! For this tutorial, we will use the latest Ubuntu 22.10 release.

Download and install VirtualBox
You can download VirtualBox from the downloads page here. This page includes instructions on how to install VirtualBox for your specific OS so we won’t repeat those here.
Once you have completed the installation, go ahead and run VirtualBox.
2. Create a new virtual machine
Click New to create a new virtual machine. Fill in the appropriate details:
- Name: If you include the word Ubuntu in your name the Type and Version will auto-update.
- Machine Folder: This is where your virtual machines will be stored so you can resume working on them whenever you like.
- ISO Image: Here you need to add a link to the ISO you downloaded from the Ubuntu website.
We want to install Ubuntu unattendedly so we can leave the checkbox to skip unchecked.
Create a user profile
To enable the automatic install we need to prepopulate our username and password here in addition to our machine name so that it can be configured automatically during first boot.
The default credentials are:
- Username: vboxuser
- Password: changeme
It is important to change these values since the defaults will create a user without sudo access.
Ensure your Hostname has no spaces to proceed!
It is also recommended to check the Guest Additions box to install the default Guest Additions ISO that is downloaded as part of VirtualBox. Guest additions enables a number of quality of life features such as changing resolution and dynamic screen resizing so it is highly recommended!
Note: If you choose not to use unattended install then this step will be skipped and you will go straight to the following screen. Once your machine has been created you will be able to create a username and password by proceeding through the standard Ubuntu Desktop installation flow on first boot.
Define the Virtual Machine’s resources
In the next section we can specifiy how much of our host machine’s memory and processors the virtual machine can use. For good performance it’s recommended to provide your VM with around 8GB of RAM (althought 4GB will still be usable) and 4 CPUs. Try to remain in the green areas of each slider to prevent issues with your machine running both the VM and the host OS.
Then we need to specify the size of the hard disc for the virtual machine. For Ubuntu we recommend around 25 GB as a minimum. By default the hard disk will scale dynamically as more memory is required up to the defined limit. If you want to pre-allocate the full amount, check the ‘Pre-allocate Full Size’ check box. This will improve performance but may take up unnecessary space.
Click Next to continue and view a summary of your machine setting.
After this click Finish to initialize the machine!
3. Install your image
Click Start to launch the virtual machine.
You will see a message saying ‘Powering VM up …’ and your desktop window will appear.
On first boot the unattended installation will kick in so do not interact with the prompt to ‘Try and Install Ubuntu’ and let it progress automatically to the splash screen and into the installer.
Note: If you chose not to use unattended install then you will need to progress through the Ubuntu install manually. Check out our Ubuntu Desktop installation tutorial for more details.
You will notice at this stage that the resolution of the window is fixed at 800×600. This is because the Guest Additions features are not installed until after the Ubuntu installation has completed.
Once the installation completes, the machine will automatically reboot to complete the installation.
Finally you will be greeted with the Ubuntu log-in screen where you can enter your username and password defined during the initial setup (don’t forget that the default password is ‘changeme’ if you left everything as the default).
4. Explore Virtual Box
Enjoy your shiny new Ubuntu Desktop!
As always we recommend opening a terminal and running sudo apt update && sudo apt upgrade -y and then sudo snap refresh to get everything updated to the latest versions.
Once you’ve finished your session you can close your machine by clicking the X in the top right of the window and choosing whether to keep your machine frozen in its current state or shut it down completely.
As you can probably tell, there are tonnes of further configuration options available in VirtualBox and we’ve only scratched the surface.
VirtualBox allows you to create and configure multiple virtual machines, so don’t be afraid to create new instances of Ubuntu to try out different system and storage configurations to fine tune your performance.
Why not try following the tutorial above with one of the Ubuntu flavours!