vagrant shell脚本失败,出现无法解释的错误“``只读文件系统(运行时错误)```

vagrant shell脚本失败,出现无法解释的错误“``只读文件系统(运行时错误)```,vagrant,Vagrant,我在vagrant中有一个小的配置shell配置脚本(用于安装puppet无法安装的东西…) 剧本: #!/bin/bash echo 'provisioning librarian' gem install librarian-puppet librarian-puppet install 从sh prescript.sh运行正常 但从流浪者的角度来看,供应失败的原因是: D:/HashiCorp/Vagrant/embedded/gems/gems/net-scp-1.1.0/lib/ne

我在vagrant中有一个小的配置shell配置脚本(用于安装puppet无法安装的东西…) 剧本:

#!/bin/bash
echo 'provisioning librarian'
gem install librarian-puppet
librarian-puppet install
sh prescript.sh运行正常
但从流浪者的角度来看,供应失败的原因是:

D:/HashiCorp/Vagrant/embedded/gems/gems/net-scp-1.1.0/lib/net/scp.rb:385:in `awa
it_response_state': ☺scp: /tmp/vagrant-shell: Read-only file system (RuntimeErro
r)
        from D:/HashiCorp/Vagrant/embedded/gems/gems/net-scp-1.1.0/lib/net/scp.r
b:356:in `block (3 levels) in start_command'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-2.6.7/lib/net/ssh/c
onnection/channel.rb:311:in `call'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-2.6.7/lib/net/ssh/c
onnection/channel.rb:311:in `process'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-2.6.7/lib/net/ssh/c
onnection/session.rb:217:in `block in preprocess'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-2.6.7/lib/net/ssh/c
onnection/session.rb:217:in `each'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-2.6.7/lib/net/ssh/c
onnection/session.rb:217:in `preprocess'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-2.6.7/lib/net/ssh/c
onnection/session.rb:200:in `process'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-2.6.7/lib/net/ssh/c
onnection/session.rb:164:in `block in loop'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-2.6.7/lib/net/ssh/c
onnection/session.rb:164:in `loop'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-2.6.7/lib/net/ssh/c
onnection/session.rb:164:in `loop'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-2.6.7/lib/net/ssh/c
onnection/channel.rb:269:in `wait'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/net-scp-1.1.0/lib/net/scp.r
b:279:in `upload!'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/commu
nicators/ssh/communicator.rb:105:in `block in upload'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/commu
nicators/ssh/communicator.rb:331:in `block in scp_connect'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/commu
nicators/ssh/communicator.rb:139:in `connect'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/commu
nicators/ssh/communicator.rb:329:in `scp_connect'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/commu
nicators/ssh/communicator.rb:99:in `upload'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/provi
sioners/shell/provisioner.rb:20:in `block (2 levels) in provision'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/provi
sioners/shell/provisioner.rb:14:in `tap'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/provi
sioners/shell/provisioner.rb:14:in `block in provision'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/provi
sioners/shell/provisioner.rb:78:in `with_script_file'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/provi
sioners/shell/provisioner.rb:12:in `provision'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a
ction/builtin/provision.rb:65:in `run_provisioner'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a
ction/builtin/provision.rb:53:in `block in call'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a
ction/builtin/provision.rb:49:in `each'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a
ction/builtin/provision.rb:49:in `call'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a
ction/warden.rb:34:in `call'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/provi
ders/virtualbox/action/check_accessible.rb:18:in `call'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a
ction/warden.rb:34:in `call'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a
ction/runner.rb:61:in `block in run'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/u
til/busy.rb:19:in `busy'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a
ction/runner.rb:61:in `run'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a
ction/builtin/call.rb:51:in `call'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a
ction/warden.rb:34:in `call'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a
ction/runner.rb:61:in `block in run'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/u
til/busy.rb:19:in `busy'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a
ction/runner.rb:61:in `run'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a
ction/builtin/call.rb:51:in `call'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a
ction/warden.rb:34:in `call'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a
ction/builtin/config_validate.rb:25:in `call'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a
ction/warden.rb:34:in `call'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/provi
ders/virtualbox/action/check_virtualbox.rb:17:in `call'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a
ction/warden.rb:34:in `call'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a
ction/builder.rb:116:in `call'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a
ction/runner.rb:61:in `block in run'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/u
til/busy.rb:19:in `busy'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a
ction/runner.rb:61:in `run'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/m
achine.rb:147:in `action'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/comma
nds/provision/command.rb:26:in `block in execute'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/p
lugin/v2/command.rb:182:in `block in with_target_vms'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/p
lugin/v2/command.rb:180:in `each'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/p
lugin/v2/command.rb:180:in `with_target_vms'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/comma
nds/provision/command.rb:25:in `execute'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/c
li.rb:46:in `execute'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/e
nvironment.rb:467:in `cli'
        from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/bin/vagrant:8
4:in `<top (required)>'
        from D:/HashiCorp/Vagrant/bin//../embedded/../embedded/gems/bin/vagrant:
23:in `load'
        from D:/HashiCorp/Vagrant/bin//../embedded/../embedded/gems/bin/vagrant:
