jedi4ever / sahara

a plugin for vagrant that allows you manage a sandbox state
733 stars 53 forks source link

"vagrant sandbox on" on libvirt returns error #56

Open LalatenduMohanty opened 8 years ago

LalatenduMohanty commented 8 years ago

Steps to reproduce:

$ 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>'
vperron commented 8 years ago

Can confirm.

ecirtap commented 8 years ago

Me too:

loriezn commented 7 years ago

Me three:

maxlareo commented 6 years ago

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 commented 6 years ago

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

swadeley commented 5 years ago

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.

ekeyme commented 2 years ago

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

thx. I works for me.