Как установить и использовать гостевые дополнения virtualbox в ubuntu

Содержание:

Гостевые дополнения VirtualBox

Для улучшения работы с виртуальной машиной, и взаимодействия с ней, в виртуально установленной операционной системе нужно установить специальный набор инструментов, который называется «Гостевые дополнения» («Guest Additions»). Данный набор инструментов выпускается для следующих операционных систем:

  • Windows (начиная с Windows NT 4.0, и заканчивая Windows 10);
  • Linux (официально поддерживаются Oracle Linux, Fedora, Red Hat Enterprise Linux, SUSE (в том числе openSUSE), Ubuntu);
  • Oracle Solaris;
  • OS/2.

Для установки гостевых дополнений VirtualBox необходимо выполнить следующие действия:

  1. Включаем виртуальную машину и ждем загрузки ОС.
  2. В верхнем меню VirtualBox выбираем пункт «Устройства — Подключить образ диска Дополнений гостевой ОС…».

Дальнейшие действия зависят от того, какая операционная система установлена в VirtualBox:

Windows

  1. Если в системе не отключен автозапуск, то должен запуститься установщик дополнений гостевой ОС. Если же в системе выключен автозапуск, нужно запустить установщик вручную, найдя его на подключившемся диске в виртуальной машине, под именем VBoxWindowsAdditions.exe.
  2. Как и установка самого VirtualBox, установка гостевых дополнений максимально упрощена, и по сути представляет из себя нажатие кнопок «Next». С первым окном именно так и следует поступить.
  3. На следующем будет предложено выбрать место для установки гостевых дополнений. По умолчанию, рассматривается обычная для всех программ директория Program Files.
  4. Последним шагом, перед непосредственно самой установкой, будет выбор устанавливаемых компонентов:
    • VirtualBox Guest Additions — собственно, сами гостевые дополнения VirtualBox;
    • Start menu entries — ярлыки в меню «Пуск».
    • Direct3D Support — третий компонент, который не выбран по умолчанию, является экспериментальной функцией по включению полноценного 3D ускорения в виртуальной машине. Для «простой» работы он не нужен.
  5. После нажатия на кнопку «Next» начнется установка гостевых дополнений, во время которой может появится окно с запросом на разрешения установки программного обеспечения для устройства (драйвер), которую необходимо одобрить.
  6. После установки дополнений потребуется перезагрузка компьютера, которую можно выполнить сразу (оставив отмеченным пункт «Reboot now»), или выполнив её позже самостоятельно (для этого нужно отметить пункт «I want to manually reboot later»).
  7. После перезагрузки произойдет множество полезных изменений — появится поддержка двухстороннего буфера обмена (о том, как его включить можно прочитать здесь), функция drag-n-drop между основной операционной системой и операционной системой в виртуальной машине, автоматический выбор разрешения экрана на основе размера окна VirtualBox и т. д.

Linux

В операционных системах семейства Linux, графический установщик гостевых дополнений отсутствует, вся установка происходит через терминал. Современные дистрибутивы прекрасно сами распознают файл автозапуска на образе с гостевыми дополнениями, и предлагают его запустить автоматически.
Можно так же запустить файл установки гостевых дополнений вручную. Для этого, нужно открыть терминал, и перейти в каталог, куда смонтирован виртуальный образ с файлами установки дополнений. Там же, нужно выполнить команду запуска файла установки:

После выполнения данной команды, начнется установка гостевых дополнений Linux, по завершению которой, понадобится перезагрузка системы.

Почему вы должны использовать гостевые дополнения VirtualBox?

