Install virtualbox guest additions on ubuntu 20.04
Содержание:
Now you can also share files between host and guest OS via the shared folder feature. Go to the virtual machine settings. In the left pane, select . Then click on the button to add a shared folder.

- In the field, select a folder on your host OS.
- Tick on the checkbox so that the shared folder will be automatically mounted to the guest OS when virtual machine boots up.
- In the Mount-point field, enter a path on the guest OS, such as a sub-directory in your user’s home directory.
- Tick on the checkbox.

After saving the settings, you will find the shared folder appears in your home directory in the Linux Mint virtual machine, but only the root user and members of the vboxsf group have read and write access to this shared folder. So what we need to now is add your user to vboxsf group. Open up a terminal in Linux Mint and run the following command. Replace username with your real username.
sudo adduser username vboxsf
Log out of the current session and log back in. Now you should be able to access the shared folder.
Why should you use VirtualBox Guest Additions?

With VirtualBox Guest Additions enabled, using the virtual machine becomes a lot more comfortable. Don’t believe me? Here are the important features that the Guest Additions offer:
- Mouse pointer integration: You no longer need to press any key to “free” the cursor from the Guest OS.
- Shared clipboard: With the Guest Additions installed, you can copy-paste between the guest and the host operating systems.
- Drag and drop: You can also drag and drop files between the host and the guest OS.
- Shared folders: My favorite feature; this feature allows you to exchange files between the host and the guest. You can tell VirtualBox to treat a certain host directory as a shared folder, and the program will make it available to the guest operating system as a network share, irrespective of whether guest actually has a network.
- Better video support: The custom video drivers that are installed with the Guest Additions provide you with extra high and non-standard video modes, as well as accelerated video performance. It also allows you to resize the virtual machine’s window. The video resolution in the guest will be automatically adjusted, as if you had manually entered an arbitrary resolution in the guest’s Display settings.
- Seamless windows: The individual windows that are displayed on the desktop of the virtual machine can be mapped on the host’s desktop, as if the underlying application was actually running on the host.
- Generic host/guest communication channels: The Guest Additions enable you to control and monitor guest execution. The “guest properties” provide a generic string-based mechanism to exchange data bits between a guest and a host, some of which have special meanings for controlling and monitoring the guest. Applications can be started in the Guest machine from the Host.
- Time synchronization: The Guest Additions will resynchronize the time with that of the Host machine regularly. The parameters of the time synchronization mechanism can be configured.
- Automated logins: Basically credentials passing, it can be a useful feature.
Impressed by the features it provides? Let’s see how you can install VirtualBox Guest Additions on Ubuntu Linux.
Non-Issues[edit]
If the following message appears during a kernel upgrade, it is a non-issue.
None.
Footnotesedit
- Host -> Whonix-Gateway clipboard sharing enable by default?
-
https://forums.whonix.org/t/security-risks-of-virtualbox-shared-folders/10119
-
To learn more about VirtualBox shared folders, see: .
-
Admittedly, this recommendation does not have a strong rationale. Disabling additional features in other virtualizers or general applications will similarly lead to less code paths being utilized and arguably increasing security. VirtualBox software is not special in this regard.
- Because otherwise you cannot change VirtualBox VM settings.
- Using /lib/systemd/system/mnt-shared-vbox.service .
-
If the option is unavailable, upgrade VirtualBox.
-
Alternatively folder can be chosen. The VirtualBox default means that folder would be owned by owner and group .
-
This is specific to the VirtualBox version; newer versions do not have this option anymore.
Check if this setting should persist after restart of the virtual machine. Otherwise this setting will be temporary. -
This step is required. Quote :
-
↑
is still installed by default. Should there be issues with , as there was in past due to unavailability, then it’s easier to fall back to that solution. ] (installation helper created by Whonix developers) is also still installed by default for the same purpose. -
Might still be used by users who Release Upgradeed from Whonix 15 to Whonix 16.
-
Installation of VirtualBox guest additions from CD might also cause issues.
- http://www.webcitation.org/6HqJVN0br
-
https://www.whonix.org/w/index.php?title=Ga&action=edit
Whonix is Supported by Evolution Host DDoS
Protected VPS. Stay private and get your VPS with Bitcoin or Monero.
| Fosshost | About Advertisements |
Search engines: YaCy | Qwant | ecosia | MetaGer | peekier | Whonix Wiki
Follow:
Support:
Donate:
Have you read our Documentation, Design and Developer Portal links yet?
Priority Support | Investors | Professional Support
Whonix | ENCRYPTED SUPPORT LP | Freedom Software / Open Source (Why?)
The personal opinions of moderators or contributors to the Whonix project do not represent the project as a whole.
Using VirtualBox Guest Addition features
Here are some screenshots for enabling/using helpful features of VirtualBox Guest Additions in use:
Configure Drag And Drop (any files)
You can enable drag and drop from the top menu -> Devices ->Drag and Drop -> Bidirectional.
With Bidirectional, you can drag and drop from guest to host and from host to guest, both.

