WinRb / vagrant-windows

Other
444 stars 83 forks source link

Unable to install vagrant-windows on vagrant 1.8.6 #203

Closed vinyar closed 7 years ago

vinyar commented 7 years ago

It seems very odd that I'd be the first one here reporting this issue, so it's likely that I'm doing something wrong.

ENV:

$ vagrant -v
Vagrant 1.8.6
$ vagrant plugin list
vagrant-share (1.1.5, system)
$ chef -v  [ruby-2.0.0p648]
Chef Development Kit Version: 0.18.30
chef-client version: 12.14.89
delivery version: master (d86679335580be3de22996ef294b20d525889d8d)
berks version: 5.1.0
kitchen version: 1.13.2
vagrant plugin install vagrant-windows
Installing the 'vagrant-windows' plugin. This can take a few minutes...
The plugin(s) can't be installed due to the version conflicts below.
This means that the plugins depend on a library version that conflicts
with other plugins or Vagrant itself, creating an impossible situation
where Vagrant wouldn't be able to load the plugins.

You can fix the issue by either removing a conflicting plugin or
by contacting a plugin author to see if they can address the conflict.

Vagrant could not find compatible versions for gem "vagrant":
  In Gemfile:
    vagrant (= 1.8.6)

    vagrant-windows was resolved to 0.0.1, which depends on
      vagrant (~> 1.0.3)
Vagrant could not find compatible versions for gem "winrm":
  In Gemfile:
    vagrant (= 1.8.6) was resolved to 1.8.6, which depends on
      winrm (~> 1.6)

    vagrant-windows was resolved to 1.0.0, which depends on
      winrm (~> 1.1.1)

    vagrant (= 1.8.6) was resolved to 1.8.6, which depends on
      winrm-fs (~> 0.3.0) was resolved to 0.3.2, which depends on
        winrm (~> 1.5)
ferventcoder commented 7 years ago

Not odd - Windows support is built into Vagrant. Unless I'm mistaken this gem is deprecated.

maxi1192 commented 7 years ago

the readme says for vagrant 1.6+ (I installed vagrant 1.9.1) this plugin is not needed to run windows guests, but when I want to "vargant up" a windows guest with e.g. this box "opentable/win-7-professional-amd64-nocm", it says:

vagrant-windows missing, please install the vagrant-windows plugin! Run this command in your terminal: vagrant plugin install vagrant-windows

ferventcoder commented 7 years ago

@maxi1192 It's likely they have something in their vagrantfile that is requesting that. You may need to remove something there so that things will work.

vinyar commented 7 years ago

yup. Confirmed that opentable boxes are broken due to busted Vagrant files baked into .box files

Vagrant.configure("2") do |config|
    config.vm.define "vagrant-windows-7"
    config.vm.box = "windows_7"

    if !Vagrant.has_plugin?('vagrant-windows')
      puts "vagrant-windows missing, please install the vagrant-windows plugin!"
      puts "Run this command in your terminal:"
      puts "vagrant plugin install vagrant-windows"
      exit 1
    end
...