С включенными гостевыми дополнениями VirtualBox использование виртуальной машины становится намного удобнее. Не веришь мне? Вот важные функции, которые предлагает гостевые дополнения:

  • Интеграция указателя мыши: вам больше не нужно нажимать какие-либо клавиши, чтобы «освободить» курсор от гостевой ОС.
  • Общий буфер обмена: с установленными гостевыми дополнениями вы можете копировать и вставлять данные между гостевой и хост-операционной системами.
  • Перетаскивание: вы также можете перетаскивать файлы между хостом и гостевой ОС.
  • Общие папки: Моя любимая функция; эта функция позволяет обмениваться файлами между хостом и гостем. Вы можете указать VirtualBox обрабатывать определенный каталог хоста как общую папку, и программа сделает его доступным для гостевой операционной системы как сетевой ресурс, независимо от того, есть ли у гостевой системы сеть.
  • Улучшенная поддержка видео: пользовательские драйверы видео, которые устанавливаются с гостевыми дополнениями, предоставляют вам сверхвысокие и нестандартные режимы видео, а также повышенную производительность видео. Это также позволяет изменить размер окна виртуальной машины. Разрешение видео в гостевой системе будет настроено автоматически, как если бы вы вручную вводили произвольное разрешение в настройках дисплея гостевой системы.
  • Бесшовные окна: отдельные окна, которые отображаются на рабочем столе виртуальной машины, могут быть сопоставлены на рабочем столе хоста, как если бы основное приложение фактически выполнялось на хосте.
  • Общие каналы связи хоста/гостя: гостевые дополнения позволяют вам контролировать и мониторить действия гостевой системы. «Свойства гостя» предоставляют общий механизм на основе строк для обмена битами данных между гостем и хостом, некоторые из которых имеют особые значения для управления и контроля гостевой системы. Приложения могут быть запущены на гостевой машине с хоста.
  • Синхронизация времени: благодаря гостевые системы будут регулярно синхронизировать время с хост-машиной. Параметры механизма синхронизации времени могут быть настроены.
  • Автоматические входы в систему: это может быть полезной функцией.

Под впечатлением от функций, которые предоставляет гостевое дополнение? Давайте посмотрим, как вы можете установить VirtualBox Guest Additions в Ubuntu Linux.

Extras (missing Guest Additions)

This extra section is necessary, because sometimes people have trouble finding the Guest Additions! In general,
whenever you click Install Guest Additions …, VirtualBox is supposed to mount
the Guest Additions ISO. But this may not happen. There are several ways to rectify the situation:

First, if the Guest Additions are not found, VirtualBox may prompt you to access Internet and download the ISO
file. You only have to do this once. Unfortunately, I do not have a screenshots to share on this one.

Alternatively, you can download the image yourself and then manually mount it as a CD-ROM, under the
Settings for the particular virtual machine.

Then, the next time you launch the virtual machine, the Guest Additions will be mounted as a CD-ROM. To install
the Additions, on Windows, double-click the executable; on Linux, run the scripts as demonstrated above.

From here, you’re on common grounds.

How to Install VirtualBox Guest Additions in Ubuntu

by Aaron Kili | Published: July 3, 2018 | Last Updated: May 28, 2020

VirtualBox Guest Additions are a collection of device drivers and system applications designed to achieve closer integration between the host and guest operating systems. They help to enhance the overall interactive performance and usability of guest systems.

The VirtualBox Guest Additions offer the following features:’

  • Easy mouse pointer integration.
  • Easy way to share folders between the host and the guest.
  • Drag and drop feature allows copying or opening files, copy clipboard formats from the host to the guest or from the guest to the host.
  • Share clipboard (for copy and paste) of the guest operating system with your host operating system.
  • Better video support provides accelerated video performance.
  • Better Time synchronization between guest and host.
  • Standard host/guest communication channels.
  • Seamless Windows features allows you to run windows of your guest operating system seamlessly next to the windows of your host.

The VirtualBox Guest Additions should be installed inside a virtual machine after the guest operating system has been installed.

In this article, we will explain how to install VirtualBox Guest Additions on Ubuntu and Debian based distributions such Linux Mint.

How to Install VirtualBox Guest Additions in Ubuntu

1. First start by updating your Ubuntu guest operating system software packages using following command.

2. Once upgrade completes, reboot your Ubuntu guest operating system to effect the recent upgrades and install required packages as follows.

