Update VirtualBox Guest Additions on openSUSE Leap 42.3

You just updated your VirtualBox to the latest version. But your openSUSE virtual machine is still using the old version of the Guest Additions? This causes VirtualBox to display a nagging message asking you to update.

How do you update the Guest Additions on VirtualBox?

  • Insert the Guest Additions CD image from the Devices menu.
  • Type the command zypper in kernel-devel gcc make.
  • Go to the folder of the Guest Additions and run the installer:
    • sh ./VBoxLinuxAdditions.run

I got the following output:

vhcalnplci:/run/media/pravin/VBox_GAs_5.2.6 # sh ./VBoxLinuxAdditions.run
Verifying archive integrity… All good.
Uncompressing VirtualBox 5.2.6 Guest Additions for Linux……..
VirtualBox Guest Additions installer
Removing installed version 5.2.6 of VirtualBox Guest Additions…
Copying additional installer modules …
Installing additional modules …
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules.
This system is currently not set up to build kernel modules.
Please install the Linux kernel “header” files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
kernel-default-devel kernel-default-devel-4.4.92-31
VirtualBox Guest Additions: Running kernel modules will not be replaced until the system is restarted
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: modprobe vboxsf failed
You may need to restart the Window System (or just restart the guest system)
to enable the Guest Additions.

 

I went to Yast and installed Linux Kernel Development as shown below and rebooted.

Screenshot_20180123_182829.png

But the installer was still giving the same error.

The commands zypper in kernel-devel gcc make also did nothing as the packages were already installed.

Then I ran the command: zypper up

This command updated openSUSE and installed some new packages.

And finally when I rebooted the VM, and checked the version of the Guest Additions, the output was as shown below:

pravin@vhcalnplci:~> sudo /usr/sbin/modinfo vboxguest
[sudo] password for root:
filename: /lib/modules/4.4.104-39-default/misc/vboxguest.ko
version: 5.2.6 r120293
license: GPL
description: Oracle VM VirtualBox Guest Additions for Linux Module
author: Oracle Corporation
srcversion: AFB4A2952FE3E924883277D
alias: pci:v000080EEd0000CAFEsv00000000sd00000000bc*sc*i*
depends:
vermagic: 4.4.104-31-default SMP mod_unload modversions

The Guest Additions had been successfully updated.

 

 

2 thoughts on “Update VirtualBox Guest Additions on openSUSE Leap 42.3

  1. I just installed an OpenSuse 15.1 Leap virtual computer (*.vdi) and VirtualBox Guest Additions 6.0.12 were installed by default. I successfully upgraded to Guest Additions version 6.1.2 as follows…..

    1) In the VirtualBox Window click Devices > Insert Guest Additions CD but don’t run the software if prompted to do so. If the guest VM gives you an error mounting the Guest Additions CD, do the following…..
    a) In the VirtualBox Window click Devices > Optical Drives > Remove disk from virtual drive
    b) If the CD cannot be ejected properly/normally, click on Force Unmount
    c) Then, in the VirtualBox Window, click Devices > Insert Guest Additions CD again (it should now mount)

    2) Go into terminal and give yourself root privileges (su -)

    3) Type the command zypper in kernel-devel gcc make [Enter]. Even though it will likely respond that “make” is already there, when it checks for dependencies it will ask to install 18 additional packages. Click Yes to install the additional packages.

    4) In terminal, navigate to folder where the Guest Additions CD was mounted (/run/media/user_name/VBox_GAs…) and type the command sh ./VBoxLinuxAdditions.run [Enter] to install Guest Additions

    5) Then Reboot the Virtual Computer and afterwards press Right-Ctrl N > Runtime to verify that the correct version of VirtualBox Guest Additions was installed. For me it was!

Leave a comment