敲黑板
vagrant 命令行报错 Encoding::UndefinedConversionError
使用 vagrant 命令时提示 process_builder.rb:44:in `encode!’: “\xE5” to UTF-8 in conversion from ASCII-8BIT to UTF-8 to UTF-16LE (Encoding::UndefinedConversionError)
本例使用的 vagrant 版本为 2.2.10, 安装目录:<br/> D:\HashiCorp\Vagrant\embedded\gems\2.2.10\gems\childprocess-4.0.0\lib\childprocess\windows\process_builder.rb 第 44 行
修改 newstr.encode!(‘UTF-16LE’) 为 <br/> newstr.encode!(‘UTF-16LE’, invalid: :replace, undef: :replace, replace: ‘?’) 参考连接
vagrant 自制 box 启动时 Authentication failure
- vagrant 2.3.6
- virtualBox 7.0.8
- win 11
Authentication failure 是 ssh 登录证书错误, 但虚拟机已经启动完成
.ssh/authorized_keys
或.vagrant/machines/default/virtualbox/private_key
有变化(内容改动/文件存在)
1 | ... |