While creating the VBOX disk for use in Oracle RAC environment, i am getting the duplicate error when fire the command as follows:
Command:
C:\TESTWORK\disks>"C:\TESTWORK\VirtualBox\VBoxManage.exe" createhd --filename asm1.vdi --size 4096 --format VDI --variant FIXED
Error:
C:\TESTWORK\disks>"C:\TESTWORK\VirtualBox\VBoxManage.exe" createhd --filename asm1.vdi --size 4096 --format VDI --variant FIXED
0%...VBOX_E_FILE_ERROR
VBoxManage.exe: error: Failed to create medium
VBoxManage.exe: error: Could not create the medium storage unit 'C:\TESTWORK\disks\asm1.vdi'.
VBoxManage.exe: error: VDI: cannot create image 'C:\TESTWORK\disks\asm1.vdi' (VERR_ALREADY_EXISTS)
VBoxManage.exe: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component MediumWrap, interface IMedium
VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleCreateMedium(struct HandlerArg *)" at line 634 of file VBoxManageDisk.cpp
Solution:
First delete the asm1.vdi which already created medium we are trying to create again cause the error:
C:\TESTWORK\disks>"C:\TESTWORK\VirtualBox\VBoxManage.exe" closemedium asm1.vdi --delete
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%