Vagrant:修剪无效的NFS导出。将需要管理员权限

时间:2016-03-15 14:56:43

标签: ubuntu vagrant ubuntu-14.04 virtualbox

我正在尝试运行: 流浪汉我得到以下

[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

2 个答案:

答案 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)

您使用的是Vagrant和Virtualbox的过时版本。

截至发布时,当前版本的Vagrant为1.8.1,当前版本的Virtualbox为5.0.16。作为第一步,我会尝试升级这两个组件并重新尝试流浪。

除此之外,您遇到的问题究竟是什么?

  

Vagrant:修剪无效的NFS导出。将需要管理员权限

本身不是错误或问题......