vagrant-vbox-snapshotプラグインまとめ
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
[[Vagrant]]
*説明 [#t1d66280]
saharaよりもおおまかに全体のスナップショットを複数取得す...
*プラグインのインストール [#r2e6b8dc]
$ vagrant plugin install vagrant-vbox-snapshot
**スナップショットの取得 [#oaf02416]
$ vagrant snapshot take <snapshot-name>
**直前のスナップショットの復元 [#he6571dd]
$ vagrant snapshot back
**任意のスナップショットの復元 [#l7b1b3d9]
$ vagrant snapshot go <snapshot-name>
**スナップショットの削除 [#v9fad240]
$ vagrant snapshot delete <snapshot-nam>
**スナップショットの一覧表示 [#ha48a1bb]
$ vagrant snapshot list
**スナップショットの取得 [#o735d0e6]
VagrantのVMが稼働している状態でもすぐに取得完了できました。
MacBook-Pro:centos5-1 hogehoge$ vagrant snapshot list
Listing snapshots for 'default':
This machine does not have any snapshots
MacBook-Pro:centos5-1 hogehoge$ vagrant snapshot take ce...
Taking snapshot centos5-1-1st
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...
Snapshot taken. UUID: f9e4367b-6e6b-4f99-8b75-1b4c75186e7f
MacBook-Pro:centos5-1 hogehoge$ vagrant snapshot list
Listing snapshots for 'default':
Name: centos5-1-1st (UUID: f9e4367b-6e6b-4f99-8b75-1b4...
**スナップショットの復元(リストア) [#k71f95bc]
VagrantのVMが稼働している状態でもリストアは可能ですが、再...
MacBook-Pro:centos5-1 hogehoge$ vagrant snapshot list
Listing snapshots for 'default':
Name: centos5-1-1st (UUID: f9e4367b-6e6b-4f99-8b75-1b4...
MacBook-Pro:centos5-1 hogehoge$ vagrant snapshot go cent...
Powering off machine 3d2b982b-1ee1-4358-a30c-77fa84663589
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...
Restoring snapshot f9e4367b-6e6b-4f99-8b75-1b4c75186e7f
Starting restored VM
==> default: Resuming suspended VM...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take ...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default:
default: Vagrant insecure key detected. Vagrant will ...
default: this with a newly generated keypair for bett...
default:
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if it's...
default: Key inserted! Disconnecting and reconnecting...
==> default: Machine booted and ready!
**備考 [#cb498eac]
マルチマシン設定をしている場合は、VM名を指定することでス...
※指定しないと"This command requires a specific VM name to...
$ vagrant snapthot list vm1
$ vagrant snapshot take vm1 test
** [#f0b8396d]
参考URL:http://qiita.com/succi0303/items/e06bca7db5a0c3d...
終了行:
[[Vagrant]]
*説明 [#t1d66280]
saharaよりもおおまかに全体のスナップショットを複数取得す...
*プラグインのインストール [#r2e6b8dc]
$ vagrant plugin install vagrant-vbox-snapshot
**スナップショットの取得 [#oaf02416]
$ vagrant snapshot take <snapshot-name>
**直前のスナップショットの復元 [#he6571dd]
$ vagrant snapshot back
**任意のスナップショットの復元 [#l7b1b3d9]
$ vagrant snapshot go <snapshot-name>
**スナップショットの削除 [#v9fad240]
$ vagrant snapshot delete <snapshot-nam>
**スナップショットの一覧表示 [#ha48a1bb]
$ vagrant snapshot list
**スナップショットの取得 [#o735d0e6]
VagrantのVMが稼働している状態でもすぐに取得完了できました。
MacBook-Pro:centos5-1 hogehoge$ vagrant snapshot list
Listing snapshots for 'default':
This machine does not have any snapshots
MacBook-Pro:centos5-1 hogehoge$ vagrant snapshot take ce...
Taking snapshot centos5-1-1st
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...
Snapshot taken. UUID: f9e4367b-6e6b-4f99-8b75-1b4c75186e7f
MacBook-Pro:centos5-1 hogehoge$ vagrant snapshot list
Listing snapshots for 'default':
Name: centos5-1-1st (UUID: f9e4367b-6e6b-4f99-8b75-1b4...
**スナップショットの復元(リストア) [#k71f95bc]
VagrantのVMが稼働している状態でもリストアは可能ですが、再...
MacBook-Pro:centos5-1 hogehoge$ vagrant snapshot list
Listing snapshots for 'default':
Name: centos5-1-1st (UUID: f9e4367b-6e6b-4f99-8b75-1b4...
MacBook-Pro:centos5-1 hogehoge$ vagrant snapshot go cent...
Powering off machine 3d2b982b-1ee1-4358-a30c-77fa84663589
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...
Restoring snapshot f9e4367b-6e6b-4f99-8b75-1b4c75186e7f
Starting restored VM
==> default: Resuming suspended VM...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take ...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default:
default: Vagrant insecure key detected. Vagrant will ...
default: this with a newly generated keypair for bett...
default:
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if it's...
default: Key inserted! Disconnecting and reconnecting...
==> default: Machine booted and ready!
**備考 [#cb498eac]
マルチマシン設定をしている場合は、VM名を指定することでス...
※指定しないと"This command requires a specific VM name to...
$ vagrant snapthot list vm1
$ vagrant snapshot take vm1 test
** [#f0b8396d]
参考URL:http://qiita.com/succi0303/items/e06bca7db5a0c3d...
ページ名: