Giter Club home page Giter Club logo

vagrant-snap's Introduction

personal image registories for my oss project

vagrant-snap's People

Contributors

ches avatar dergachev avatar ryansch avatar sciurus avatar t9md avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

vagrant-snap's Issues

NullPointerError on vagrant snap take

$ vagrant snap take
[default]
/Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/virtualbox-0.9.2/lib/virtualbox/com/ffi/interface.rb:128:in `[]': invalid memory read at address=0x00000000000000 (FFI::NullPointerError)
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/virtualbox-0.9.2/lib/virtualbox/com/ffi/interface.rb:128:in `initialize_vtbl'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/virtualbox-0.9.2/lib/virtualbox/com/ffi/interface.rb:122:in `initialize'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/virtualbox-0.9.2/lib/virtualbox/com/implementer/ffi.rb:27:in `new'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/virtualbox-0.9.2/lib/virtualbox/com/implementer/ffi.rb:27:in `ffi_interface'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/virtualbox-0.9.2/lib/virtualbox/com/implementer/ffi.rb:80:in `call_vtbl_function'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/virtualbox-0.9.2/lib/virtualbox/com/implementer/ffi.rb:61:in `call_function'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/virtualbox-0.9.2/lib/virtualbox/com/abstract_interface.rb:145:in `call_function'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/virtualbox-0.9.2/lib/virtualbox/com/abstract_interface.rb:62:in `block in function'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/virtualbox-0.9.2/lib/virtualbox/vm.rb:201:in `find'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-snap-0.10/lib/vagrant_snap.rb:22:in `parse_tree'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-snap-0.10/lib/vagrant_snap.rb:222:in `block in take'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-snap-0.10/lib/vagrant_snap.rb:154:in `call'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-snap-0.10/lib/vagrant_snap.rb:154:in `block in safe_with_target_vms'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-1.0.5/lib/vagrant/command/base.rb:116:in `block in with_target_vms'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-1.0.5/lib/vagrant/command/base.rb:111:in `each'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-1.0.5/lib/vagrant/command/base.rb:111:in `with_target_vms'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-snap-0.10/lib/vagrant_snap.rb:148:in `safe_with_target_vms'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-snap-0.10/lib/vagrant_snap.rb:221:in `take'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-snap-0.10/lib/vagrant_snap.rb:131:in `execute'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-1.0.5/lib/vagrant/cli.rb:42:in `execute'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-1.0.5/lib/vagrant/environment.rb:167:in `cli'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/gems/vagrant-1.0.5/bin/vagrant:43:in `<top (required)>'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/bin/vagrant:19:in `load'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/bin/vagrant:19:in `<main>'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `eval'
  from /Users/vaughn/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `<main>'


Gem versions:
vagrant (1.0.5)
vagrant-snap (0.10)
virtualbox (0.9.2)

Only works with a multi-vm environment

Running:
$ vagrant snap take mysnapshot
A multi-vm environment is required for name specification to this command.

Shouldn't snapshot work in a single vm environment?

vagrant-snap breaks vagrant

install vagrant-snap

gem install vagrant-snap
Fetching: colored-1.2.gem (100%)
Fetching: vagrant-snap-0.10.gem (100%)
Successfully installed colored-1.2
Successfully installed vagrant-snap-0.10
2 gems installed
Installing ri documentation for colored-1.2...
Installing ri documentation for vagrant-snap-0.10...
Installing RDoc documentation for colored-1.2...
Installing RDoc documentation for vagrant-snap-0.10...

try to run vagrant

samm@samm-mbp:~

vagrant
/Users/samm/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require': cannot load such file -- virtualbox (LoadError) from /Users/samm/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire'
from /Users/samm/.rvm/gems/ruby-1.9.3-p286/gems/vagrant-snap-0.10/lib/vagrant_snap.rb:1:in <top (required)>' from /Users/samm/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire'
from /Users/samm/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from /Users/samm/.rvm/gems/ruby-1.9.3-p286/gems/vagrant-snap-0.10/lib/vagrant_init.rb:5:inrescue in <top (required)>'
from /Users/samm/.rvm/gems/ruby-1.9.3-p286/gems/vagrant-snap-0.10/lib/vagrant_init.rb:1:in <top (required)>' from /Users/samm/.rvm/gems/ruby-1.9.3-p286/gems/vagrant-1.0.5/lib/vagrant/plugin.rb:68:inload'
from /Users/samm/.rvm/gems/ruby-1.9.3-p286/gems/vagrant-1.0.5/lib/vagrant/plugin.rb:68:in block (2 levels) in load!' from /Users/samm/.rvm/gems/ruby-1.9.3-p286/gems/vagrant-1.0.5/lib/vagrant/plugin.rb:42:ineach'
from /Users/samm/.rvm/gems/ruby-1.9.3-p286/gems/vagrant-1.0.5/lib/vagrant/plugin.rb:42:in block in load!' from /Users/samm/.rvm/gems/ruby-1.9.3-p286/gems/vagrant-1.0.5/lib/vagrant/plugin.rb:37:ineach'
from /Users/samm/.rvm/gems/ruby-1.9.3-p286/gems/vagrant-1.0.5/lib/vagrant/plugin.rb:37:in load!' from /Users/samm/.rvm/gems/ruby-1.9.3-p286/gems/vagrant-1.0.5/lib/vagrant/environment.rb:514:inload_plugins'
from /Users/samm/.rvm/gems/ruby-1.9.3-p286/gems/vagrant-1.0.5/lib/vagrant/environment.rb:97:in initialize' from /Users/samm/.rvm/gems/ruby-1.9.3-p286/gems/vagrant-1.0.5/bin/vagrant:36:innew'
from /Users/samm/.rvm/gems/ruby-1.9.3-p286/gems/vagrant-1.0.5/bin/vagrant:36:in <top (required)>' from /Users/samm/.rvm/gems/ruby-1.9.3-p286/bin/vagrant:19:inload'
from /Users/samm/.rvm/gems/ruby-1.9.3-p286/bin/vagrant:19:in <main>' from /Users/samm/.rvm/gems/ruby-1.9.3-p286/bin/ruby_noexec_wrapper:14:ineval'
from /Users/samm/.rvm/gems/ruby-1.9.3-p286/bin/ruby_noexec_wrapper:14:in `

