2014-01-07 22:26:56 +00:00
|
|
|
---
|
2016-01-19 18:08:53 +00:00
|
|
|
layout: "docs"
|
2014-01-07 22:26:56 +00:00
|
|
|
page_title: "VirtualBox Shared Folders - Synced Folders"
|
|
|
|
sidebar_current: "syncedfolder-virtualbox"
|
2016-01-19 18:08:53 +00:00
|
|
|
description: |-
|
|
|
|
If you are using the Vagrant VirtualBox provider, then VirtualBox shared
|
|
|
|
folders are the default synced folder type. These synced folders use the
|
|
|
|
VirtualBox shared folder system to sync file changes from the guest to the
|
|
|
|
host and vice versa.
|
2014-01-07 22:26:56 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
# VirtualBox
|
|
|
|
|
2016-01-19 18:08:53 +00:00
|
|
|
If you are using the Vagrant VirtualBox [provider](/docs/providers/), then
|
2014-01-07 22:26:56 +00:00
|
|
|
VirtualBox shared folders are the default synced folder type. These synced
|
|
|
|
folders use the VirtualBox shared folder system to sync file changes from
|
|
|
|
the guest to the host and vice versa.
|
|
|
|
|
2018-01-08 22:57:31 +00:00
|
|
|
## Options
|
|
|
|
|
|
|
|
* `SharedFoldersEnableSymlinksCreate` (boolean) - If false, will disable the
|
|
|
|
ability to create symlinks with the given virtualbox shared folder. Defaults to
|
|
|
|
true if the option is not present.
|
|
|
|
|
2014-01-07 22:26:56 +00:00
|
|
|
## Caveats
|
|
|
|
|
|
|
|
There is a [VirtualBox bug][sendfile bug] related to `sendfile` which can result
|
|
|
|
in corrupted or non-updating files. You should deactivate `sendfile` in any
|
|
|
|
web servers you may be running.
|
|
|
|
|
|
|
|
In Nginx:
|
|
|
|
|
|
|
|
sendfile off;
|
|
|
|
|
|
|
|
In Apache:
|
|
|
|
|
|
|
|
EnableSendfile Off
|
|
|
|
|
|
|
|
[sendfile bug]: https://github.com/mitchellh/vagrant/issues/351#issuecomment-1339640
|