我正在尝试运行: 流浪汉我得到以下
[default] Running provisioner: file...
[default] Forcing shutdown of VM...
[default] Destroying VM and associated drives...
Pruning invalid NFS exports. Administrator privileges will be required...
[default] Running cleanup tasks for 'shell' provisioner...
[default] Running cleanup tasks for 'file' provisioner...
[default] Running cleanup tasks for 'shell' provisioner...
[default] Running cleanup tasks for 'puppet' provisioner...
/usr/lib/ruby/vendor_ruby/net/scp.rb:392:in `await_response_state': scp: ~/.bash_profile: No such file or directory (RuntimeError)
from /usr/lib/ruby/vendor_ruby/net/scp.rb:363:in `block (3 levels) in start_command'
from /usr/lib/ruby/vendor_ruby/net/ssh/connection/channel.rb:311:in `call'
from /usr/lib/ruby/vendor_ruby/net/ssh/connection/channel.rb:311:in `process'
from /usr/lib/ruby/vendor_ruby/net/ssh/connection/session.rb:217:in `block in preprocess'
from /usr/lib/ruby/vendor_ruby/net/ssh/connection/session.rb:217:in `each'
from /usr/lib/ruby/vendor_ruby/net/ssh/connection/session.rb:217:in `preprocess'
from /usr/lib/ruby/vendor_ruby/net/ssh/connection/session.rb:200:in `process'
from /usr/lib/ruby/vendor_ruby/net/ssh/connection/session.rb:164:in `block in loop'
from /usr/lib/ruby/vendor_ruby/net/ssh/connection/session.rb:164:in `loop'
.
.
.
.
.
我使用以下版本: ubuntu 14.04LTS 流浪者1.4.3 Virtualbox 4.3.36
这些是我的尝试,但没有运气:
sudo rm /etc/exports
sudo touch /etc/exports
vagrant halt
vagrant up --provision
$ vagrant plugin install vagrant-vbguest
答案 0 :(得分:0)
通过运行以下命令解决了此问题。
删除并创建新的导出文件:
$ sudo rm /etc/exports
$ sudo touch /etc/exports
销毁当前的VM计算机:
$ sudo vagrant global-status
$ sudo vagrant destroy 26ec2cc
以专家身份使无业游民
$ sudo vagrant up --provision
答案 1 :(得分:-1)