【发布时间】:2014-08-15 15:24:09
【问题描述】:
有时我得到了新创建的文件,但我无法访问,尽管我可以在控制台中列出它们。我的Vagrant file 包含这个synced_folder 设置:
config.vm.synced_folder "/home/ulkas/Develop/beauty/Beautyportal", "/vagrant/Beautyportal", owner: "vagrant", group: "vagrant", :mount_options => ['dmode=777', 'fmode=777']
当我在主机和来宾中创建/修改文件时会发生这种情况,它们只是变得无法访问:
cannot access GuzzleStreamWrapper.php: No such file or directory
我可以在控制台中列出它们,但没有权限(看起来像挂载问题):
vagrant@precise64:/vagrant/Beautyportal/vendor/guzzlehttp/streams/src$ ls -al
ls: cannot access functions.php: No such file or directory
ls: cannot access NoSeekStream.php: No such file or directory
ls: cannot access LazyOpenStream.php: No such file or directory
ls: cannot access MetadataStreamInterface.php: No such file or directory
ls: cannot access StreamInterface.php: No such file or directory
ls: cannot access LimitStream.php: No such file or directory
ls: cannot access AppendStream.php: No such file or directory
ls: cannot access Stream.php: No such file or directory
ls: cannot access CachingStream.php: No such file or directory
ls: cannot access StreamDecoratorTrait.php: No such file or directory
ls: cannot access GuzzleStreamWrapper.php: No such file or directory
total 12
drwxrwxr-x 1 vagrant vagrant 4096 Aug 14 11:33 .
drwxrwxr-x 1 vagrant vagrant 4096 Aug 14 11:33 ..
?????????? ? ? ? ? ? AppendStream.php
?????????? ? ? ? ? ? CachingStream.php
?????????? ? ? ? ? ? functions.php
?????????? ? ? ? ? ? GuzzleStreamWrapper.php
?????????? ? ? ? ? ? LazyOpenStream.php
?????????? ? ? ? ? ? LimitStream.php
?????????? ? ? ? ? ? MetadataStreamInterface.php
?????????? ? ? ? ? ? NoSeekStream.php
?????????? ? ? ? ? ? StreamDecoratorTrait.php
?????????? ? ? ? ? ? StreamInterface.php
?????????? ? ? ? ? ? Stream.php
drwxrwxr-x 1 vagrant vagrant 4096 Aug 14 11:33 .svn
重启机器后(vagrant reload),文件就可以访问了,因此我怀疑挂载/重新挂载有问题。
这个问题出现在 linux mint 13 主机和 windows 7 64 位主机上。
盒子是hashicorp/precise64
【问题讨论】:
标签: linux virtual-machine vagrant virtualbox virtualization