'

uninstall vagrant-snap

samm@samm-mbp:~

gem uninstall vagrant-snap
Successfully uninstalled vagrant-snap-0.10

vagrant works again

samm@samm-mbp:~

vagrant
Usage: vagrant [-v] [-h] command []

-v, --version                    Print the version and exit.
-h, --help                       Print this help.

Available subcommands:
box
destroy
gem
halt
init
package
provision
reload
resume
ssh
ssh-config
status
suspend
up

For help on any individual command run vagrant COMMAND -h

Environment: OSX 10.8.2

gem environment
RubyGems Environment:

  • RUBYGEMS VERSION: 1.8.24
  • RUBY VERSION: 1.9.3 (2012-10-12 patchlevel 286) [x86_64-darwin12.2.0]
  • INSTALLATION DIRECTORY: /Users/samm/.rvm/gems/ruby-1.9.3-p286
  • RUBY EXECUTABLE: /Users/samm/.rvm/rubies/ruby-1.9.3-p286/bin/ruby
  • EXECUTABLE DIRECTORY: /Users/samm/.rvm/gems/ruby-1.9.3-p286/bin
  • RUBYGEMS PLATFORMS:
    • ruby
    • x86_64-darwin-12
  • GEM PATHS:
    • /Users/samm/.rvm/gems/ruby-1.9.3-p286
    • /Users/samm/.rvm/gems/ruby-1.9.3-p286@global
  • GEM CONFIGURATION:
    • :update_sources => true
    • :verbose => true
    • :benchmark => false
    • :backtrace => false
    • :bulk_threshold => 1000
  • REMOTE SOURCES:

vagrant --version
Vagrant version 1.0.5

cookbooks_path not available after vagrant snap back

Hello!

first thanks for vagrant snap! I'm really thankful that you took the time to work and publish this, this is saving me a lot of time currently.

I noticed that when using vagrant snap back then vagrant provision, if I have specified a cookbooks_path on the chef solo provisioner, then Vagrant complains that the cookbooks aren't there.

I'm not sure if something must be done in vagrant snap or not, but thought you'd like to know.

My current fix is to vagrant halt then vagrant up again.

Does not work under Vagrant 0.9.3

I really like this plugin, but it did not work under Vagrant 0.9.3, giving this exception:

/Users/gits/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-snap-0.09/lib/vagrant_snap.rb:94:in `<module:Snap>': uninitialized constant Vagrant::Command::GroupBase (NameError)
    from /Users/gits/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-snap-0.09/lib/vagrant_snap.rb:3:in `<top (required)>'
    from /Users/gits/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:58:in `require'
    from /Users/gits/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:58:in `rescue in require'
    from /Users/gits/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
    from /Users/gits/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-snap-0.09/lib/vagrant_init.rb:2:in `<top (required)>'
    from /Users/gits/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.9.3/lib/vagrant/plugin.rb:76:in `load'
    from /Users/gits/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.9.3/lib/vagrant/plugin.rb:76:in `initialize'
    from /Users/gits/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.9.3/lib/vagrant/plugin.rb:58:in `new'
    from /Users/gits/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.9.3/lib/vagrant/plugin.rb:58:in `block (2 levels) in load!'
    from /Users/gits/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.9.3/lib/vagrant/plugin.rb:43:in `each'
    from /Users/gits/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.9.3/lib/vagrant/plugin.rb:43:in `block in load!'
    from /Users/gits/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.9.3/lib/vagrant/plugin.rb:38:in `each'
    from /Users/gits/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.9.3/lib/vagrant/plugin.rb:38:in `load!'
    from /Users/gits/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.9.3/lib/vagrant.rb:185:in `<top (required)>'
    from /Users/gits/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /Users/gits/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /Users/gits/.rvm/gems/ruby-1.9.2-p180/gems/vagrant-0.9.3/bin/vagrant:3:in `<top (required)>'
    from /Users/gits/.rvm/gems/ruby-1.9.2-p180/bin/vagrant:19:in `load'
    from /Users/gits/.rvm/gems/ruby-1.9.2-p180/bin/vagrant:19:in `<main>'

Respect `vagrant --no-color` global option.

The vagrant-snap implementation hard codes "yellow" and does not respect vagrant --no-color.

$ vagrant --no-color snap list | cat -e
[default]$
 ^[[33ma-snapshot [ 15 minutes ]^[[0m$

Nil @ vagrant_snap.rb:105

undefined method name' for nil:NilClass (NoMethodError)`

