2

I'm trying to use Virtualbox's shared folder functionality, and I can't get the automount folder feature to work.

I've followed directions in various SO/AskUbuntu questions, and it seems like I set up shared folders correctly.

More details:

Mounting the folder with sudo mount -t vboxsf vbox_shared /media/vbox_shared works, including write access.

I've installed Virtualbox Guest Additions, and lsmod | grep vboxguest returns vboxguest 294912 2 vboxsf,vboxvideo.

I've run sudo usermod -G vboxsf -a <username> to add myself to the group.

I've restarted the virtual machine.

In Virtualbox settings, I've set Folder Path: C:\Users\<myusername>\vbox_shared, Folder Name: vbox_shared, Auto-mount and Make Permanent are checked.

Host is Windows 7 Enterprise, Guest is Ubuntu Server 17.10, Virtualbox 5.2.6.

What else could be the cause of this?

migrated from serverfault.com Feb 14 '18 at 20:40

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

2

Automount performed by appropriate systemd unit service:

  • virtualbox-guest-utils.service - if you have installed virtualbox-guest-dkms and virtualbox-guest-utils

or

  • vboxadd-service.service - if you have installed VBoxLinuxAdditions.run from VirtualBox virtual CD.

In the both of the cases appropriate service possible failure to start caused by unit dependecies.

Possible solution:

sudo systemctl edit --full vboxadd-service

or

sudo systemctl edit --full virtualbox-guest-utils

and remove "systemd-timesync.service" from "Conflicts=" line in [Unit] section. Then reboot.

UPDATED If you'll update Virtual Guest Additions you'll possible have to change manually version number in the vboxadd-service. See also selectstriker2 comment below.

  • So I ran into an issue when updating from 5.2.18 to 5.2.22 which caused the vboxadd-service configuration to not update from .18 to .22. This caused vboxadd-service to fail to start. I fixed those lines in the file using this method and was able to get the vboxadd-service to actually start – selectstriker2 Dec 7 '18 at 23:06

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.