前提・実現したいこと
仮想マシンのセットアップ・起動をしたい(VirtualBox、Vagrant導入済)
発生している問題・エラーメッセージ
- コマンドプロンプトでCドライブ直下に「SukkiriC」フォルダを作成し、そこにVagrantの設定ファイルを作成
- vagrant upの実行
以上の手順で行ったところ、同名のVMがすでに存在するというエラーが発生しました。
The name of your virtual machine couldn't be set because VirtualBox is reporting another VM with that name already exists. Most of the time, this is because of an error with VirtualBox not cleaning up properly. To fix this, verify that no VMs with that name do exist (by opening the VirtualBox GUI). If they don't, then look at the folder in the error message from VirtualBox below and remove it if there isn't any information you need in there. VirtualBox error: VBoxManage.exe: error: Could not rename the directory 'C:\Users\shota\VirtualBox VMs\codearea_sc_1547436841605_63089' to 'C:\Users\shota\VirtualBox VMs\codearea_sc' to save the settings file (VERR_ALREADY_EXISTS) VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component SessionMachine, interface IMachine, callee IUnknown VBoxManage.exe: error: Context: "SaveSettings()" at line 3182 of file VBoxManageModifyVM.cpp
該当のソースコード
C:\Windows\system32>vagrant --version Vagrant 2.2.3 C:\Users>mkdir C:\SukkiriC C:\Users>cd C:\SukkiriC C:\SukkiriC>vagrant init -f flairlink/codearea_sc A `Vagrantfile` has been placed in this directory. You are now ready to `vagrant up` your first virtual environment! Please read the comments in the Vagrantfile as well as documentation on `vagrantup.com` for more information on using Vagrant. C:\SukkiriC>vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Box 'flairlink/codearea_sc' could not be found. Attempting to find and install... default: Box Provider: virtualbox default: Box Version: >= 0 ==> default: Loading metadata for box 'flairlink/codearea_sc' default: URL: https://vagrantcloud.com/flairlink/codearea_sc ==> default: Adding box 'flairlink/codearea_sc' (v18.6.0) for provider: virtualbox default: Downloading: https://vagrantcloud.com/flairlink/boxes/codearea_sc/versions/18.6.0/providers/virtualbox.box default: Download redirected to host: vagrantcloud-files-production.s3.amazonaws.com default: ==> default: Successfully added box 'flairlink/codearea_sc' (v18.6.0) for 'virtualbox'! ==> default: Importing base box 'flairlink/codearea_sc'... ==> default: Matching MAC address for NAT networking... ==> default: Checking if box 'flairlink/codearea_sc' version '18.6.0' is up to date... ==> default: Setting the name of the VM: codearea_sc
試したこと
vagrant destroy
でidを削除- VMファイルを直接削除
- VirtualBoxを起動させ、VMを電源オフの状態で右クリック→除去
- VirtualBox、Vagrantの再インストール
補足情報(FW/ツールのバージョンなど)
使用PC Windows10 Pro 61bit
VirtualBox...Ver6.0
Vagrant...Ver2.2.3
あなたの回答
tips
プレビュー