Drag and Drop
Similarly, you can enable shared clipboard from the top menu -> Devices -> Shared Clipboard -> Bidirectional.

Shared Clipboard
Uninstalling VirtualBox Guest Additions (if you don’t want to use it anymore)
Navigate to the CD image and open it in terminal (Right Click inside directory > Open in Terminal):

Open in Terminal
Now enter:
However, in some cases you might have to do some more cleanup. Use the command:
Note: Replace VBoxGuestAdditions-version with the right version (you can hit tab to autocomplete; in my case it is VBoxGuestAdditions-6.0.4).
Migration to Guest Additions Packages[edit]
- Whonix 15 Release Upgradeed to Whonix 16: This is recommend.
- Whonix 16 new downloads: No action required.
1. .
2. Install.
Install .
1. Update the package lists.
sudo apt-get update
sudo apt-get update
2. Upgrade the system.
sudo apt-get dist-upgrade
sudo apt-get dist-upgrade
3. Install the package.
Using command line parameter is in most cases optional.
sudo apt-get install --no-install-recommends virtualbox-guest-utils virtualbox-guest-x11
sudo apt-get install —no-install-recommends virtualbox-guest-utils virtualbox-guest-x11
The procedure of installing is complete.
3. Reboot.
4. Done.
Migration from VirtualBox Guest Additions ISO to Guest Additions packages has been completed.
Installation in EFI mode (optional)
Enabling EFI for Arch as guest is optional. If you want to install Arch Linux in EFI mode inside VirtualBox, you must change the firmware mode for the virtual machine. This must be done before installing Arch as guest, changing the option afterwards will result in unbootable machine unless the setting is reverted.
To enable EFI for a virtual machine using the graphical interface, open the settings of the virtual machine, choose System item from the panel on the left and Motherboard tab from the right panel, and check the checkbox Enable EFI (special OSes only).
Alternatively the same can be accomplished from the command line using VBoxManage:
$ VBoxManage modifyvm "Virtual machine name" --firmware efi
will set the firmware for the virtual machine to EFI with the matching the virtual machine’s CPU. To get a specific EFI bitness, set the firmware to for x86_64 EFI or for IA32 EFI.
After selecting the kernel from the Arch Linux installation media’s menu, the media will hang for a minute or two and will continue to boot the kernel normally afterwards. Be patient.
Starting with VirtualBox 6.1 the issue of forgetting NVRAM contents on shutdown is fixed. Proceed with the installation just as on a regular UEFI system.
Installation in EFI mode on VirtualBox < 6.1
Once the system and the boot loader are installed, VirtualBox will first attempt to run from the ESP. If that first option fails, VirtualBox will then try the EFI shell script from the root of the ESP. This means that in order to boot the system you have the following options:
- from the EFI shell every time;
- Move the bootloader to the default path;
- Create a script named at the ESP root containing the path to the boot loader application, e.g. .
- Boot directly from the ESP partition using a .
Общая информация по VirtualBox Guest Additions
Для более эффективной работы и взаимодействием между реальной и виртуальной машиной, созданной в VirtualBox, используется специальное дополнение к последнему – Guest Additions. Данный пакет расширений открывает дополнительные возможности, среди которых:
- Создание реальной сети в виртуальной машине. Благодаря ней из операционной системы, которая установлена в VirtualBox можно выходить в интернет, производить обмен данными между основной машиной и виртуальной;
- Добавляет поддержку видеодрайверов. Благодаря этому вы можете менять разрешение экрана, на установленной виртуальной системе, проверять производительность программ, требующих наличие графических драйверов и т.д;
- Более удобная интеграция курсора мыши между операционными системами. Например, теперь не нужно нажимать дополнительные кнопки, чтобы курсор переместился из виртуальной системы, что стоит в VirtualBox, в вашу основную;
- Синхронизация времени между основной операционной системой и виртуальной;
- Возможность автоматического входа в виртуальную систему.
Монтирование образа VirtulBox Guest Additions
По умолчанию все пакеты этого дополнения уже внесены в VirtualBox, поэтому нет смысла скачивать что-либо дополнительно с официального сайта разработчика. Для установки нужно только подключить уже скаченный пакет:
- Остановите уже запущенную виртуальную машину в интерфейсе VirtualBox. Для этого нажмите правой кнопкой мыши по нужной операционной системе и выберите из контекстного меню пункт «Отключить».
- Выберите нужную машину и нажмите на кнопку «Настройки», что расположена в верхнем меню интерфейса.

