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

Unable to start up parallels provider since Vagrant 1.9.5 #297

Closed
pieterjvrensburg opened this Issue May 17, 2017 · 6 comments

Comments

Projects
None yet
2 participants
@pieterjvrensburg

pieterjvrensburg commented May 17, 2017

I upgraded to version 1.7.4 and now I am unable to start up.

➜  centos-6.8 vagrant init parallels/centos-6.8; vagrant up --provider parallels
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.
/opt/vagrant/embedded/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- nokogiri (LoadError)
	from /opt/vagrant/embedded/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	from /Users/pieter.jvrensburg/.vagrant.d/gems/2.2.5/gems/vagrant-parallels-1.7.4/lib/vagrant-parallels/driver/base.rb:2:in `<top (required)>'
	from /Users/pieter.jvrensburg/.vagrant.d/gems/2.2.5/gems/vagrant-parallels-1.7.4/lib/vagrant-parallels/driver/meta.rb:4:in `require_relative'
	from /Users/pieter.jvrensburg/.vagrant.d/gems/2.2.5/gems/vagrant-parallels-1.7.4/lib/vagrant-parallels/driver/meta.rb:4:in `<top (required)>'
	from /Users/pieter.jvrensburg/.vagrant.d/gems/2.2.5/gems/vagrant-parallels-1.7.4/lib/vagrant-parallels/provider.rb:16:in `usable?'
	from /opt/vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/vagrantfile.rb:138:in `machine_config'
	from /opt/vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/vagrantfile.rb:45:in `machine'
	from /opt/vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/environment.rb:669:in `machine'
	from /opt/vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/plugin/v2/command.rb:177:in `block in with_target_vms'
	from /opt/vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/plugin/v2/command.rb:201:in `call'
	from /opt/vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/plugin/v2/command.rb:201:in `block in with_target_vms'
	from /opt/vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/plugin/v2/command.rb:183:in `each'
	from /opt/vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/plugin/v2/command.rb:183:in `with_target_vms'
	from /opt/vagrant/embedded/gems/gems/vagrant-1.9.5/plugins/commands/up/command.rb:131:in `install_providers'
	from /opt/vagrant/embedded/gems/gems/vagrant-1.9.5/plugins/commands/up/command.rb:85:in `execute'
	from /opt/vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/cli.rb:42:in `execute'
	from /opt/vagrant/embedded/gems/gems/vagrant-1.9.5/lib/vagrant/environment.rb:308:in `cli'
	from /opt/vagrant/embedded/gems/gems/vagrant-1.9.5/bin/vagrant:138:in `<main>'
@legal90

This comment has been minimized.

Show comment
Hide comment
@legal90

legal90 May 18, 2017

Member

@pieterjvrensburg Hi! What Vagrant version do you use?
Try to reinstall the plugin:

vagrant plugin uninstall vagrant-parallels
vagrant plugin install vagrant-parallels

Does it help?

Member

legal90 commented May 18, 2017

@pieterjvrensburg Hi! What Vagrant version do you use?
Try to reinstall the plugin:

vagrant plugin uninstall vagrant-parallels
vagrant plugin install vagrant-parallels

Does it help?

@legal90

This comment has been minimized.

Show comment
Hide comment
@legal90
Member

legal90 commented May 18, 2017

@pieterjvrensburg

This comment has been minimized.

Show comment
Hide comment
@pieterjvrensburg

pieterjvrensburg May 18, 2017

I am running the latest, also updated before getting to this point.

➜  centos-6.9 vagrant --version
Vagrant 1.9.5

I have tried uninstalling and re-installing the plugin. Yesterday I uninstalled everything and started fresh, but will try the above suggestions.

pieterjvrensburg commented May 18, 2017

I am running the latest, also updated before getting to this point.

➜  centos-6.9 vagrant --version
Vagrant 1.9.5

I have tried uninstalling and re-installing the plugin. Yesterday I uninstalled everything and started fresh, but will try the above suggestions.

@pieterjvrensburg

This comment has been minimized.

Show comment
Hide comment
@pieterjvrensburg

pieterjvrensburg May 18, 2017

Hi @legal90,

Thank you for the links, #8594 worked for me. This is what I did:

➜  centos-6.9 NOKOGIRI_USE_SYSTEM_LIBRARIES=true vagrant plugin install nokogiri 
Installing the 'nokogiri' plugin. This can take a few minutes...
Building native extensions.  This could take a while...
Installed the plugin 'nokogiri (1.7.2)'!

➜  centos-6.8 vagrant up --provider parallels 
WARNING: Nokogiri was built against LibXML version 2.9.4, but has dynamically loaded 2.9.2
Bringing machine 'default' up with 'parallels' provider...

I have libxml2 2.9.4 installed via Homebrew.

Is the warning something to worry about?

pieterjvrensburg commented May 18, 2017

Hi @legal90,

Thank you for the links, #8594 worked for me. This is what I did:

➜  centos-6.9 NOKOGIRI_USE_SYSTEM_LIBRARIES=true vagrant plugin install nokogiri 
Installing the 'nokogiri' plugin. This can take a few minutes...
Building native extensions.  This could take a while...
Installed the plugin 'nokogiri (1.7.2)'!

➜  centos-6.8 vagrant up --provider parallels 
WARNING: Nokogiri was built against LibXML version 2.9.4, but has dynamically loaded 2.9.2
Bringing machine 'default' up with 'parallels' provider...

I have libxml2 2.9.4 installed via Homebrew.

Is the warning something to worry about?

@legal90 legal90 changed the title from Unable to start up parallels provider since 1.7.4 to Unable to start up parallels provider since Vagrant 1.9.5 May 27, 2017

@legal90

This comment has been minimized.

Show comment
Hide comment
@legal90

legal90 May 27, 2017

Member

That issue was fixed by GH-298, the fix was released in vagrant-parallels v1.7.5.

How to use vagrant-parallels plugin with Vagrant v1.9.5

  1. Remove it (if it was previously installed):
$ vagrant plugin uninstall vagrant-parallels
  1. Install it with NOKOGIRI_USE_SYSTEM_LIBRARIES env variable defined:
$ NOKOGIRI_USE_SYSTEM_LIBRARIES=true vagrant plugin install vagrant-parallels

Done. After that vagrant-parallels plugin should work fine. The only thing you might be confused about is the LibXML warning like this one:

$ vagrant up
WARNING: Nokogiri was built against LibXML version 2.9.4, but has dynamically loaded 2.9.2
Bringing machine 'default' up with 'parallels' provider...
...

Just disregard this warning for now. It's caused by the difference between LibXML version bundled with Vagrant and the one installed on your macOS. However, it should not affect the plugin's operation.

Member

legal90 commented May 27, 2017

That issue was fixed by GH-298, the fix was released in vagrant-parallels v1.7.5.

How to use vagrant-parallels plugin with Vagrant v1.9.5

  1. Remove it (if it was previously installed):
$ vagrant plugin uninstall vagrant-parallels
  1. Install it with NOKOGIRI_USE_SYSTEM_LIBRARIES env variable defined:
$ NOKOGIRI_USE_SYSTEM_LIBRARIES=true vagrant plugin install vagrant-parallels

Done. After that vagrant-parallels plugin should work fine. The only thing you might be confused about is the LibXML warning like this one:

$ vagrant up
WARNING: Nokogiri was built against LibXML version 2.9.4, but has dynamically loaded 2.9.2
Bringing machine 'default' up with 'parallels' provider...
...

Just disregard this warning for now. It's caused by the difference between LibXML version bundled with Vagrant and the one installed on your macOS. However, it should not affect the plugin's operation.

@legal90

This comment has been minimized.

Show comment
Hide comment
@legal90

legal90 Jul 8, 2017

Member

UPDATE: The problem was solved in Vagrant 1.9.7:

$ vagrant plugin install vagrant-parallels
Installing the 'vagrant-parallels' plugin. This can take a few minutes...
Fetching: mini_portile2-2.2.0.gem (100%)
Fetching: nokogiri-1.8.0.gem (100%)
Building native extensions.  This could take a while...
Fetching: vagrant-parallels-1.7.5.gem (100%)
Member

legal90 commented Jul 8, 2017

UPDATE: The problem was solved in Vagrant 1.9.7:

$ vagrant plugin install vagrant-parallels
Installing the 'vagrant-parallels' plugin. This can take a few minutes...
Fetching: mini_portile2-2.2.0.gem (100%)
Fetching: nokogiri-1.8.0.gem (100%)
Building native extensions.  This could take a while...
Fetching: vagrant-parallels-1.7.5.gem (100%)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment