小编Bri*_*tch的帖子

/ vagrant未填充文件

我已vagrant init使用在OS X(10.11.4)上使用最新版本的VirtualBox(5.0.16 r105871)和最新ubuntu/trusty64盒装版本(v20160323.0.0)的默认配置配置了Vagrant(1.7.4 )。

我的VM具有来宾添加项的匹配版本,但是我似乎无法使共享/vagrant目录正常工作。该/vagrant/目录存在于VM上,但如果ls在其上运行,则该目录完全为空。如果我touch有文件,它将显示在来宾中,/vagrant但不会同步回我计算机上的项目文件夹,并且在重新启动后消失。VirtualBox GUI显示共享文件夹:

http://i.imgur.com/yM1wuj5.png

编辑:Vagrantfile:

# -*- mode: ruby -*-
# vi: set ft=ruby :

# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
  # The most common configuration options are documented and …
Run Code Online (Sandbox Code Playgroud)

vagrant

5
推荐指数
2
解决办法
2256
查看次数

标签 统计

vagrant ×1