В окне «Настроек» перейдите во вкладку «Носители».
Обратите внимание на форму «Носители информации». Под «Контроллер IDE» выберите виртуальный диск.

Если в 4-м пункте вы не нашли образ виртуального диска, то нажмите на иконку диска, расположенную напротив «Привод».
В выпавшем меню нажмите «Выбрать образ оптического диска».

Откроется окно стандартного «Проводника» Windows, где вам придётся выбрать образ. В данном случае нужно перейти в корневую папку VirtualBox и найти там элемент с наименованием «VBoxGuestAdditions.iso».

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

Теперь нужно перейти в папку «Компьютер», если в качестве виртуальной машины выступает ОС Windows. Под «Устройства со съёмными носителями» должен отобразится смонтированный образ.

В качестве альтернативы этой инструкции можно воспользоваться ещё этой, но при этом виртуальная машина должна быть запущена и полностью работоспособна:
- В интерфейсе запущенной виртуальной машины нажмите на пункт «Устройства».
- Откроется контекстное меню, где нужно нажать по «Подключить образ диска дополнительной гостевой ОС…».

Подключение займёт некоторое время. После перейдите в папку «Компьютер» и обратите внимание на «Устройства со съёмными носителями». Там должен быть образ.
Установка из образа
Процесс установки выглядит следующим образом:
- Откройте смонтированный образ.
- Здесь запустите файл установщика. Всего их три: универсальный, для 64-битных систем и 32-битных систем. Последние два имеют соответствующие приписки в наименовании файла.

Откроется окно с приветствием. Здесь нужно просто нажать «Next».

Следующее окно предлагает выбрать место для установки. Здесь можно оставить всё по умолчанию. Для перехода на следующий шаг нажмите «Next».

Рекомендуется снять галочку напротив пункта «Direct 3D Support», так как установка этого драйвера возможна только в «Безопасном режиме».

Начнётся установка, в ходе которой может несколько раз появится окно, где вас просят дать соглашение на установку. Везде жмите на «Установить».

Когда завершится установка «Guest Additions» установите маркер напротив пункта «Reboot now» и нажмите на «Finish».

