sahara icon indicating copy to clipboard operation
sahara copied to clipboard

"vagrant sandbox on" on libvirt returns error

Open LalatenduMohanty opened this issue 8 years ago • 7 comments

Steps to reproduce:

  • vagrant init centos/7
  • vagrant up
  • vagrant sandbox on
$ vagrant sandbox on
/home/lmohanty/.vagrant.d/gems/gems/sahara-0.0.17/lib/sahara/session/libvirt.rb:1:in `require': cannot load such file -- fog (LoadError)
    from /home/lmohanty/.vagrant.d/gems/gems/sahara-0.0.17/lib/sahara/session/libvirt.rb:1:in `<top (required)>'
    from /home/lmohanty/.vagrant.d/gems/gems/sahara-0.0.17/lib/sahara/session/factory.rb:12:in `require_relative'
    from /home/lmohanty/.vagrant.d/gems/gems/sahara-0.0.17/lib/sahara/session/factory.rb:12:in `create'
    from /home/lmohanty/.vagrant.d/gems/gems/sahara-0.0.17/lib/sahara/command/on.rb:21:in `block in execute'
    from /usr/share/vagrant/lib/vagrant/plugin/v2/command.rb:235:in `block in with_target_vms'
    from /usr/share/vagrant/lib/vagrant/plugin/v2/command.rb:229:in `each'
    from /usr/share/vagrant/lib/vagrant/plugin/v2/command.rb:229:in `with_target_vms'
    from /home/lmohanty/.vagrant.d/gems/gems/sahara-0.0.17/lib/sahara/command/on.rb:19:in `execute'
    from /home/lmohanty/.vagrant.d/gems/gems/sahara-0.0.17/lib/sahara/command/root.rb:52:in `execute'
    from /usr/share/vagrant/lib/vagrant/cli.rb:42:in `execute'
    from /usr/share/vagrant/lib/vagrant/environment.rb:302:in `cli'
    from /usr/share/vagrant/bin/vagrant:174:in `<main>'

LalatenduMohanty avatar Mar 21 '16 06:03 LalatenduMohanty

Can confirm.

vperron avatar Apr 20 '16 15:04 vperron

Me too:

  • vagrant 1.8.1
  • sahara 0.0.17
  • host ubuntu 14.04.4

ecirtap avatar May 06 '16 11:05 ecirtap

Me three:

  • vagrant 1.9.4
  • sahara 0.0.17
  • host arch kernal 4.10.13

loriezn avatar May 17 '17 22:05 loriezn

Here as well, the issue is still there with :

$ uname -a
Linux dmu181 4.4.0-93-generic #116-Ubuntu SMP Fri Aug 11 21:17:51 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

$ vagrant plugin list
sahara (0.0.17)
  - Version Constraint: > 0
vagrant-libvirt (0.0.43)
  - Version Constraint: > 0

$ vagrant -v
Vagrant 2.0.3

maxlareo avatar Apr 18 '18 15:04 maxlareo

Seems like the commit 02f4e5f solve this problem, because by installing the plugin from the sources, it works !

maxlareo avatar Apr 18 '18 15:04 maxlareo

Seems like the commit 02f4e5f solve this problem, because by installing the plugin from the sources, it works !

Thanks for sharing that. After vagrant plugin install sahara I hit this issue. I edited the file like in the commit then it worked.

I have been told to try 'rvm use system' then sahara again next time.

swadeley avatar May 10 '19 14:05 swadeley

Seems like the commit 02f4e5f solve this problem, because by installing the plugin from the sources, it works !

thx. I works for me.

ekeyme avatar Sep 17 '21 05:09 ekeyme