Lidtracker.ru

Лид Трэкер
5 просмотров
Рейтинг статьи
1 звезда2 звезды3 звезды4 звезды5 звезд
Загрузка...

How to Install Guest Additions on Windows Operating Systems in Oracle VM VirtualBox

How to Install Guest Additions on Windows Operating Systems in Oracle VM VirtualBox

In this article, we will examine how to install VirtualBox Guest Additions for Windows Guest virtual machines installed on the Oracle VM virtualization program.

How to Install Guest Additions on Windows Operating Systems in Oracle VM VirtualBox

How to Build Guest Additions on Windows Operating Systems in Oracle VM VirtualBox

With Oracle VM VirtualBox , you can install Windows, Linux, and even MacOS operating systems by creating virtual machines on your physical computer.

After creating a new VM with VirtualBox, you will need to add the ISO file of the operating system to the CD/DVD partition. For example, after you add the Windows 10 ISO to the VM, you can start the operating system setup by running the VM.

However, after you setup Windows or Linux operating system with VBox, you need to add Guest Additions. In this article, we will review how to setup Guest Additions for Windows Hosts on Oracle VM software.

First of all, let’s talk briefly about what is VirtualBox Guest Software.

What is Guest Additions in VirtualBox?

Guest Software is an additional software for a virtual pc installed and running on the Oracle VM VBox program. Thanks to this package, additional features are added to virtual machines. For example, you can exchange files with your physical computer or use virtual computers in Full Screen Mode, Seamless Mode, and Scaled Mode.

How to Setup Guest Software for Windows Virtual Machine

Adding Oracle Client Packages on a Windows VM is simple and easy. Now, let’s install it for a VM step by step.

Follow the steps below in order to build VBox additions in Oracle software.

Step 1

After setting up a new VM with Oracle VBox click on Devices and then Insert Guest Additions CD image…

Insert Guest Additions CD image.

Step 2

If the Software setup wizard does not start, click on This Computer and then double click on the CD drive.

VirtualBox Guest Additions

Step 3

In the Oracle VM Additions setup wizard, click Next.

Guest Additions Setup Wizard

Step 4

Do not change the setup location to avoid possible errors when installing additional software. Click Next to continue.

Setup Wizard

Step 5

In the Choose Component window, select the features to be installed as follows and click on the Install button to continue.

Choose Components

Step 6

Wait while client software is installed.

Installing VirtualBox Driver Sofware

Step 7

After completing client software, restart the VM for the changes to take effect.

Reboot Now

Step 8

After setting up client software for Windows Hosts, you can use the VM in full-screen mode. You can also transfer your files between your host and the virtual machine by using the drag-and-drop method.

Virtual Machine Screen Resolution

Final Word

In this article, we have discussed how to install Guest Additions, an additional software for the Oracle VM virtualization program. Thanks for following us!

How do I install VirtualBox Guest Additions on Windows 7?

Introduction
What is VirtualBox? VirtualBox is a virtualization software that allows one to run an operating system while simultaneously running their main operating system. Simply said, you can have Windows XP running at the same time on your Windows 7 desktop. This is not to be confused with dual booting, which involves having both operating systems installed on the system, and only having one operating system running at once. The OS is generally virtualized (or simply emulated), and is called the guest. The host machine, the OS that you are using to run VirtualBox, emulates the guest machine. This setup is used to concurrent run two or more operating systems without having to switch between computers or operating systems on the same system.

What is VirtualBox Guest Additions? VirtualBox Guest Additions is extra software that can be installed inside the OS running inside of the virtual machine,at or the guest machine. While VirtualBox generally does a good job of running the guest OS, it has some limitations. VirtualBox Guest Additions is software that makes up for those deficiencies and adds additional integration features, such as the infamous Seamless mode offered by VirtualBox. Even Windows Aero works nicely on Linux, thanks to VirtualBox Guest Additions!

That said, let’s get started!

  • VirtualBox, latest version. You can get the latest release here.
    Fresh install of Windows 7, any version, inside the guest machine. Any install configuration will work as long as it is a fresh install, and Windows 7 can boot.
    A graphics card capable of handling Windows Aero, plus any features for any software that will be run on Windows 7. Since the support depends on your hardware, poor graphics hardware will not be able to run Windows Aero.

That said, let’s get started!

Steps:
(Note: The screenshots below were taken on Linux. Things should be pretty much the same as on other operating systems, but there may be slight differences depending on your software and hardware configuration.)

Читать еще:  Как удалить виртуальный диск на Windows 10

1) Boot up your guest virtual machine.
Boot up your guest virtual machine to the desktop.

