khancock
khancock

Reputation: 147

Vagrant attempted to execute the capability 'mount_virtualbox_shared_folder' error

I'm trying to setup an El Capitan Virtual Machine using Vagrant, and I just keep running into this type of error

"Vagrant attempted to execute the capability 'mount_virtualbox_shared_folder' on the detect guest OS 'darwin', but the guest doesn't support that capability. This capability is required for your configuration of Vagrant. Please either reconfigure Vagrant to avoid this capability or fix the issue by creating the capability."

I really have no idea what kind of error this is and how to fix it.

Cheers

Upvotes: 2

Views: 1824

Answers (2)

Tim Lieberman
Tim Lieberman

Reputation: 571

in response to my comment on the accepted answer. I had to uninstall virtualbox and reinstall it using brew. Then reinstall vagrant with brew. not sure using brew had anything to do with it but the virtualbox installer wasn't working either. It works now.

Upvotes: 0

Frederic Henri
Frederic Henri

Reputation: 53793

From an example of vagrant mac os box

VirtualBox doesn't have Guest additions for Mac OS X, so you can't have shared folders. Instead you can use normal network shared folders (docs):

# Use NFS for the shared folder
config.vm.synced_folder ".", "/vagrant",
    id: "core",
    :nfs => true,
    :mount_options => ['nolock,vers=3,udp,noatime']

Just use the nfs type as suggested as its supported natively on mac

Upvotes: 2

Related Questions