How to install virtualbox guest additions on ubuntu?

Source: Dev.to | Jan 06, 2026 (UTC)

This tutorial assumes that your host operating system is windows 10.

  • Open https://download.virtualbox.org/virtualbox/<virtualbox_version> in your browser by replacing <virtualbox_version> with the version of virtualbox.

  • Click on the .iso file for your virtualbox version (e.g. VBoxGuestAdditions_7.0.12.iso) to download it on windows host.

  • Open Virtualbox UI and press ctrl + D or navigate to File -> Tools -> Virtual Media Manager.

  • Click on Optical disks tab, right click in the window and select Add... option. Select the downloaded .iso file in one of the previous steps.

  • Make sure your virtual machine is turned off.

  • Select your virtual machine in virtualbox and click on Settings.

  • Select Storage in the left menu, click on + icon against Controller: IDE and select the iso file from virutal media manager.

  • Start ubuntu vm.

  • SSH to ubuntu vm, execute blkid command and note down the device name (e.g. /dev/sr0) from the list which has VBox_GAs in the value of LABEL key –

/dev/sr0: BLOCK_SIZE="" UUID="" LABEL="VBox_GAs_7.0.12" TYPE="iso9660"

Enter fullscreen mode

Exit fullscreen mode

sudo mkdir /mnt/cdrom sudo mount /dev/sr0 /mnt/cdrom

Enter fullscreen mode

Exit fullscreen mode

sudo -i apt install bzip2 tar gcc make perl cd /mnt/cdrom sh ./VBoxLinuxAdditions.run

Enter fullscreen mode

Exit fullscreen mode

VirtualBox Guest Additions: Building the modules for kernel 5.15.0-91-generic. update-initramfs: Generating /boot/initrd.img-5.15.0-91-generic VirtualBox Guest Additions: Running kernel modules will not be replaced until the system is restarted or 'rcvboxadd reload' triggered VirtualBox Guest Additions: reloading kernel modules and services VirtualBox Guest Additions: kernel modules and services 7.0.12 r159484 reloaded VirtualBox Guest Additions: NOTE: you may still consider to re-login if some user session specific services (Shared Clipboard, Drag and Drop, Seamless or Guest Screen Resize) were not restarted automatically

Enter fullscreen mode

Exit fullscreen mode

sudo find / -name *folder1*

Enter fullscreen mode

Exit fullscreen mode

For further actions, you may consider blocking this person and/or reporting abuse

Залишити відповідь

Ваша e-mail адреса не оприлюднюватиметься. Обов’язкові поля позначені *

Читайте також