2) In the VirtualBox menu, click Devices > Insert Guest Additions CD image. .

3) In a moment, a box should pop up asking you about the VirtualBox Guest Additions CD. Click Run VBoxWindowsAdditions.exe.

4) In the box that pops up, click Yes.

5) You should now see the setup wizard. Click Next > and accept any license agreement(s) that follow.

6) You should now be at the install location part. Click Next > to accept the default location.

7) You should now be at the component selection part.
If you wish to enable 3D hardware acceleration, continue. Otherwise, skip to step 8.

To enable 3D hardware acceleration, check the box labeled Direct3D Support (Experimental).

You should now see a confirmation dialog.

If you want to enable Windows Aero and some advanced features (such as graphics shaders), click No.
You will then see the following dialog:

If not, click Yes. You will then be prompted to restart into safe mode. Restart into safe mode, and redo the above steps.
(The rest of the tutorial assumes that advanced graphics support is enabled.)

8) Once done, click Install.

9) During the installation, you may receive device driver installation dialogs. Click Install for all of them.

10) Allow it to reboot immediately — simply click Finish.

11) Now VirtualBox Guest Additions should be installed. If you did not enable advanced 3D hardware acceleration, you’re done! Otherwise, continue on!

  • ■Ensure that the video memory is at least 128 MBs, if not more. We chose 256 MBs, the max. You can adjust based on your usage.
    ■Check the box labeled Enable 3D Acceleration.

13) Turn on the guest virtual machine again. Right click on the desktop and select Personalization.

14) Click on the Windows 7 theme under Aero Themes.

15) Now Windows Aero should be enabled!

Conclusion
Your Windows 7 is now ready to go! Hopefully you learned a bit from this tutorial, and enjoy your VirtualBox Guest Addition enhanced Windows 7!

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

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

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

Кроме того, Guest Additions позволяет подключить видеодрайвер, который дает возможность менять расширение экрана виртуальной машины через апплет «Персонализация».

Образ с дополнениями входит в состав дистрибутива VirtualBox, загружаемого с официального сайта, дополнительно его скачивать не нужно.

Подключение образа

Есть два способа подключить образ.

Способ 1: Настройки виртуальной машины

Первый – через настройки виртуальной машины в менеджере. Машина при этом должна быть остановлена.
1. Выбираем нужную машину в списке и нажимаем «Настроить».

Настройка VirtualBox

2. Переходим на вкладку «Носители», выделяем виртуальный CD привод и нажимаем на значок выбора образа. Затем выбираем пункт «Выбрать образ оптического диска».

Выбор образа диска VirtualBox
Выбор образа диска VirtualBox (2)

3. В открывшемся окне находим образ дополнений. Он находится в корне папки с установленной VirtualBox.

Выбор образа диска VirtualBox (3)

4. Образ смонтирован, теперь запускаем виртуальную машину.

Выбор образа диска VirtualBox (4)

5. Открываем папку «Компьютер» (в виртуалке) и видим смонтированный образ.

Образ дополнений в папке Компьютер VirtualBox

Такое решение является универсальным для подключения образов дисков к виртуальным машинам. Оно может пригодиться в случае, если Вы подключаете образ, не входящий в состав дистрибутива.

Способ 2: Подключение внутри гостевой ОС

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

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

Подключение образа Дополнений гостевой ОС VirtualBox

Как и в предыдущем варианте, образ появится в папке «Компьютер» на виртуалке.

Установка

1. Открываем смонтированный диск с дополнениями и запускаем файл VBoxWindowsAdditions. Здесь также возможны варианты: можно запустить универсальный установщик, либо выбрать версию, учитывая разрядность гостевой операционной системы.

Установка дополнений гостевой ОС VirtualBox

2. В открывшемся окне установщика нажимаем «Далее».

Установка дополнений гостевой ОС VirtualBox (2)

3. Выбираем место для установки. В данном случае ничего не меняем.

Установка дополнений гостевой ОС VirtualBox (3)

4. Здесь видим пустой чекбокс рядом с «Direct 3D Support». Данный драйвер можно установить только в безопасном режиме, поэтому галку не ставим и нажимаем «Install».

Установка дополнений гостевой ОС VirtualBox (4)

5. В процессе установки несколько раз появится окно с предложением подтвердить установку драйверов. Везде соглашаемся.

Установка дополнений гостевой ОС VirtualBox (5)

6. По завершению установки VirtualBox предложит перезагрузить машину. Это необходимо сделать.

Установка дополнений гостевой ОС VirtualBox (6)

На этом процесс установки VirtualBox Guest Additions завершен. Теперь можно менять разрешение экрана, создавать общие папки и выходить в интернет с виртуальной машины.