This is while trying to run vagrant snap take.

no such file to load -- virtualbox

After installing vagrant-snap, every vagrant command I run results in the error below

bash-3.2$ gem list | grep vagrant
vagrant (1.0.3)
vagrant-hiera (0.2.1, 0.1.31)
vagrant-puppetconf (0.1.5, 0.1.3, 0.1.2)
vagrant-vbguest (0.3.2)

bash-3.2$ gem install vagrant-snap
Fetching: vagrant-snap-0.10.gem (100%)
Successfully installed vagrant-snap-0.10
1 gem installed

bash-3.2$ gem list | grep vagrant
vagrant (1.0.3)
vagrant-hiera (0.2.1, 0.1.31)
vagrant-puppetconf (0.1.5, 0.1.3, 0.1.2)
vagrant-snap (0.10)
vagrant-vbguest (0.3.2)

bash-3.2$ vagrant snap
/Users/gposton/.rvm/rubies/ruby-1.8.7-p358/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in gem_original_require': no such file to load -- virtualbox (LoadError) from /Users/gposton/.rvm/rubies/ruby-1.8.7-p358/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:inrequire'
from /Users/gposton/.rvm/gems/ruby-1.8.7-p358@provisioning/gems/vagrant-snap-0.10/lib/vagrant_snap.rb:1
from /Users/gposton/.rvm/rubies/ruby-1.8.7-p358/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in gem_original_require' from /Users/gposton/.rvm/rubies/ruby-1.8.7-p358/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:inrequire'
from /Users/gposton/.rvm/gems/ruby-1.8.7-p358@provisioning/gems/vagrant-snap-0.10/lib/vagrant_init.rb:5
from /Users/gposton/.rvm/gems/ruby-1.8.7-p358@provisioning/gems/vagrant-1.0.3/lib/vagrant/plugin.rb:68:in load' from /Users/gposton/.rvm/gems/ruby-1.8.7-p358@provisioning/gems/vagrant-1.0.3/lib/vagrant/plugin.rb:68:inload!'
from /Users/gposton/.rvm/gems/ruby-1.8.7-p358@provisioning/gems/vagrant-1.0.3/lib/vagrant/plugin.rb:42:in each' from /Users/gposton/.rvm/gems/ruby-1.8.7-p358@provisioning/gems/vagrant-1.0.3/lib/vagrant/plugin.rb:42:inload!'
from /Users/gposton/.rvm/gems/ruby-1.8.7-p358@provisioning/gems/vagrant-1.0.3/lib/vagrant/plugin.rb:37:in each' from /Users/gposton/.rvm/gems/ruby-1.8.7-p358@provisioning/gems/vagrant-1.0.3/lib/vagrant/plugin.rb:37:inload!'
from /Users/gposton/.rvm/gems/ruby-1.8.7-p358@provisioning/gems/vagrant-1.0.3/lib/vagrant/environment.rb:514:in load_plugins' from /Users/gposton/.rvm/gems/ruby-1.8.7-p358@provisioning/gems/vagrant-1.0.3/lib/vagrant/environment.rb:97:ininitialize'
from /Users/gposton/.rvm/gems/ruby-1.8.7-p358@provisioning/gems/vagrant-1.0.3/bin/vagrant:36:in new' from /Users/gposton/.rvm/gems/ruby-1.8.7-p358@provisioning/gems/vagrant-1.0.3/bin/vagrant:36 from /Users/gposton/.rvm/gems/ruby-1.8.7-p358@provisioning/bin/vagrant:19:inload'
from /Users/gposton/.rvm/gems/ruby-1.8.7-p358@provisioning/bin/vagrant:19

bash-3.2$ VBoxManage -v
4.1.18r78361

bash-3.2$ ruby -v
ruby 1.8.7 (2012-02-08 patchlevel 358) [i686-darwin11.3.0]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.