В установки дополнения VirtualBox Guest Additions нет ничего сложного, особенно, если у вас есть опыт взаимодействия с виртуальными машинами.
Install VirtualBox Guest Additions on Ubuntu 20.04
In order to install VirtualBox Guest Additions on Ubuntu 20.04, you need to have the Guest Additions ISO file. Guest Addition ISO file can be inserted into the VM in two ways;
Insert Guest Additions ISO File Manually
To manually insert the VirtualBox Guest Additions ISO file on your Ubuntu 20.04 VM, navigate to Menu bar on your VM and click Devices > Insert Guest Additions CD image. Note that before you can insert the ISO file, you need to have at least one empty IDE controller.
However, before you can proceed with Guest Addition installation, you first need to install required build tools, the Linux kernel headers and the support modules, if not already installed.
Run the command below to verify if these requirements have already been installed.
The means that the package is installed. As you can see from the output, dkms is not installed. If none if these packages is installed, you can simply use the APT package manager to install them.
Once that is done, proceed to insert the Guest Additions ISO from the Menu bar > Devices.
This will launch a dialog box which prompts you to run or cancel the Guest Additions installer.
Click Run to launch the installation of Guest additions on Ubuntu 20.04. You will be prompted to enter your password to authenticate the installation.
Upon successful authentication, the Guest Addition installation will now run.
Once the Guest Additions are installed, the screen automatically resizes itself. Press Enter to close the installation screen.
You can as well restart your virtual machine to reload the Kernel modules.
Install Guest Additions Manually from Terminal
You can also install the Guest Additions from the terminal. When the Guest Addition ISO file is inserted, it is mounted on . Where x is the build version of VirtualBox.
Therefore press cancel when the installer dialog box opens up.
Then navigate to the mount point of the guest additions and run the command below;
or simply run;
Installing Guest Additions ISO from Ubuntu Repositories
It is also possible to install the Guest Additions ISO file from Ubuntu repos. Guest Additions ISO file is provided by the package.
If it is available, simply run the command below to install it.
When installed, the VirtualBox Guest Additions ISO is now available as .
To install it, you need to mount it.
Next, run the installation.
Once the installation is done, restart your system to reload kernel modules.
You should now be on full screen and can be able to enable shared clipboard, shared folders, drag and drop…
If upon system reboot the screen doesn’t auto-resize automatically, be sure to toggle (off/on, so to say) on the VM menu bar to set right VM resolution.
That is all on our guide on how to install VirtualBox Guest Additions on Ubuntu 20.04.
Install VirtualBox Guest Additions on Debian 10 Buster
Установите гостевые дополнения VirtualBox в Ubuntu / Debian Linux
Следует иметь в виду, что гостевые дополнения, как следует из названия, являются дополнениями гостевой ОС, а не хост-ОС. Следовательно, в этом случае гостевой ОС, работающей на виртуальной машине, является Ubuntu, производные Ubuntu (включая сервер Ubuntu), производные Debian или Debian (включая сервер Debian). Операционная система, на которой установлен VirtualBox, может быть любой.
Способ установки VirtualBox Guest Additions незначительно зависит от дистрибутива. В некоторых случаях, как только вы монтируете образ компакт-диска VBox Guest Additions ISO, вам будет предложено выполнить скрипт автозапуска. На других вы должны будете вручную настроить VirtualBox Guest Additions. Ручной метод установки гостевых дополнений VirtualBox в Debian и Ubuntu Linux показан здесь, так как он должен работать в большинстве случаев.
Сначала нам нужно установить пакет с именем . Это необходимо, чтобы Virtual Box продолжала работать с любыми обновленными ядрами в будущем. Возможно, вы уже установили его, но при попытке повторить попытку и запустить команду, приведенную ниже, нет никаких проблем
Далее вам не нужно скачивать компакт-диск VirtualBox Guest Additions. Все, что вам нужно сделать, это, когда запущено виртуальное устройство Ubuntu или Debian, перейти к ->, как показано на рисунке ниже. Это установит диск VBox Guest Additions для установки.

Загрузить образ компакт-диска VBox Guest Additions
В некоторых дистрибутивах Linux скрипт автозапуска открывается автоматически. В других случаях образ компакт-диска открывается и содержимое отображается в проводнике. Это то, что случилось с Xubuntu, который используется в этой демонстрации.

