諸事情でvagrantを入れなおしたところ、saharaをインストールしても動かなかった。
C:\Users\tarr>vagrant sandbox status
C:/Users/tarr/.vagrant.d/gems/gems/sahara-0.0.17/lib/sahara/session
/virtualbox.rb:36:in ``': Invalid argument - "D:\Tools\VirtualBox;D:\Tools\Virtu
albox\VBoxManage.exe" showvminfo --machinereadable "0569db6f-0e32-44b1-b8ff-1b5c
e657157e" (Errno::EINVAL)
from C:/Users/tarr/.vagrant.d/gems/gems/sahara-0.0.17/lib/s
ahara/session/virtualbox.rb:36:in `list_snapshots'
from C:/Users/tarr/.vagrant.d/gems/gems/sahara-0.0.17/lib/s
ahara/session/virtualbox.rb:46:in `is_snapshot_mode_on?'
from C:/Users/tarr/.vagrant.d/gems/gems/sahara-0.0.17/lib/s
ahara/command/status.rb:27:in `block in execute'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/p
lugin/v2/command.rb:185:in `block in with_target_vms'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/p
lugin/v2/command.rb:183:in `each'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/p
lugin/v2/command.rb:183:in `with_target_vms'
from C:/Users/tarr/.vagrant.d/gems/gems/sahara-0.0.17/lib/s
ahara/command/status.rb:20:in `execute'
from C:/Users/tarr/.vagrant.d/gems/gems/sahara-0.0.17/lib/s
ahara/command/root.rb:52:in `execute'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/c
li.rb:38:in `execute'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/e
nvironment.rb:478:in `cli'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.5/bin/vagrant:9
6:in `<top (required)>'
from C:/HashiCorp/Vagrant/bin//../embedded/../embedded/gems/bin/vagrant:
23:in `load'
from C:/HashiCorp/Vagrant/bin//../embedded/../embedded/gems/bin/vagrant:
23:in `<main>'
どうやら、環境変数をいじって、virtualboxのhomeを変更していることが原因っぽい。
変数名 | 値 |
---|---|
VBOX_INSTALL_PATH | %VBOX_MSI_INSTALL_PATH% |
VBOX_MSI_INSTALL_PATH | D:\Tools\VirtualBox;D:\Tools\Virtualbox\ |
上記のようになっていた。virtual boxをCドライブからDドライブにうつした時に設定した気がする。エラーに出ている
C:/Users/tarr/.vagrant.d/gems/gems/sahara-0.0.17/lib/s
ahara/session/virtualbox.rb
このファイルを見てみると、VBOX_INSTALL_PATHやVBOX_MSI_INSTALL_PATHいうのが大量にある。これは怪しいで…
とりあえず、VBOX_MSI_INSTALL_PATHの値がなんか気持ち悪い感じになっているので、D:\Tools\VirtualBox;D:\Tools\Virtualbox\
から D:\Tools\Virtualbox\
こう修正して、windowsを再起動した。
治った