Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I tell if the guest additions are installed on a virtualbox vm with no X. I'm having a problem mounting a shared directory and I'd like to rule out the possibility that the guest additions weren't installed.

share|improve this question

migrated from Jul 27 '12 at 20:17

This question came from our site for system and network administrators.

Use "lsmod" from the command line, as it will tell you not only if it's installed, but properly loaded:

$ lsmod | grep -i vbox
vboxsf                 42558  0 
vboxpci                22896  0 
vboxnetadp             25636  0 
vboxnetflt             27291  0 
vboxdrv               299807  3 vboxnetadp,vboxnetflt,vboxpci
vboxvideo              12578  0 
drm                   244037  1 vboxvideo
vboxguest             219348  6 vboxsf
share|improve this answer

You can check if the modules are present.


sudo modprobe vboxadd


sudo modprobe vboxvfs

This will load the guest additions if they're installed (but usually they would be loaded automatically at boot time anyway).

You'll get an error if the module isn't present. That indicates that the VirtualBox guest additions are not installed properly.

Or you can search for the script that loads the modules:

grep vboxadd /etc/init*/*

and see if you get any output.

share|improve this answer
To get the version: /usr/sbin/VBoxService --version – Mike D Nov 28 '15 at 14:18
This answer seems outdated at least for VBox 5.0, I cannot see vboxadd and/or vboxvfs – malat Jan 20 at 10:51

If the extensions were installed using the Ubuntu package repositories (via apt or Synaptic) you can check to see if the packages are currently installed:

dpkg -l | grep virtualbox-guest will list the guest packages that are currently installed.
virtualbox-guest-dkms is the kernel module, and virualbox-guest-utils are the command-line utilities. There may be other packages available (apt-cache search virtualbox-guest will list them).

Feiticeir0's answer will also detect the kernel module (if it was installed manually).
If the guest extensions are not installed you can install them the same way you would any other Ubuntu package.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.