Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vagrant 1.5.1, Windows, bringing machine up: NoMethodError #3238

Closed
mrobb opened this issue Mar 17, 2014 · 5 comments
Closed

Vagrant 1.5.1, Windows, bringing machine up: NoMethodError #3238

mrobb opened this issue Mar 17, 2014 · 5 comments

Comments

@mrobb
Copy link

mrobb commented Mar 17, 2014

On Windows, using hyper-v, I got this after trying to up a new precise64 box:

Bringing machine 'default' up with 'hyperv' provider...
==> default: Importing a Hyper-V instance
C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.1/plugins/providers/hyperv/action/import.rb:45:in `call': undefined method `empty?' for nil:NilClass (NoMethodError)
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.1/lib/vagrant/action/warden.rb:34:in `call'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.1/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.1/lib/vagrant/action/warden.rb:34:in `call'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.1/lib/vagrant/action/warden.rb:34:in `call'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.1/lib/vagrant/action/builder.rb:116:in `call'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.1/lib/vagrant/action/runner.rb:69:in `block in run'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.1/lib/vagrant/util/busy.rb:19:in `busy'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.1/lib/vagrant/action/runner.rb:69:in `run'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.1/lib/vagrant/action/builtin/call.rb:51:in `call'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.1/lib/vagrant/action/warden.rb:34:in `call'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.1/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.1/lib/vagrant/action/warden.rb:34:in `call'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.1/lib/vagrant/action/builtin/handle_box.rb:56:in `call'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.1/lib/vagrant/action/warden.rb:34:in `call'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.1/lib/vagrant/action/builder.rb:116:in `call'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.1/lib/vagrant/action/runner.rb:69:in `block in run'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.1/lib/vagrant/util/busy.rb:19:in `busy'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.1/lib/vagrant/action/runner.rb:69:in `run'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.1/lib/vagrant/machine.rb:157:in `action'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.1/lib/vagrant/batch_action.rb:72:in `block (2 levels) in run'
@v-jacob
Copy link

v-jacob commented Mar 17, 2014

i am also getting the same error trying to use hyper-v

@lypanov
Copy link

lypanov commented Mar 17, 2014

Had the same issue, quite easy to fix, guess you're both on mingw like me.

Change line 24 in
C:\HashiCorp\Vagrant\embedded\gems\gems\vagrant-1.5.1\lib\vagrant\util\powershell.rb
to
"#{path}",

This seems to fix the powershell execution related issues.

@thalesmello
Copy link

I'm user git bash with ConEmu here. I report that the fix suggested by @lypanov works.

Does anyone know if changing that line has any other type of impact? Otherwise we could open a Pullrequest with the fix.

@crankeye
Copy link

@thalesmello There is already a fix for this.

Fixed by #3210

@mitchellh
Copy link
Contributor

Fixed

@ghost ghost locked and limited conversation to collaborators Apr 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants