Virtualbox 流浪规定不起作用(已尝试多次)

Virtualbox 流浪规定不起作用(已尝试多次),virtualbox,vagrant,Virtualbox,Vagrant,我在运行灯箱上的设备时遇到问题 流浪汉的版本:1.3.0 我已经创建了一个虚拟机并运行了流浪者。我得到一个超时错误,但虚拟机似乎已启动并正在运行(vagrant status显示虚拟机的状态) 当我尝试运行“流浪规定”时,我收到了以下错误 $ vagrant provision [default] Running provisioner: shell... DL is deprecated, please use Fiddle [default] Running: C:/Users/vjay/A

我在运行灯箱上的设备时遇到问题

流浪汉的版本:1.3.0

我已经创建了一个虚拟机并运行了流浪者。我得到一个超时错误,但虚拟机似乎已启动并正在运行(vagrant status显示虚拟机的状态)

当我尝试运行“流浪规定”时,我收到了以下错误

$ vagrant provision
[default] Running provisioner: shell...
DL is deprecated, please use Fiddle
[default] Running: C:/Users/vjay/AppData/Local/Temp/vagrant-shell20140127-4496-wgoaz8
/bin/bash: /vagrant/shell/os-detect.sh: No such file or directory
/bin/bash: /vagrant/shell/os-detect.sh: No such file or directory
cat: /vagrant/shell/self-promotion.txt: No such file or directory
Created directory /.puphpet-stuff
[default] Running provisioner: shell...
[default] Running: C:/Users/vjay/AppData/Local/Temp/vagrant-shell20140127-4496-1mc5ktv
/bin/bash: /vagrant/shell/os-detect.sh: No such file or directory
/bin/bash: /vagrant/shell/os-detect.sh: No such file or directory
/bin/bash: /vagrant/shell/os-detect.sh: No such file or directory
[default] Running provisioner: shell...
[default] Running: C:/Users/vjay/AppData/Local/Temp/vagrant-shell20140127-4496-1beurlg
/bin/bash: /vagrant/shell/os-detect.sh: No such file or directory
/bin/bash: /vagrant/shell/os-detect.sh: No such file or directory
Installing git
Finished installing git
cp: Copied Puppetfile
cannot stat `/vagrant/puppet/Puppetfile': No such file or directory
Installing librarian-puppet
Finished installing librarian-puppet
Running initial librarian-puppet
/usr/lib/ruby/1.8/pathname.rb:770:in `read': No such file or directory - /etc/puppet/Puppetfile (Errno::ENOENT) 
from /usr/lib/ruby/1.8/pathname.rb:770:in `read'
from /usr/lib/ruby/gems/1.8/gems/librarian-puppet-0.9.10/vendor/librarian/lib/librarian/specfile.rb:14:in `read'
from /usr/lib/ruby/gems/1.8/gems/librarian-puppet-0.9.10/vendor/librarian/lib/librarian/action/resolve.rb:12:in `run'
from /usr/lib/ruby/gems/1.8/gems/librarian-puppet-0.9.10/vendor/librarian/lib/librarian/cli.rb:161:in `resolve!'
from /usr/lib/ruby/gems/1.8/gems/librarian-puppet-0.9.10/lib/librarian/puppet/cli.rb:63:in `install'
from /usr/lib/ruby/gems/1.8/gems/thor-0.18.1/lib/thor/command.rb:27:in `__send__'
from /usr/lib/ruby/gems/1.8/gems/thor-0.18.1/lib/thor/command.rb:27:in `run'
from /usr/lib/ruby/gems/1.8/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'
from /usr/lib/ruby/gems/1.8/gems/thor-0.18.1/lib/thor.rb:363:in `dispatch'
from /usr/lib/ruby/gems/1.8/gems/thor-0.18.1/lib/thor/base.rb:439:in `start'
from /usr/lib/ruby/gems/1.8/gems/librarian-puppet-0.9.10/vendor/librarian/lib/librarian/cli.rb:29:in `bin!'
from /usr/lib/ruby/gems/1.8/gems/librarian-puppet-0.9.10/bin/librarian-puppet:9
from /usr/bin/librarian-puppet:19:in `load'
from /usr/bin/librarian-puppet:19
Finished running initial librarian-puppet
[default] Running provisioner: puppet...
Shared folders that Puppet requires are missing on the virtual machine.
This is usually due to configuration changing after already booting the
machine. The fix is to run a `vagrant reload` so that the proper shared
folders will be prepared and mounted on the VM.
为了补充这一点,我翻阅了几篇博客文章,其中一篇要求尝试命令行git实用程序(因为很明显,CRLF和LF存在问题)。我删除了所有内容并尝试了命令行git,但没有效果

有人能帮忙解决这个问题吗

更新:随附Vagrant文件:

VAGRANTFILE_API_VERSION = "2"
BOX_NAME = "dct-lamp-local"
RELATIVE = '../..'
ROOT = '/vagrant'

load '../common.include'

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

config.vm.synced_folder "#{RELATIVE}/www/", "/var/www/html", id: "apache", :nfs => false, :mount_options => ["uid=510,gid=510"]

config.vm.provider :virtualbox do |virtualbox|
virtualbox.customize ["modifyvm", :id, "--name", BOX_NAME]
virtualbox.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
virtualbox.customize ["modifyvm", :id, "--memory", "1024"]
virtualbox.customize ["setextradata", :id, "--VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"]
end

config.vm.box = BOX_NAME
config.vm.hostname = "#{BOX_NAME}.local"

end

看起来您应该更改vagrant文件中的根行,以指向从PuPHPet获得的vagrant文件的实际位置

第一个错误表示它正在/vagrant下的shell目录中查找脚本,并且在vagrant文件中将ROOT设置为/vagrant

/bin/bash: /vagrant/shell/os-detect.sh: No such file or directory

顺便说一下,我无法查看建议的编辑。所以请有人检查并发布这个查询。为了澄清这不是在服务器端完成的(我试图在客户端设置VM),您可以添加完整的Vagrant文件,或者添加一个包含所有文件的链接吗?这样我就可以测试它并深入研究这个问题。请找到随附的流浪汉文件内容:你好,Cocheese,你收到我随附的流浪汉文件了吗。您是否设法在文件中看到任何错误?