23:in `<main>'
D:/HashiCorp/Vagrant/embedded/gems/gems/net-scp-1.1.0/lib/net/scp.rb:385:in`awa
它(响应)(状态):☺scp:/tmp/vagrant shell:只读文件系统(RuntimeErro)
(r)
来自D:/HashiCorp/Vagrant/embedded/gems/gems/net-scp-1.1.0/lib/net/scp.r
b:356:在“启动_命令中的块(3级)”中
来自D:/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-2.6.7/lib/net/ssh/c
onnection/channel.rb:311:in'call'
来自D:/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-2.6.7/lib/net/ssh/c
Connection/channel.rb:311:正在进行中
来自D:/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-2.6.7/lib/net/ssh/c
connection/session.rb:217:在“预处理中的块”中
来自D:/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-2.6.7/lib/net/ssh/c
onnection/session.rb:217:在'each'中
来自D:/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-2.6.7/lib/net/ssh/c
connection/session.rb:217:在“预处理”中
来自D:/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-2.6.7/lib/net/ssh/c
Connection/session.rb:200:正在进行中
来自D:/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-2.6.7/lib/net/ssh/c
onnection/session.rb:164:in'block in loop'
来自D:/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-2.6.7/lib/net/ssh/c
onnection/session.rb:164:in'loop'
来自D:/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-2.6.7/lib/net/ssh/c
onnection/session.rb:164:in'loop'
来自D:/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-2.6.7/lib/net/ssh/c
连接/频道.rb:269:in'wait'
来自D:/HashiCorp/Vagrant/embedded/gems/gems/net-scp-1.1.0/lib/net/scp.r
b:279:在“上传”中
来自D:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.2.2/plugins/commu
nicators/ssh/communicator.rb:105:in'block in upload'
来自D:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.2.2/plugins/commu
nicators/ssh/communicator.rb:331:in'block in scp_connect'
来自D:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.2.2/plugins/commu
nicators/ssh/communicator.rb:139:in'connect'
来自D:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.2.2/plugins/commu
nicators/ssh/communicator.rb:329:in'scp_connect'
来自D:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.2.2/plugins/commu
nicators/ssh/communicator.rb:99:in'upload'
来自D:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.2.2/plugins/provi
sioners/shell/provisioner.rb:20:in“供应区(2层)”中
来自D:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.2.2/plugins/provi
sioners/shell/provisioner.rb:14:in“tap”
来自D:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.2.2/plugins/provi
sioners/shell/provisioner.rb:14:在“条款中的区块”中
来自D:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.2.2/plugins/provi
sioners/shell/provisioner.rb:78:in'with_script_file'
来自D:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.2.2/plugins/provi
sioners/shell/provisioner.rb:12:in“准备金”
来自D:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.2.2/lib/Vagrant/a
Action/builtin/provision.rb:65:in'run_provisioner'
来自D:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.2.2/lib/Vagrant/a
Action/builtin/provision.rb:53:in'block in call'
来自D:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.2.2/lib/Vagrant/a
Action/builtin/provision.rb:49:in‘each’
来自D:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.2.2/lib/Vagrant/a
Action/builtin/provision.rb:49:in'call'
来自D:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.2.2/lib/Vagrant/a
行动/典狱长。rb:34:in'call'
来自D:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.2.2/plugins/provi
ders/virtualbox/action/check_可访问。rb:18:in'call'
来自D:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.2.2/lib/Vagrant/a
行动/典狱长。rb:34:in'call'
来自D:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.2.2/lib/Vagrant/a
Action/runner.rb:61:in'block in run'
来自D:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.2.2/lib/Vagrant/u
直到/忙。rb:19:在“忙”中
来自D:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.2.2/lib/Vagrant/a
Action/runner.rb:61:in'run'
来自D:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.2.2/lib/Vagrant/a
action/builtin/call.rb:51:in'call'
来自D:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.2.2/lib/Vagrant/a
行动/典狱长。rb:34:in'call'
来自D:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.2.2/lib/Vagrant/a
Action/runner.rb:61:in'block in run'
来自D:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.2.2/lib/Vagrant/u
直到/忙。rb:19:在“忙”中
来自D:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.2.2/lib/Vagrant/a
Action/runner.rb:61:in'run'
来自D:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.2.2/lib/Vagrant/a
action/builtin/call.rb:51:in'call'
来自D:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.2.2/lib/Vagrant/a
行动/典狱长。rb:34:in'call'
来自D:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.2.2/lib/Vagrant/a
action/builtin/config_validate.rb:25:in'call'
来自D:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.2.2/lib/Vagrant/a
行动/典狱长。rb:34:in'call'
来自D:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.2.2/plugins/provi
ders/virtualbox/action/check_virtualbox.rb:17:in'call'
来自D:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.2.2/lib/Vagrant/a
行动/典狱长。rb:34:in'call'
来自D:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.2.2/lib/Vagrant/a
Action/builder.rb:116:in'call'
来自D:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.2.2/lib/Vagrant/a
Action/runner.rb:61:in'block in run'
来自D:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.2.2/lib
VBoxManage setextradata VM_NAME VBoxInternal2/SharedFoldersEnableSymlinksCreate/SHARE_NAME 1
config.vm.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"]