3. Next, from the Virtual Machine menu bar, go to Devices => click on Insert Guest Additions CD image as shown in the screenshot. This helps to mount the Guest Additions ISO file inside your virtual machine.

Install Virtualbox Guest Additions

4. Next, you will get a dialog window, prompting you to Run the installer to launch it.

Run VirtualBox Guest Additions

5. A terminal window will be opened from which the actual installation of VirtualBox Guest Additions will be performed. Once the installation is complete, press to close the installer terminal window. Then power off your Ubuntu guest OS to change some settings from VirtualBox manager as explained in the next step.

Install VirtualBox Guest Additions

6. Now to enable Shared Clipboard and Drag’n’Drop functionality between Guest and Host Machine. Go to General => Advanced and enable the two options (Shared Clipboard and Drag’n’Drop) as you wish, from the drop down options. Then click OK to save the settings and boot your system, login and test if everything is working fine.

Enable Shared Clipboard in Virtualbox

Congratulations! You have successfully installed VirtualBox Guest Additions on Ubuntu and Debian based distributions such Linux Mint.

If you face any problems during installation, use the feedback form below to ask any questions or share your thoughts about this article.

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.

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, поэтому нет смысла скачивать что-либо дополнительно с официального сайта разработчика. Для установки нужно только подключить уже скаченный пакет:

  1. Остановите уже запущенную виртуальную машину в интерфейсе VirtualBox. Для этого нажмите правой кнопкой мыши по нужной операционной системе и выберите из контекстного меню пункт «Отключить».
  2. Выберите нужную машину и нажмите на кнопку «Настройки», что расположена в верхнем меню интерфейса.

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

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

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

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

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

В качестве альтернативы этой инструкции можно воспользоваться ещё этой, но при этом виртуальная машина должна быть запущена и полностью работоспособна:

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

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

Установка из образа

Процесс установки выглядит следующим образом:

  1. Откройте смонтированный образ.
  2. Здесь запустите файл установщика. Всего их три: универсальный, для 64-битных систем и 32-битных систем. Последние два имеют соответствующие приписки в наименовании файла.

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

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

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

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

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

В установки дополнения VirtualBox Guest Additions нет ничего сложного, особенно, если у вас есть опыт взаимодействия с виртуальными машинами.

Set optimal framebuffer resolution

This article or section is a candidate for merging with .

Typically after installing Guest Additions, a fullscreen Arch guest running X will be set to the optimal resolution for your display; however, the virtual console’s framebuffer will be set to a standard, often smaller, resolution detected from VirtualBox’s custom VESA driver.

To use the virtual consoles at optimal resolution, Arch needs to recognize that resolution as valid, which in turn requires VirtualBox to pass this information along to the guest OS.

First, check if your desired resolution is not already recognized by running the command ( need to be installed):

hwinfo --framebuffer

If the optimal resolution does not show up, then you will need to run the tool on the host machine and add «extra resolutions» to your virtual machine (on a Windows host, go to the VirtualBox installation directory to find ). For example:

$ VBoxManage setextradata "Arch Linux" "CustomVideoMode1" "1360x768x24"

The parameters «Arch Linux» and «1360x768x24» in the example above should be replaced with your VM name and the desired framebuffer resolution. Incidentally, this command allows for defining up to 16 extra resolutions («CustomVideoMode1» through «CustomVideoMode16»).

Afterwards, restart the virtual machine and run once more to verify that the new resolutions have been recognized by your guest system (which does not guarantee they will all work, depending on your hardware limitations).

Note: As of VirtualBox 5.2, might not show any output, but you should still be able to set a custom resolution following this procedure.

Finally, add a kernel parameter to set the framebuffer to the new resolution, for example:

video=1360x768

Additionally you may want to configure your bootloader to use the same resolution. If you use GRUB, see .

Note: Neither the kernel parameter nor the bootloader’s resolution settings (e.g. GRUB’s ) will fix the framebuffer, since they are overriden by virtue of Kernel Mode Setting. The framebuffer resolution must be set by the kernel parameter as described above.

