Security risk installing Virtualbox guest utils/dkms to build kernel modules?

Discussions about using Linux guests in VirtualBox.
Post Reply
lynda
Posts: 10
Joined: 7. Aug 2019, 17:52

Security risk installing Virtualbox guest utils/dkms to build kernel modules?

Post by lynda »

When installing this VirtualBox Guest Additions on a Xubuntu linux guest VM, I received the following message:
VirtualBox Guest Additions: Building the modules for kernel 6.5.0=15-generic.
This system is currently not set up to build kernel modules.
Please install the gcc make perl packages from your distribution.
It is my understanding I need to install:
virtualbox-guest-utils
virtualbox-guest-dkms <-- Package wasn't found for my distribution. Need dkms instead.
dkms

I do not know what installing the above packages will do, but my main question:
Is there a security risk installing Virtualbox utils/dkms to build/manipulate kernel modules?
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Security risk installing Virtualbox guest utils/dkms to build kernel modules?

Post by scottgus1 »

Official Guest Additions from www.virtualbox.org have prerequisites in Linux, same as Official Virtualbox on the host, see https://www.virtualbox.org/manual/ch04. ... ions-linux and https://www.virtualbox.org/manual/ch02. ... nux-prereq

However, neither Official GAs nor Official Virtualbox require dkms. The Linux forks of GAs and Virtualbox may, though.

If you're using the forks from the Linux distro repositories, you'll have to ask the distro help channels about dkms. If you are using Official, you don't need dkms.
Post Reply