ЗакрытьМы рады, что смогли помочь Вам в решении проблемы.

Помимо этой статьи, на сайте еще 12351 инструкций.
Добавьте сайт Lumpics.ru в закладки (CTRL+D) и мы точно еще пригодимся вам.

Отблагодарите автора, поделитесь статьей в социальных сетях.

ЗакрытьОпишите, что у вас не получилось. Наши специалисты постараются ответить максимально быстро.

Читать еще:  Как на Windows (Виндовс) поменять курсор мыши?

Ubuntu 16.04: Install VirtualBox Guest Additions

This article will describe installing Guest Additions on Ubuntu 16.04.

Table of Contents

  • 1. What is Guest Additions
  • 2. Install kernel header
  • 3. Mount Guest Additions CD image
  • 4. Build Guest Additions
    • 4.1. Build failure
    • 4.2. Guest Additions not work after kernel update

    1 What is Guest Additions

    This is for improvement of video performance, sharing directory, and sharing copy/paste clip board.

    There is only 2 resolutions of display like 1024×768 and 800×600 before installing Guest Additions, you can select a certain resolution what you want after installing.

    0001_Resolution-before-install.png

    Guest Additions has virt drivers. You need to build drivers.

    2 Install kernel header

    Install linux-headers-generic package with apt.

    If you use RedHat, please install kernel-devel package.

    3 Mount Guest Additions CD image

    Insert iso file of VirtualBox Guest Additions from window menu of VirtualBox.

    If an automount is running, an automount will mount CD image to /media/<username>/<virtualbox> automatically.

    0002_Automount.png

    If an automount is not running, mount CD image manually.

    4 Build Guest Additions

    If an automount is running, a dialog will be pop and Selecting «Run» will start to build Guest Additions with sudo password.

    0003_Run.png

    «Press Return to close this window…» message is displayed when installation is completed.

    0004_Complete.png

    You can start to build Guest Additions from terminal manually.

    4.1 Build failure

    Driver code of Guest Additions may be not compatibled with kernel.

    For example, when a function which is used by Guest Additions is not defined at kernel no longer, undefined symbol error will be occured.

    Please check update of VirtualBox for fixing error.

    If you cannot find any update for fixning error, you need to fix driver code manually or wait for update.

    4.2 Guest Additions not work after kernel update

    Current Guest Additions’s driver supports dkms and driver will be built after kernel update automatically.

    You do not need to rebuild driver for each update.

    Guest Additions does not work after kernel update, it means that there is a compatible problem.

    Please build drive manually and check update for fixing it.

    5 Execution result

    Restart Ubuntu 16.04 after installation is completed.

    Check whether driver which has a vbox prefix is loaded.

    Resolution number of display is changed 2 kinds to all.

    When you change VirtualBox window size, a resolution of Ubuntu 16.04 will be chagned automatically.

    Install VirtualBox guest additions in Debian 10

    The VirtualBox guest additions comprise of a driver collection that improves the integration between the host and the guest. It makes it easier and more enjoyable to work with your virtual machine. For example, it allows you to resize the screen and share folders and a clipboard between the host and the guest. This article shows you how to install the VirtualBox guest additions in Debian 10.

    Background

    After installing your shiny new Linux operating system as a virtual machine in VirtualBox, you boot it up for the first time. The login manager appears and with full anticipation you log in and wait for your desktop environment to show up. The virtual machine window looks a bit small, so you resize or maximize its window. But wait..your screen didn’t resize!

    Does this scenario sound familiar? The cause of this problem is that the optimal video driver is not yet installed. The VirtualBox guest additions contains this (and other) drivers to improve the integration between the host and the guest. This article explains step-by-step how to install the VirtualBox guest additions in Debian 10. It assumes that you have a freshly installed Debian 10 virtual machine with desktop environment. I installed Gnome in my virtual machine. However, your can of course install whatever desktop environment your prefer.

    Even though the instructions presented in this article target a Debian 10 virtual machine, the concept applies to other Linux distributions as well. You just need to adjust some of the commands to make it work for other Linux distributions.

    VirtualBox guest additions

    The VirtualBox Guest additions is a collection of drivers that can be installed in the guest virtual machine. Some example functionality included in the guest additions:

    • A better video driver that enables you to resize the virtual machine window or work with it in full screen mode.
    • A shared clipboard can be enabled in your virtual machine for copy-pasting text between the host and the guest.
    • Any directory on your host can be configured as a shared folder, allowing you to access it from the guest.

    VirtualBox ships with an ISO image containing the VirtualBox guest additions. Think of it as a CD-ROM that you can virtually insert into your virtual machine. It contains a script for building and installing the guest additions relatively easy. I can highly recommend that you install the VirtualBox guest additions in Debian right after you booted up the virtual machine for the first time.

    Note that you only really need the VirtualBox guest additions if you installed Debian with a desktop environment. If you installed your Linux virtual machine as a server, you do not need them. In this case you would primarily interact with it through either SSH or probably a web-based administration interface. In this case the added functionality of the VirtualBox guest additions doesn’t really result in added benefits for you.

    Operating system update

    Start by booting up your Debian virtual machine and log into the desktop environment. Before we install anything, we should first update the system. In order to do this, open up the terminal and run the following two commands:

    sudo apt update

    sudo apt upgrade

    Installing dependencies

    The drivers included in the VirtualBox guest additions are basically Linux kernel modules. Kernel modules allow you to extend the Linux kernel, without the inconvenience of having the reconfigure and rebuild the kernel entirely.

    During the installation process of the VirtualBox guest additions, the included kernel modules are rebuilt, specifically for the current version of your Linux kernel. Building Linux kernel modules requires the installation of a few packages. Therefore we continue with the installation of these package dependencies, before we attempt to install the VirtualBox guest additions. Proceed by running the following command to install all needed dependencies:

    sudo apt install build-essential dkms linux-headers-$(uname -r)

    Terminal screenshot that show how to install the dependencies with apt that are needed to install the VirtualBox guest additions

    Insert the VirtualBox guest additions CD

    As mentioned in the beginning of this article, the VirtualBox guest additions are located on a CD image. To access the CD contents, we need to insert the CD into the virtual CD-ROM drive of your virtual machine. Simply select DevicesInsert Guest Additions CD Image… to insert this CD-ROM into the virtual CD drive:

    Virtual machine screenshot that show you how to insert the guest additions CD image through the VirtualBox menu

    After inserting the CD-ROM, Debian automatically mounts the CD-ROM for you. While doing so, it attempts to automatically run software on the CD-ROM. Click Cancel on these dialogs.

    Theoretically, we do need to run this software for installing the VirtualBox guest additions, but the installation needs to be done with super user privileges. Therefore, we cancel the installation now. Later on we will start the installation manually from the terminal, where we can use sudo to perform the installation with super user privileges.

    Determine the CD-ROM mount point

    Since we plan on starting the installation of the VirtualBox guest additions manually from the terminal, we need to determine the directory where the CD-ROM was automatically mounted to. The CD-drive is a read-only block device under Linux. As such we can use the lsblk command to determine the mount point. Open up the terminal and run the following command:

    lsblk | grep «rom»

    Terminal screenshot that show the output of the lsblk | grep "rom" command. It is used to determine to which directory the VirtualBox guest additions CD image got mounted.

    From the command output we can extract that Debian mounted the CD-ROM with the VirtualBox guest additions to directory /media/cdrom0 .

    It is possible that Debian did not automatically mount the CD-ROM. In this case refer to this article. It contains instructions on how to create a mount point and then manually mount the CD-ROM in the virtual CD-drive.

    Install the VirtualBox guest additions

    At this point you completed all preparations to install the VirtualBox guest additions in Debian. To start the installation, all you need to do is open the terminal and run the command:

    sudo sh /media/cdrom0/VBoxLinuxAdditions.run

    Terminal screenshot that shows how to install the VirtualBox guest additions in Debian.

    As noted on the last line in the terminal output, you should restart your Debian virtual machine. Only then will the newly installed kernel modules of the VirtualBox guest additions become functional. For a quick way to initiate a reboot from the terminal, you can run the command:

    After your Debian virtual machine boots up again and you logged into the desktop environment, try maximizing the screen. You’ll notice that your desktop now automatically resizes and adjusts the screen resolution.

    Screenshot of the Debian virtual machine after successful installation of the guest additions. You can see that the screen resolution now automatically adjusts when resizing or maximizing the virtual machine window.

    This proofs that the new video driver is active and consequently that the installation of the VirtualBox guest additions in Debian was successful.

    Wrap up

    After completing the instructions in this article, you managed to install the VirtualBox guest additions in your Debian virtual machine. Resizing the screen and working in full screen mode now works properly and the overall performance of your virtual machine improved. After completing the VirtualBox guest additions installation, you can also try out its other features, such as the shared folders and the shared clipboard between the host and the guest:

    Virtual machine screenshot that highlights the options in the VirtualBox menu related to features that are now available after installing the guest additions.

    PragmaticLinux

    Long term Linux enthusiast, open source software developer and technical writer.

    голоса
    Рейтинг статьи
Ссылка на основную публикацию
ВсеИнструменты
Adblock
detector