Installing VirtualBox Guest Additions on Ubuntu

The scenario here is that you have Ubuntu Linux installed inside VirtualBox. The host system could be any operating system.

I’ll demonstrate the installation process on a minimal install of a Ubuntu virtual machine. First run your virtual machine:

VirtualBox Ubuntu Virtual Machine

To get started, select Device > Insert Guest Additions CD image…:

Insert Guest Additions CD Image

This will provide you with the required installer inside the guest system (i.e. the virtual operating system). It will try auto-running, so just click Run:

AutoRun Guest Additions Installation

This should open up the installation in a terminal window. Follow the on-screen instructions and you’ll have the Guest Additions installed in a few minutes at most.

Troubleshooting tips:

If you get an error like this one, it means you are missing some kernel modules (happens in some cases, such as minimal installs):

Error while installing Guest Additions in Ubuntu

You need to install a few more packages here. Just to clarify, you need to run these commands in the virtual Ubuntu system:

Now run the Guest Addition setup again:

Download Page for virtualbox-guest-additions-iso_5.2.11-122181-1_all.deb

If you are running Ubuntu, it is strongly suggested to use a package manager like aptitude or synaptic to download and install packages, instead of doing so manually via this website.

You should be able to use any of the listed mirrors by adding a line to your /etc/apt/sources.list like this:

deb http://cz.archive.ubuntu.com/ubuntu bionic main multiverse

Replacing cz.archive.ubuntu.com/ubuntu with the mirror in question.

You can download the requested file from the pool/multiverse/v/virtualbox-guest-additions-iso/ subdirectory at any of these sites:

North America

  • mirrors.kernel.org/ubuntu
  • ftp.osuosl.org/pub/ubuntu
  • lug.mtu.edu/ubuntu
  • ubuntu.mirrors.tds.net/ubuntu
  • ubuntu.secs.oakland.edu
  • mirror.mcs.anl.gov/pub/ubuntu
  • mirrors.cat.pdx.edu/ubuntu
  • ubuntu.cs.utah.edu/ubuntu
  • ftp.ussg.iu.edu/linux/ubuntu
  • mirrors.xmission.com/ubuntu
  • mirrors.cs.wmich.edu/ubuntu
  • gulus.USherbrooke.ca/pub/distro/ubuntu

Asia

  • kr.archive.ubuntu.com/ubuntu
  • th.archive.ubuntu.com/ubuntu
  • mirror.lupaworld.com/ubuntu
  • kambing.vlsm.org/ubuntu
  • ubuntu.mithril-linux.org/archives
  • mirror.in.th/ubuntu
  • mirror.rootguide.org/ubuntu

Africa

za.archive.ubuntu.com/ubuntu

Europe

  • cz.archive.ubuntu.com/ubuntu
  • de.archive.ubuntu.com/ubuntu
  • dk.archive.ubuntu.com/ubuntu
  • es.archive.ubuntu.com/ubuntu
  • fr.archive.ubuntu.com/ubuntu
  • ge.archive.ubuntu.com/ubuntu
  • gr.archive.ubuntu.com/ubuntu
  • hr.archive.ubuntu.com/ubuntu
  • mt.archive.ubuntu.com/ubuntu
  • nl.archive.ubuntu.com/ubuntu
  • no.archive.ubuntu.com/ubuntu
  • se.archive.ubuntu.com/ubuntu
  • yu.archive.ubuntu.com/ubuntu
  • nz.archive.ubuntu.com/ubuntu
  • nz2.archive.ubuntu.com/ubuntu
  • ftp.iinet.net.au/pub/ubuntu
  • mirror.optus.net/ubuntu
  • ftp.filearena.net/pub/ubuntu
  • mirror.pacific.net.au/linux/ubuntu

If none of the above sites are fast enough for you, please see our complete mirror list.

Note that in some browsers you will need to tell your browser you want the file saved to a file. For example, in Firefox or Mozilla, you should hold the Shift key when you click on the URL.

