Virtualbox 尝试装载NFS共享文件夹时,Vagrant崩溃(Encoding::CompatibilityError)

Virtualbox 尝试装载NFS共享文件夹时,Vagrant崩溃(Encoding::CompatibilityError),virtualbox,vagrant,nfs,Virtualbox,Vagrant,Nfs,我正在使用OS X 10.8.5上的Vagrant 1.3.4和VirtualBox,发现速度慢得令人痛苦。有几个消息来源建议切换到NFS共享以提高性能,但当我在我的vagrant文件中添加:NFS=>true位时,我在vagrant up(或vagrant reload)期间遇到以下致命错误: [默认]正在导出NFS共享文件夹。。。 正在准备编辑/etc/exports。需要管理员权限。。。 密码: [默认值]正在装载NFS共享文件夹。。。 /Applications/Vagrant/embe

我正在使用OS X 10.8.5上的Vagrant 1.3.4和VirtualBox,发现速度慢得令人痛苦。有几个消息来源建议切换到NFS共享以提高性能,但当我在我的
vagrant文件中添加
:NFS=>true
位时,我在
vagrant up
(或
vagrant reload
)期间遇到以下致命错误:

[默认]正在导出NFS共享文件夹。。。
正在准备编辑/etc/exports。需要管理员权限。。。
密码:
[默认值]正在装载NFS共享文件夹。。。
/Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/buffer.rb:284:“写块”中:不兼容字符编码:ASCII-8BIT和UTF-8(编码::CompatibilityError)
from/Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/buffer.rb:284:in'each'
from/Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/buffer.rb:284:in'write'
from/Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/buffer.rb:322:in'block in write_string'
from/Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/buffer.rb:319:in'each'
from/Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/buffer.rb:319:in'write_string'
from/Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/buffer.rb:55:在“block in from”中
from/Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/buffer.rb:47:在“步骤”中
from/Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/buffer.rb:47:in'from'
from/Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/connection/channel.rb:493:“排队等待输出”中
from/Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/connection/channel.rb:312:在“进程”中
from/Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/connection/session.rb:217:在“预处理中的块”中
from/Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/connection/session.rb:217:in'each'
from/Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/connection/session.rb:217:在“预处理”中
from/Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/connection/session.rb:200:在“进程”中
from/Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/connection/session.rb:164:in“block-in-loop”
from/Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/connection/session.rb:164:in'loop'
from/Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/connection/session.rb:164:in'loop'
from/Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/connection/channel.rb:269:in'wait'
from/Applications/Vagrant/embedded/gems/gems/Vagrant-1.3.4/plugins/communicators/ssh/communicator.rb:369:in'shell_execute'
from/Applications/Vagrant/embedded/gems/gems/Vagrant-1.3.4/plugins/communicators/ssh/communicator.rb:64:在“执行中的块”中
from/Applications/Vagrant/embedded/gems/gems/Vagrant-1.3.4/plugins/communicators/ssh/communicator.rb:154:in'connect'
from/Applications/Vagrant/embedded/gems/gems/Vagrant-1.3.4/plugins/communicators/ssh/communicator.rb:63:in'execute'
from/Applications/Vagrant/embedded/gems/gems/Vagrant-1.3.4/plugins/communicators/ssh/communicator.rb:95:in'sudo'
from/Applications/Vagrant/embedded/gems/gems/Vagrant-1.3.4/plugins/guests/linux/cap/mount_-nfs.rb:30:“mount_-nfs_文件夹中的块(2级)”中
from/Applications/Vagrant/embedded/gems/gems/Vagrant-1.3.4/lib/Vagrant/util/retryable.rb:17:in“retryable”
from/Applications/Vagrant/embedded/gems/gems/Vagrant-1.3.4/plugins/guests/linux/cap/mount_nfs.rb:29:“mount_nfs_文件夹中的块”
from/Applications/Vagrant/embedded/gems/gems/Vagrant-1.3.4/plugins/guests/linux/cap/mount_nfs.rb:10:in“each”
来自/Applications/Vagrant/embedded/gems/gems/Vagrant-1.3.4/plugins/guests/linux/cap/mount_-nfs.rb:10:“mount_-nfs_文件夹”
from/Applications/Vagrant/embedded/gems/gems/Vagrant-1.3.4/lib/Vagrant/guest.rb:139:in'call'
from/Applications/Vagrant/embedded/gems/gems/Vagrant-1.3.4/lib/Vagrant/guest.rb:139:在“能力”中
from/Applications/Vagrant/embedded/gems/gems/Vagrant-1.3.4/lib/Vagrant/action/builtin/nfs.rb:93:in'call'
from/Applications/Vagrant/embedded/gems/gems/Vagrant-1.3.4/lib/Vagrant/action/warden.rb:34:in'call'
from/Applications/Vagrant/embedded/gems/gems/Vagrant-1.3.4/plugins/providers/virtualbox/action/prune\u nfs\u exports.rb:15:in'call'
from/Applications/Vagrant/embedded/gems/gems/Vagrant-1.3.4/lib/Vagrant/action/warden.rb:34:in'call'
from/Applications/Vagrant/embedded/gems/gems/Vagrant-1.3.4/lib/Vagrant/action/builtin/handle\u forwarded\u port\u collisions.rb:118:in'call'
from/Applications/Vagrant/embedded/gems/gems/Vagrant-1.3.4/lib/Vagrant/action/warden.rb:34:in'call'
from/Applications/Vagrant/embedded/gems/gems/Vagrant-1.3.4/plugins/providers/virtualbox/action/prepare\u forwarded\u port\u collision\u params.rb:30:in'call'
from/Applications/Vagrant/embedded/gems/gems/Vagrant-1.3.4/lib/Vagrant/action/warden.rb:34:in'call'
from/Applications/Vagrant/embedded/gems/gems/Vagrant-1.3.4/lib/Vagrant/action/builtin/env_set.rb:19:in'call'
from/Applications/Vagrant/embedded/gems/gems/Vagrant-1.3.4/lib/Vagrant/action/warden.rb:34:in'call'
from/Applications/Vagrant/embedded/gems/gems/Vagrant-1.3.4/lib/Vagrant/action/builtin/provision.rb:54:in'call'
from/Applications/Vagrant/embedded/gems/gems/Vagrant-1.3.4/lib/Vagrant/action/warden.rb:34:in'call'
from/Applications/Vagrant/embedded/gems/gems/Vagrant-1.3.4/plugins/providers/virtualbox/action/clear\u-forwarded\u-port.rb:13:in'call'
from/Applications/Vagrant/embedded/gems/gems/Vagrant-1.3.4/lib/Vagrant/action/warden.rb:34:in'call'
from/Applications/Vagrant/embedded/gems/gems/Vagrant-1.3.4/plugins/pr
[default] Exporting NFS shared folders...
Preparing to edit /etc/exports. Administrator privileges will be required...
Password:
[default] Mounting NFS shared folders...
/Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/buffer.rb:284:in `block in write': incompatible character encodings: ASCII-8BIT and UTF-8 (Encoding::CompatibilityError)
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/buffer.rb:284:in `each'
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/buffer.rb:284:in `write'
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/buffer.rb:322:in `block in write_string'
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/buffer.rb:319:in `each'
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/buffer.rb:319:in `write_string'
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/buffer.rb:55:in `block in from'
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/buffer.rb:47:in `step'
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/buffer.rb:47:in `from'
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/connection/channel.rb:493:in `enqueue_pending_output'
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/connection/channel.rb:312:in `process'
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/connection/session.rb:217:in `block in preprocess'
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/connection/session.rb:217:in `each'
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/connection/session.rb:217:in `preprocess'
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/connection/session.rb:200:in `process'
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/connection/session.rb:164:in `block in loop'
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/connection/session.rb:164:in `loop'
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/connection/session.rb:164:in `loop'
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.6.8/lib/net/ssh/connection/channel.rb:269:in `wait'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/communicators/ssh/communicator.rb:369:in `shell_execute'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/communicators/ssh/communicator.rb:64:in `block in execute'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/communicators/ssh/communicator.rb:154:in `connect'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/communicators/ssh/communicator.rb:63:in `execute'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/communicators/ssh/communicator.rb:95:in `sudo'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/guests/linux/cap/mount_nfs.rb:30:in `block (2 levels) in mount_nfs_folder'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/util/retryable.rb:17:in `retryable'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/guests/linux/cap/mount_nfs.rb:29:in `block in mount_nfs_folder'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/guests/linux/cap/mount_nfs.rb:10:in `each'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/guests/linux/cap/mount_nfs.rb:10:in `mount_nfs_folder'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/guest.rb:139:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/guest.rb:139:in `capability'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/builtin/nfs.rb:93:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/providers/virtualbox/action/prune_nfs_exports.rb:15:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb:118:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/providers/virtualbox/action/prepare_forwarded_port_collision_params.rb:30:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/builtin/env_set.rb:19:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/builtin/provision.rb:54:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/providers/virtualbox/action/clear_forwarded_ports.rb:13:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/providers/virtualbox/action/set_name.rb:19:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/providers/virtualbox/action/clean_machine_folder.rb:17:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/providers/virtualbox/action/check_accessible.rb:18:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/runner.rb:61:in `block in run'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/util/busy.rb:19:in `busy'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/runner.rb:61:in `run'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/builtin/call.rb:51:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/runner.rb:61:in `block in run'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/util/busy.rb:19:in `busy'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/runner.rb:61:in `run'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/builtin/call.rb:51:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/runner.rb:61:in `block in run'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/util/busy.rb:19:in `busy'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/runner.rb:61:in `run'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/builtin/call.rb:51:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/builtin/call.rb:57:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/runner.rb:61:in `block in run'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/util/busy.rb:19:in `busy'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/runner.rb:61:in `run'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/builtin/call.rb:51:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/builder.rb:116:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/runner.rb:61:in `block in run'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/util/busy.rb:19:in `busy'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/action/runner.rb:61:in `run'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/machine.rb:147:in `action'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/commands/reload/command.rb:33:in `block in execute'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/plugin/v2/command.rb:185:in `block in with_target_vms'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/plugin/v2/command.rb:183:in `each'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/plugin/v2/command.rb:183:in `with_target_vms'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/plugins/commands/reload/command.rb:32:in `execute'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/cli.rb:38:in `execute'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/lib/vagrant/environment.rb:478:in `cli'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.4/bin/vagrant:96:in `<top (required)>'
    from /Applications/Vagrant/bin/../embedded/gems/bin/vagrant:23:in `load'
    from /Applications/Vagrant/bin/../embedded/gems/bin/vagrant:23:in `<main>'