Saharaを入れて、suspendの後sandbox on/commitしたら、resumeできなくなった件

saharaというプラグインを入れると、snapshotをとってくれて、どれだけ環境を壊しても、コマンド一つでさくっと戻せるということで早速試してみた。


ほうぼう見て回ると、sandbox on/commitに時間が掛かるが、仮想環境と止めておくと早いとのこと。ではSuspendした状態でやってみよう、まずはインストールから……

D:\vagrant/temp>vagrant plugin install sahara
Installing the 'sahara' plugin. This can take a few minutes...
Installed the plugin 'sahara (0.0.16)'!

D:\vagrant/temp>vagrant suspend
[default] Saving VM state and suspending execution...

D:\vagrant/temp>vagrant sandbox on
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

D:\vagrant/temp>vagrant resume
[default] VM not created. Moving on...

D:\vagrant/temp>vagrant resume
[default] VM not created. Moving on...

D:\vagrant/temp>vagrant sandbox commit
VBoxManage.exe: error: Could not find a registered machine with UUID {99fbe4fd-1
088-41dc-9640-a1d13b75abc7}
VBoxManage.exe: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), compo
nent VirtualBox, interface IVirtualBox, callee IUnknown
VBoxManage.exe: error: Context: "FindMachine(Bstr(VMNameOrUuid).raw(), machine.a
sOutParam())" at line 2495 of file VBoxManageInfo.cpp
[default] Not sandbox mode now

D:\vagrant/temp>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'centos_6.4'...
[default] Waiting for cleanup before exiting...
Vagrant exited after cleanup due to external interrupt.
バッチ ジョブを終了しますか (Y/N)? y

D:\vagrant/temp>vagrant halt --force
[default] VM not created. Moving on...

D:\vagrant/temp>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'centos_6.4'...
[default] Waiting for cleanup before exiting...
[default] Exiting immediately, without cleanup!
バッチ ジョブを終了しますか (Y/N)? y

D:\vagrant/temp>vagrant sandbox status
[default] VM is not created

D:\vagrant/temp>vagrant sandbox off
[default] VM is not created

D:\vagrant/temp>vagrant resume
[default] VM not created. Moving on...

D:\vagrant/temp>vagrant status
Current machine states:

default                   not created (virtualbox)

The environment has not yet been created. Run `vagrant up` to
create the environment. If a machine is not created, only the
default provider will be shown. So if a provider is not listed,
then the machine is not created for that environment.

困った。boxがなくなってしまったようだ。しかたない、始めっからやり直す。

D:\vagrant/temp>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'centos_6.4'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] Booting VM...
[default] Waiting for machine to boot. This may take a few minutes...
Timed out while waiting for the machine to boot. This means that
Vagrant was unable to communicate with the guest machine within
the configured ("config.vm.boot_timeout" value) time period. This can
mean a number of things.

If you're using a custom box, make sure that networking is properly
working and you're able to connect to the machine. It is a common
problem that networking isn't setup properly in these boxes.
Verify that authentication configurations are also setup properly,
as well.

If the box appears to be booting properly, you may want to increase
the timeout ("config.vm.boot_timeout") value.

D:\vagrant/temp>

起動した。どうすればいいんだろうなあ。suspendが駄目だったような気がするけど。