personal image registories for my oss project
t9md / vagrant-snap Goto Github PK
View Code? Open in Web Editor NEWsnapshoft management plugin for vagrant
License: MIT License
snapshoft management plugin for vagrant
License: MIT License
personal image registories for my oss project
$ 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)
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?
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...
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:inrequire': 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:in
require'
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:in
require'
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_init.rb:5:in
rescue 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:in
load'
from /Users/samm/.rvm/gems/ruby-1.9.3-p286/gems/vagrant-1.0.5/lib/vagrant/plugin.rb:68:inblock (2 levels) in load!' from /Users/samm/.rvm/gems/ruby-1.9.3-p286/gems/vagrant-1.0.5/lib/vagrant/plugin.rb:42:in
each'
from /Users/samm/.rvm/gems/ruby-1.9.3-p286/gems/vagrant-1.0.5/lib/vagrant/plugin.rb:42:inblock in load!' from /Users/samm/.rvm/gems/ruby-1.9.3-p286/gems/vagrant-1.0.5/lib/vagrant/plugin.rb:37:in
each'
from /Users/samm/.rvm/gems/ruby-1.9.3-p286/gems/vagrant-1.0.5/lib/vagrant/plugin.rb:37:inload!' from /Users/samm/.rvm/gems/ruby-1.9.3-p286/gems/vagrant-1.0.5/lib/vagrant/environment.rb:514:in
load_plugins'
from /Users/samm/.rvm/gems/ruby-1.9.3-p286/gems/vagrant-1.0.5/lib/vagrant/environment.rb:97:ininitialize' from /Users/samm/.rvm/gems/ruby-1.9.3-p286/gems/vagrant-1.0.5/bin/vagrant:36:in
new'
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:in
load'
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:in
eval'
from /Users/samm/.rvm/gems/ruby-1.9.3-p286/bin/ruby_noexec_wrapper:14:in `
samm@samm-mbp:~
gem uninstall vagrant-snap
Successfully uninstalled vagrant-snap-0.10
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
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
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.
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>'
The project https://github.com/dotless-de/vagrant-vbguest makes a differentiation between the 0.9 and the standalone version 1.0.
The doc can be borrowed from the vagrant-vbguest. ;-)
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$
undefined method
name' for nil:NilClass (NoMethodError)`
This is while trying to run vagrant snap take
.
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:in
require'
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:in
require'
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:in
load!'
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:in
load!'
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:in
load!'
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:in
initialize'
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:in
load'
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]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.