Windowsで環境構築してたら発生した問題。Macは試してない。
Stderr: VBoxManage.exe: error: Could not rename the directory 'C:\Users\XXXXXX\V
irtualBox VMs\xxxxxxto 'C:\Users\XXXXXX\VirtualBox VMs\xxxxxx_default_13839930
77' to save the settings file (VERR_SHARING_VIOLATION)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component SessionMachi
ne, interface IMachine, callee IUnknown
VBoxManage.exe: error: Context: "SaveSettings()" at line 2711 of file VBoxManage
ModifyVM.cpp
vagrant
コマンドで作業するのを~/Virtual\ Box
以外でやる。
cd ~
mkdir myVM
cd myVM
vagrant initi xxxxxx
vagrant up
あるいは、VirtualBoxの方の設定を変えても良いみたい。
- ファイル>環境設定>一般>デフォルトの仮想マシンフォルダー