This article will tell you how to fix the error failed to create the hard disk storage D:\Work\VirtualBox-VM\Windows10\Windows10.vdi when you create a new guest virtual machine in VirtualBox.
1. The Detail Error Messages.
- Below is the detailed error message.
Failed to create the hard disk storage D:\Work\VirtualBox-VM\Windows10\Windows10.vdi. Cannot register the hard disk 'D:\Work\VirtualBox-VM\Windows10\Windows10.vdi' {75ff6d95-3b1d-4cef-80c8-0db461f06dac} because a hard disk 'D:\Work\VirtualBox-VM\Windows10\Windows10.vdi' with UUID {22bb3dd5-959c-4456-9bdb-5f3f96601cdc} already exists. Result Code: E_INVALIDARG (0x80070057) Component: VirtualBoxWrap Interface: IVirtualBox {d0a0163f-e254-4e5b-a1f2-011cf991c38d}
2. Steps To Reproduce The Error.
- Open VirtualBox Manager, and create a new virtual machine in it.
- Select the Create a new hard disk now radio button on the Hard disk wizard dialog, then click the Create button.
- Select the VDI(VirtualBox Disk Image) radio button on the Hard disk file type wizard dialog, then click the Next button.
- Select the Dynamically allocated radio button on the Storage on physical hard disk wizard dialog, then click the Next button.
- Click the Create button in the next wizard dialog.
- Now it will popup an alert dialog with the above error message.
3. How To Fix The Error.
- As the error message said, the new hard disk can not be registered because there exists one.
- And when you browse the virtual machine saved folder in file explorer, you can see that the .vdi file already exists.
- So you can click the back arrow in the create new virtual machine window to go back to the Hard disk wizard dialog.
- And then select the Use an existing virtual hard disk file radio button, and select the existing windows hard disk file ( maybe there is a yellow alert icon before the hard disk file ) from the dropdown list below it.
- If it shows the hard disk file is Inaccessible, then there will have a yellow alert icon before it.
- So you can click the Next button in the current and following wizard dialogs to complete the create new virtual machine process.
- And you can attach the windows10 installer iso file in the virtual machine’s Settings —> Storage —> Storage Devices —> Add Optical Drive area.
- Now you can right-click the window virtual machine in the VirtualBox Manager left panel, and then click the Start —> Normal Start menu item to start it.
- You may encounter another error message like below.
Failed to open a session for the virtual machine Windows10. UUID {75ff6d95-3b1d-4cef-80c8-0db461f06dac} of the medium 'D:\Work\VirtualBox-VM\Windows10\Windows10.vdi' does not match the value {22bb3dd5-959c-4456-9bdb-5f3f96601cdc} stored in the media registry ('C:\Users\zhaosong\.VirtualBox\VirtualBox.xml'). Result Code: E_FAIL (0x80004005) Component: MediumWrap Interface: IMedium {ad47ad09-787b-44ab-b343-a082a3f2dfb1}
- Don’t worry, what you need to do is close the VirtualBox Manager and wait for some time then start it again, and remove the virtual machine, and then recreate the virtual machine again. Now you will see the error disappear.