Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/27.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux ';流浪者上';不在Windows上工作_Linux_Virtual Machine_Virtualbox_Git Bash_Vagrant Windows - Fatal编程技术网

Linux ';流浪者上';不在Windows上工作

Linux ';流浪者上';不在Windows上工作,linux,virtual-machine,virtualbox,git-bash,vagrant-windows,Linux,Virtual Machine,Virtualbox,Git Bash,Vagrant Windows,我试图通过GitBash使用Vagrant下载Linux操作系统,并在Windows7上启动虚拟机。我已经运行了命令vagrant init hashicorp/precise32,该命令将“vagrantfile”放在目标文件夹中 当我运行命令vagrant up时,问题开始出现。我在Git Bash上获得了以下信息: C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.4/lib/vagrant/util/platform.rb:85:in

我试图通过GitBash使用Vagrant下载Linux操作系统,并在Windows7上启动虚拟机。我已经运行了命令
vagrant init hashicorp/precise32
,该命令将“vagrantfile”放在目标文件夹中

当我运行命令
vagrant up
时,问题开始出现。我在Git Bash上获得了以下信息:

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:0x28c68f0> (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'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.4/lib/vagrant/environment.rb:379:in `default_provider'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.4/lib/vagrant/plugin/v2/command.rb:174:in `block in with_target_vms'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.4/lib/vagrant/plugin/v2/command.rb:201:in `call'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.4/lib/vagrant/plugin/v2/command.rb:201:in `block in with_target_vms'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.4/lib/vagrant/plugin/v2/command.rb:183:in `each'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.4/lib/vagrant/plugin/v2/command.rb:183:in `with_target_vms'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.4/plugins/commands/up/command.rb:131:in `install_providers'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.4/plugins/commands/up/command.rb:85:in `execute'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.4/lib/vagrant/cli.rb:42:in `execute'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.4/lib/vagrant/environment.rb:302:in `cli'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.4/bin/vagrant:174:in `<main>'
C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.8.4/lib/Vagrant/util/platform.rb:85:在'block in windows_hyperv_admin':未定义的方法'include'(命名错误)
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.8.4/lib/Vagrant/util/platform.rb:89:in'call'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.8.4/lib/Vagrant/util/platform.rb:89:in'windows\u hyperv\u admin'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.8.4/plugins/providers/hyperv/provider.rb:20:in“可用吗?”
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.8.4/lib/Vagrant/environment.rb:381:in'block in default_provider'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.8.4/lib/Vagrant/environment.rb:379:in'each'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.8.4/lib/Vagrant/environment.rb:379:in'default_provider'
from C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.8.4/lib/Vagrant/plugin/v2/command.rb:174:in`block in with_target_vms'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.8.4/lib/Vagrant/plugin/v2/command.rb:201:in'call'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.8.4/lib/Vagrant/plugin/v2/command.rb:201:in`block in with_target_vms'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.8.4/lib/Vagrant/plugin/v2/command.rb:183:in'each'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.8.4/lib/Vagrant/plugin/v2/command.rb:183:in“with_target_vms”
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.8.4/plugins/commands/up/command.rb:131:in'install_providers'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.8.4/plugins/commands/up/command.rb:85:in'execute'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.8.4/lib/Vagrant/cli.rb:42:in'execute'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.8.4/lib/Vagrant/environment.rb:302:in'cli'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.8.4/bin/Vagrant:174:in`'

请帮我做这个。提前感谢。

我在
Windows10
上遇到了与
Vagrant 1.8.4
Virtualbox 5.1.0
相同的问题。卸载VirtualBox并重新安装版本
5.0.24
后,它可以正常工作。

是否安装了VirtualBox?可能是的副本。.我已安装VirtualBox。