Giter Club home page Giter Club logo

vagrant-snap's Introduction

What's this?

vagrant snapshot management plugin can handle multi-vm environment.

Install

gem install vagrant-snap

Following commands are added

Tasks:
  vagrant snap back                   # back to current snapshot
  vagrant snap delete SNAP_NAME       # delete snapshot
  vagrant snap go SNAP_NAME           # go to specified snapshot
  vagrant snap help [COMMAND]         # Describe subcommands or one specific subcommand
  vagrant snap list                   # list snapshot
  vagrant snap take [NAME] [-d DESC]  # take snapshot

Screen capture

vagrant_snap_list

Example

In actual example, current snapshot is highlighted with yellow ANSI color.

t510 dev/vagtest02% vagrant snap take
[db]
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
[web]
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
t510 dev/vagtest02% 
t510 [1] dev/vagtest02% vagrant snap list    
[db]
+-db-01 [ 16 seconds ]
[web]
+-web-01 [ 14 seconds ]
t510 dev/vagtest02% vagrant snap take -d "2nd snap"
[db]
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
[web]
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
t510 dev/vagtest02% vagrant snap list 
[db]
+-db-01 [ 48 seconds ]
    +-db-02 [ 10 seconds ] 2nd snap
[web]
+-web-01 [ 47 seconds ]
    +-web-02 [ 8 seconds ] 2nd snap
t510 dev/vagtest02% vagrant snap go web-01 web                 
[web]
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Restoring snapshot 283d90aa-ef75-4316-a847-e04961c2ec26
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Waiting for the VM to power on...
VM has been successfully started.
t510 dev/vagtest02% vagrant snap list 
[db]
+-db-01 [ 1 minute ]
    +-db-02 [ 40 seconds ] 2nd snap
[web]
+-web-01 [ 1 minute ]
    +-web-02 [ 38 seconds ] 2nd snap
t510 dev/vagtest02% 

Similar project

sahara

Other

I intentionally avoided naming this plugin as 'vagrant-snapshot', because I believe Vagrant author
implement snap shot management feature and want to use 'snapshot' as command name.

VM configuration

In my experience, to avoid VERR_SSM_LOAD_CONFIG_MISMATCH error when restoreing snaphot,
disable USB controller and absolte pointing device.

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.