VBoxManage.exe: error: Failed to create medium

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%
Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.