2016-07-14 3 views
-2

Vagrant를 통해 Git Bash를 사용하여 Linux OS를 다운로드하고 Windows 7에서 가상 시스템을 시작하려고합니다. 이미 vagrant init hashicorp/precise32 명령을 실행하여 'vagrantfile'을 대상 폴더.'wagrant up'이 Windows에서 작동하지 않습니다.

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>' 

제발 도와주세요. 미리 감사드립니다.

+0

가상 박스를 설치 했습니까? – taskinoor

+0

가능한 방대한 양의 [windows \ _hyperv \ _admin에 차단] 오류가 발생했습니다. (http://stackoverflow.com/questions/38181341/block-in-windows-hyperv-admin-error-when-trying-vagrant-up) – taskinoor

+0

예 .. VirtualBox를 설치했습니다. –

답변

-1

나는 Windows10에서 Vagrant 1.8.4Virtualbox 5.1.0과 같은 문제가있었습니다. 버추얼 박스를 제거하고 버전 5.0.24을 다시 설치하면 작동합니다.