Открыть VBox Guest Additions CD
Теперь вы можете щелкнуть правой кнопкой мыши в пустом месте в проводнике и выбрать «Открыть терминал здесь». В некоторых других ничего не происходит после того, как вы вставите образ компакт-диска, и вам придется вручную открыть терминал и перемещаться по содержимому. Образ компакт-диска, как правило, монтируется под , где указано ваше имя пользователя и имя образа компакт-диска. В этой демонстрации путь:
Как только у вас откроется окно терминала и вы окажетесь в папке образа компакт-диска, вы готовы установить гостевые дополнения VirtualBox на гостевую ОС Ubuntu или Debian. Наконец, запустите установщик гостевых дополнений VBox, используя следующую команду:
Вот и все, просто сидеть и смотреть. Сценарий автоматически подготовит и установит гостевые дополнения VBox в Ubuntu / Debian.

Установите гостевые дополнения VirtualBox в Ubuntu / Debian
После завершения установки перезагрузите гостевую ОС, и все готово. Теперь вы сможете запускать гостевую ОС в полноэкранном режиме, перетаскивать объекты между гостевой и хост-ОС, делиться буфером обмена и делать многое другое. На мой взгляд, если вы используете VirtualBox, то гостевые дополнения обязательно. VirtualBox также предлагает так называемый , который добавляет некоторые расширенные функции. Но большинству пользователей не нужен пакет расширений. Установите гостевые дополнения VirtualBox на гостевые ОС Ubuntu и Debian и наслаждайтесь повышенной производительностью и возможностями.
Источник записи: https://www.smarthomebeginner.com
Installing Guest additions from the repositories
In case we have installed the OSE edition of Virtual Box from the repositories we can add the guest additions from the repositories in the guest. This will install guest additions matching the Virtual Box version as obtained from the repositories. It is not recommended to install these in newer releases of Virtual Box as obtained from the Oracle repository (see below).
Alternatively we can install the package virtualbox-guest-additions-iso in the host Ubuntu.
The .iso file with an image of the OSE edition of the guest additions CD will install in the host directory /usr/share/virtualbox/VBoxGuestAdditions.iso . Mount this .iso file as a CD in your virtual machine’s settings. In the guest you will then have access to a CD-ROM with the installer.
What Are Guest Additions in VirtualBox?
The VirtualBox Guest Additions are extra pieces of software, included with your copy of VirtualBox, that enable better performance and functionality in virtual machines. You install Guest Additions inside the virtual machine to activate this functionality.
As you probably know, VirtualBox is a hypervisor, which allows you to create and use virtual machines. This means that you can install Windows and other operating systems inside VirtualBox and have them think that they’re running on actual hardware.
Read our full guide to using VirtualBox to get up to speed if you’re not familiar.
However, just because you get a working virtual machine running in VirtualBox doesn’t mean the experience is perfect from the start. There are certain elements of running an OS in an app window that are frustrating.
For example, on your main computer, Windows knows what resolutions it can display using the drivers from your graphics card. A virtual machine can’t do this, though, so it displays in a low resolution (such as 800×600) by default.
The Guest Additions of VirtualBox contain display drivers and other useful tools that make your virtual machine much more usable.
Почему вы должны использовать гостевые дополнения VirtualBox?