More information on virtualbox-guest-additions-iso_5.2.11-122181-1_all.deb:

Exact Size 38955904 Byte (37.2 MByte)
MD5 checksum a6094fffc58ec6cef78661cce40c99ba
SHA1 checksum 7172992d808c8fa7d0f2eca3dcbf55be579483ad
SHA256 checksum 515f4e2105fa593ddbfb43340553d24c1cbe855641377819e8c51d5e1f68388a

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.

Страница загрузки пакета virtualbox-guest-additions-iso_6.1.16-1_all.deb

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

Используйте любой из серверов-зеркал, добавив его в свой файл /etc/apt/sources.list, например так:

deb http://cz.archive.ubuntu.com/ubuntu groovy main multiverse

Заменив cz.archive.ubuntu.com/ubuntu нужным сервером.

Вы можете скачать требуемый файл из подкаталога pool/multiverse/v/virtualbox-guest-additions-iso/ с любого из этих сайтов:

Северная Америка

  • mirrors.kernel.org/ubuntu
  • ftp.osuosl.org/pub/ubuntu
  • lug.mtu.edu/ubuntu
  • ubuntu.mirrors.tds.net/ubuntu
  • ubuntu.secs.oakland.edu
  • mirror.mcs.anl.gov/pub/ubuntu
  • mirrors.cat.pdx.edu/ubuntu
  • ubuntu.cs.utah.edu/ubuntu
  • ftp.ussg.iu.edu/linux/ubuntu
  • mirrors.xmission.com/ubuntu
  • mirrors.cs.wmich.edu/ubuntu
  • gulus.USherbrooke.ca/pub/distro/ubuntu

Азия

  • kr.archive.ubuntu.com/ubuntu
  • th.archive.ubuntu.com/ubuntu
  • mirror.lupaworld.com/ubuntu
  • kambing.vlsm.org/ubuntu
  • ubuntu.mithril-linux.org/archives
  • mirror.in.th/ubuntu
  • mirror.rootguide.org/ubuntu

Африка

za.archive.ubuntu.com/ubuntu

Европа

  • cz.archive.ubuntu.com/ubuntu
  • de.archive.ubuntu.com/ubuntu
  • dk.archive.ubuntu.com/ubuntu
  • es.archive.ubuntu.com/ubuntu
  • fr.archive.ubuntu.com/ubuntu
  • ge.archive.ubuntu.com/ubuntu
  • gr.archive.ubuntu.com/ubuntu
  • hr.archive.ubuntu.com/ubuntu
  • mt.archive.ubuntu.com/ubuntu
  • nl.archive.ubuntu.com/ubuntu
  • no.archive.ubuntu.com/ubuntu
  • se.archive.ubuntu.com/ubuntu
  • yu.archive.ubuntu.com/ubuntu
  • nz.archive.ubuntu.com/ubuntu
  • nz2.archive.ubuntu.com/ubuntu
  • ftp.iinet.net.au/pub/ubuntu
  • mirror.optus.net/ubuntu
  • ftp.filearena.net/pub/ubuntu
  • mirror.pacific.net.au/linux/ubuntu

Если загрузка с этих сайтов происходит медленно, попробуйте другие из полного списка серверов-зеркал.

Заметим, что при работе с некоторыми браузерами вам придётся указать браузеру, что вы хотите сохранить информацию в файл. Например, в Firefox или Mozilla вам нужно удерживать клавишу Shift при щелчке по URL.

Подробней о virtualbox-guest-additions-iso_6.1.16-1_all.deb:

Точный размер 44741068 байт (42,7 MByte)
Контрольная сумма MD5 e97320e834b57281d5952f2c45eb0cab
Контрольная сумма SHA1 12d02cbbb1040be962e9b6e4df69450839a7fdfe
Контрольная сумма SHA256 efdd8e88e427f78a8643b558e58cc8cf5fb31aff166f87a7e2196989afb3b05f

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

Я продемонстрирую процесс установки на минимальной установке для виртуальной машины с Ubuntu. Сначала запустите вашу виртуальную машину:

