LoginSignup
3
2

More than 5 years have passed since last update.

vagrant upで"Could not rename the directory"なんて言われたとき

Posted at

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の方の設定を変えても良いみたい。

  • ファイル>環境設定>一般>デフォルトの仮想マシンフォルダー
3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2