С включенными гостевыми дополнениями VirtualBox использование виртуальной машины становится намного удобнее. Не веришь мне? Вот важные функции, которые предлагает гостевые дополнения:
- Интеграция указателя мыши: вам больше не нужно нажимать какие-либо клавиши, чтобы «освободить» курсор от гостевой ОС.
- Общий буфер обмена: с установленными гостевыми дополнениями вы можете копировать и вставлять данные между гостевой и хост-операционной системами.
- Перетаскивание: вы также можете перетаскивать файлы между хостом и гостевой ОС.
- Общие папки: Моя любимая функция; эта функция позволяет обмениваться файлами между хостом и гостем. Вы можете указать VirtualBox обрабатывать определенный каталог хоста как общую папку, и программа сделает его доступным для гостевой операционной системы как сетевой ресурс, независимо от того, есть ли у гостевой системы сеть.
- Улучшенная поддержка видео: пользовательские драйверы видео, которые устанавливаются с гостевыми дополнениями, предоставляют вам сверхвысокие и нестандартные режимы видео, а также повышенную производительность видео. Это также позволяет изменить размер окна виртуальной машины. Разрешение видео в гостевой системе будет настроено автоматически, как если бы вы вручную вводили произвольное разрешение в настройках дисплея гостевой системы.
- Бесшовные окна: отдельные окна, которые отображаются на рабочем столе виртуальной машины, могут быть сопоставлены на рабочем столе хоста, как если бы основное приложение фактически выполнялось на хосте.
- Общие каналы связи хоста/гостя: гостевые дополнения позволяют вам контролировать и мониторить действия гостевой системы. «Свойства гостя» предоставляют общий механизм на основе строк для обмена битами данных между гостем и хостом, некоторые из которых имеют особые значения для управления и контроля гостевой системы. Приложения могут быть запущены на гостевой машине с хоста.
- Синхронизация времени: благодаря гостевые системы будут регулярно синхронизировать время с хост-машиной. Параметры механизма синхронизации времени могут быть настроены.
- Автоматические входы в систему: это может быть полезной функцией.
Под впечатлением от функций, которые предоставляет гостевое дополнение? Давайте посмотрим, как вы можете установить VirtualBox Guest Additions в Ubuntu Linux.
How to Install Virtualbox Guest Additions in Linux Mint
Log into Linux Mint (guest OS) and run the following command in a terminal window to update software packages.
sudo apt update sudo apt upgrade
Please note that if a new Linux kernel is installed in the upgrade process, then you need to reboot Linux Mint virtual machine. After that, run the following command to install required packages for building kernel modules.
sudo apt install build-essential module-assistant
Next, prepare Linux Mint for building kernel module with the following command.
sudo m-a prepare
Then in the VirtualBox window menu bar, select Devices > Insert Guest Additions CD image.

If your host OS already has the CD image, then you will be asked if you want to run the software. Select Run.

Then you will need to enter your password in order to install the guest additions.

Output in terminal window.
Verifying archive integrity... All good. Uncompressing VirtualBox 6.0.10 Guest Additions for Linux........ VirtualBox Guest Additions installer Copying additional installer modules ... Installing additional modules ... VirtualBox Guest Additions: Starting. VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules. This may take a while. VirtualBox Guest Additions: To build modules for other installed kernels, run VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup <version> VirtualBox Guest Additions: or VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup all VirtualBox Guest Additions: Building the modules for kernel 4.15.0-55-generic. update-initramfs: Generating /boot/initrd.img-4.15.0-55-generic VirtualBox Guest Additions: Running kernel modules will not be replaced until the system is restarted Press Return to close this window...
Once the guest additions is installed, press to close the terminal window and restart your Linux Mint virtual machine. Now the resizeable display should be working. The screen resolution of Linux Mint VM will adjust with the size of VirtualBox window. You can press right Ctrl and F keyboard shortcut to enter full-screen mode. You can now also configure shared folder and bidirectional shared clipboard.
Guest Additions Make VirtualBox Even Better
As we’ve seen, the Guest Additions make running virtual machines with VirtualBox much smoother. You should always take a few moments to install the Guest Additions when setting up a new VM, as there’s no drawback to doing so.
If VirtualBox isn’t working for you, check out how VirtualBox compares to other virtualization tools.
15 Must-Have Windows Apps and Software for Any New PC
Got a new computer? Here’s the essential Windows 10 software you need when setting up a new PC.
Read Next
About The Author
Ben Stegner
(1735 Articles Published)
Ben is a Deputy Editor and the Onboarding Manager at MakeUseOf. He left his IT job to write full-time in 2016 and has never looked back. He’s been covering tech tutorials, video game recommendations, and more as a professional writer for over seven years.
More
From Ben Stegner