Виртуальная машина с Ubuntu Linux

Для начала выберите Devices > Insert Guest Additions CD image… :

Вставка образа компакт-диска «Гостевого дополнения»

Это предоставит вам необходимый установщик в гостевой системе (то есть виртуальной операционной системы). Он попытается запустится автоматически, поэтому просто нажмите Run:

Автоматический запуск образа диска «Гостевого дополнения»

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

Советы по устранению неполадок

Если вы получаете ошибку, подобную этой, это означает, что вам не хватает некоторых модулей ядра (в некоторых случаях, например, при минимальной установке):

Вам придётся установить еще несколько пакетов. Для этого вам нужно запустить следующие команды в виртуальной системе Ubuntu:

sudo apt install build-essential dkms linux-headers-generic

И запустите повторную установку:

sudo rcvboxadd setup

How to Install VirtualBox’s Guest Additions

It’s easy to install the Guest Additions on your VirtualBox system. In fact, every time VirtualBox receives an update, it includes a new version of the Guest Additions too. You don’t necessarily need to update the Guest Additions every time you update VirtualBox, but Oracle recommends it for best performance.

Keep in mind that the Guest Additions are available for Windows and Linux, but not macOS. You’ll need other workarounds if you’re running macOS in a virtual machine.

Install Guest Additions on Windows VMs

To install the Guest Additions for VirtualBox in a Windows VM, boot into your guest OS as normal. On the toolbar at the top, select Devices > Insert Guest Additions CD Image. This mounts a virtual disc to the VM.

When you do this, Windows will respond as if you’ve just inserted a physical disc. If it doesn’t prompt you to run it, open a File Explorer window and go to This PC. You should see a device in the CD Drive named something like VBox_GAs_x.

Double-click this to open the disc’s contents. Inside, run the VBxWindowsAdditions file (or VBxWindowsAdditions-x86 on a 32-bit VM).

From there, simply walk through the steps to install the Guest Additions like you would any other software. After it completes, you’ll be prompted to reboot the VM, which you should do as soon as possible.

Once you’re done, you can go to Devices > Optical Drives > Remove disk from virtual drive to «eject» the virtual Guest Additions disc.

Install Guest Additions on Linux VMs

The process to install VirtualBox’s Guest Additions into a Linux VM is quite similar. Once you’ve booted up, select Devices > Insert Guest Additions CD Image from VirtualBox’s menu bar. Depending on your flavor of Linux, you may see a message to automatically run the CD’s contents.

You can accept this, but if you don’t, you’ll find the CD available on the taskbar in many Linux distros. If it doesn’t appear there, open the file browser and look for VBox_GAs_x on the left sidebar.

On Ubuntu, a Run Software button appears at the top-right of the window. Click this to start the install process, then provide your admin password to continue. A Terminal window will open to keep you updated with its progress.

Once it’s done, reboot the VM and you’re all set. You can then eject the disk using the Devices > Optical Drives > Remove disk from virtual drive option, or by right-clicking it in your OS and choosing Eject.

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

Configure Shared Clipboard (for copy-pasting)

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).

Download VirtualBox

Before we providing you an installer files of virtualbox guest additions, please download the master of virtualbox installation file on below if you don’t have it. On this page you will find the last version of virtualbox for windows/mac/linux, and the old version of virtualbox.

VirtualBox for Windows

On below you will find the installation file of VirtualBox for Windows 10 64 bit and 32 bit. This executable file is also compatible for windows 7 and windows 8 version.

File Name Version Last Update File Size
(Open the link to download)
VirtualBox-6.0.4-128413-Win.exe 6.0 28-Jan-2019 23 MB
VirtualBox-5.2.26-128414-Win.exe 5.2 28-Jan-2019 110 MB
VirtualBox-5.1.38-122592-Win.exe 5.1 09-May-2018 119 MB
VirtualBox-5.0.40-115130-Win.exe 5.0 28-Apr-2017 109 MB
VirtualBox-4.3.40-110317-Win.exe 4.3 22-Aug-2016 99 MB
VirtualBox-4.2.38-110681-Win.exe 4.2 14-Sep-2016 102 MB
VirtualBox-4.1.44-104071-Win.exe 4.1 11-Nov-2015 98 MB
VirtualBox-4.0.36-104075-Win.exe 4.0 11-Nov-2015 88 MB

