0

I am trying to setup automated mounting of my vbox shared folders. Everything works just fine from my normal user:

$ sudo mount -t vboxsf vagrant /media/sf_vagrant

However if I follow the manual from upstream here, then I cannot even reboot. systemd report an error in Unit media-sf_vagrant.mount. The message states Failed to mount /media/sf_vagrant.

Here is the line I added to fstab (per upstream doc):

$ cat /etc/fstab
[...]
vagrant   /media/sf_vagrant   vboxsf   defaults  0   0

If that matter I am using a debian testing (stretch) on amd64 (aka Debian 8). And the window manager is Xfce.

0

This is not clear why the official documentation does not work for me. But I found the solution reading this.

The solution is a simple one liner on debian:

$ sudo adduser <user> vboxsf

Simple replace <user> with your actual user name, and then reboot.

On fedora:

$ sudo usermod -a -G vboxsf <user>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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