Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 serverfault.com Jul 27 '12 at 20:17

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

3 Answers 3

You can check if the modules are present.


sudo modprobe vboxadd


sudo modprobe vboxvfs

or you can search for these files

sudo find /etc -name "*vbox*"

and see if you get any output...

You'll get an error if the module isn't present . Chances are VirtualBox additions are not installed..

share|improve this answer

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

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

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.