VirtualBox for MAC

File Name Version Last Update File Size
(Open the link to download)
VirtualBox-6.0.4-128413-OSX.dmg 6.0 28-Jan-2019 158 MB
VirtualBox-5.2.26-128414-OSX.dmg 5.2 28-Jan-2019 92 MB
VirtualBox-5.1.38-122592-OSX.dmg 5.1 09-May-2018 91 MB
VirtualBox-5.0.40-115130-OSX.dmg 5.0 28-Apr-2017 87 MB
VirtualBox-4.3.40-110317-OSX.dmg 4.3 22-Aug-2016 104 MB
VirtualBox-4.2.38-110681-OSX.dmg 4.2 14-Sep-2016 108 MB
VirtualBox-4.1.44-104071-OSX.dmg 4.1 11-Nov-2015 99 MB
VirtualBox-4.0.36-104075-OSX.dmg 4.0 11-Nov-2015 87 MB

VirtualBox for Linux

Please choose the installation file that fit with your Linux OS

File Name Version OS File Size
(Open the link to download)
virtualbox-6.0_6.0.4-128413~Ubuntu~bionic_amd64.deb 6.0 Ubuntu 124 MB
virtualbox-6.0_6.0.4-128413~Debian~jessie_amd64.deb 6.0 Debian 130 MB
VirtualBox-6.0-6.0.4_128413_openSUSE132-1.x86_64.rpm 6.0 Open Suse 130 MB
VirtualBox-6.0.4-128413-Linux_amd64.run 6.0 Linux 148 MB
VirtualBox-6.0-6.0.4_128413_fedora26-1.x86_64.rpm 6.0 Fedora 130 MB
VirtualBox-6.0.4-128413-SunOS.tar.gz 6.0 SunOS 159 MB

Installing Guest Additions from Virtual Box Manager

In case the Guest Additions fail to build we may have to install the Linux kernel headers (see How do I install kernel header files?) or build-essential

dkms

Selecting Devices -> Install Guest Additions (or press Host + D from the Virtual Box Manager) the Guest Additions CD .iso will be loaded but not installed in your guest OS. To install we need to run the installer script VBoxLinuxAdditions.run as root or from the Autorun Prompt (see below).

GNOME Shell

To install the Guest Additions we will have a CD icon on our desktop as soon as the virtual drive is mounted:

autorun.shmounted

Unity

The guest additions is mounted as a virtual CD visible on the launcher:

In case the system is set up to autorun a CD it should just open the following autorun dialogue (if not select the CD symbol, choose open, then choose Open Autorun Prompt)

After having entered your credentials for root access the guest additions will build as seen from the terminal output:

Press Return to close the terminal.

Note 2 In some systems the Virtual Box Guest Additions CD icon may not be shown on the desktop, but will be accessible from the Places menu. If the CD still was not there you may have to manually add the VBoxGuestAdditions.iso as a CD-ROM in the Virtual Box Manager Storage menu. In an Ubuntu host the disk image is in /usr/share/virtualbox/VBoxGuestAdditions.iso .

Note 3 In some systems (e.g. when running Xubuntu guests) we may not have an Autorun Prompt for the mounted CD. Then we can install the guest additions by opening a terminal on the mounted guest additions .iso to run sudo ./VBoxLinuxAdditions.run . In Lubuntu or Ubuntu Server guests we additionally need to install the GNU C compiler (gcc

Note 4 Running DKMS in the guest OS will keep Guest Additions installed after a guest kernel update. It is not a prerequisite for Guest Additions but if used it should be installed before we install the Guest Additions.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *

Adblock
detector