加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

在windows_hyperv_admin中阻止尝试流浪者时出错

发布时间:2020-12-14 02:08:13 所属栏目:Windows 来源:网络整理
导读:我正在为我的环境使用Vagrant,我有一个小问题如下所示. kk@Lenovo MINGW64 ~/sravz/vm1$vagrant upC:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.4/lib/vagrant/util/platform.rb:85:in `block in windows_hyperv_admin?': undefined method `includ
我正在为我的环境使用Vagrant,我有一个小问题如下所示.

kk@Lenovo MINGW64 ~/sravz/vm1
$vagrant up
C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.4/lib/vagrant/util/platform.rb:85:in `block in windows_hyperv_admin?': undefined method `include?' for #<Vagrant::Util::Subprocess::Result:0x2634e88> (NoMethodError)
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.4/lib/vagrant/util/platform.rb:89:in `call'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.4/lib/vagrant/util/platform.rb:89:in `windows_hyperv_admin?'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.4/plugins/providers/hyperv/provider.rb:20:in `usable?'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.4/lib/vagrant/environment.rb:381:in `block in default_provider'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.4/lib/vagrant/environment.rb:379:in `each'

我用vagrant init初始化了我的项目,但由于某些原因,vagrant up拒绝工作.

解决方法

我有同样的问题,正如@FrédéricHenri所提到的,这与这个问题有关: https://github.com/mitchellh/vagrant/issues/7465.

我只是按照其中一条评论中提出的建议,现在工作正常:)

I had the same issue (initially thought it was because of Hyper-V,which I already uninstalled and the errors remained). But if you installed Virtualbox today,the issue is probably because 5.1 has just been released a few hours ago (creating an environment variable VAGRANT_DEFAULT_PROVIDER set to “virtualbox” shows a message that says it only supports up to 5.0).

*Uninstall 5.1,and install Virtualbox 5.0.x instead until that issue is closed,that fixed it for me.

您可以找到旧版本here.对于5.0.x.具体而言,here.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读