Home FAQ VirtualBox Error – Cannot register the DVD image because UUID already exists
VirtualBox Error - Cannot register the DVD image because UUID already exists

VirtualBox Error – Cannot register the DVD image because UUID already exists

By sk
147 Views

I have been using Oracle VirtualBox for many years now. It helped me a lot to test and play with numerous Unix-like operating systems. I have a backup of all Virtual machines' images in my local hard disk, so that I can avoid repeated installation of the same virtual machine over and over. The other day, when I try to start my openSUSE VM, VirtualBox kept throwing the following error.

Failed to open virtual machine located in /home/sk/VirtualBox VMs/openSUSE 13.2/openSUSE 13.2.vbox.
Cannot register the DVD image '/usr/share/virtualbox/VBoxGuestAdditions.iso' {b058bc48-c451-4cff-9db0-d01c70e99c28} because a CD/DVD image '/usr/share/virtualbox/VBoxGuestAdditions.iso' with UUID {bb9b13c5-f90f-4589-b212-8b9e01f118f5} already exists.

I haven't seen this error before and I have no idea how to solve it. After a bit of Google search, I found a workaround to fix this issue. Have you ever been in the same situation where you didn't know how to solve this problem? No worries! Just follow these steps and you're good to go!

Fix "Cannot register the DVD image because UUID already exists" Error In VirtualBox

To fix the aforementioned error, go to the directory where you have stored the Virtual Machine files. For instance, I have stored my VMs in /home/sk/VirtualBox VMs/ directory.

Open the .VBOX file in any text editor of your choice.

Here is a sample Vbox file for your reference.

vbox file

It’s an XML file, so you can open it with any graphical or text editing software such as Libre Office, Abiword, Vi, and nano etc.

Then, find the following lines:

[...]
<DVDImages>
        <Image uuid="{b058bc48-c451-4cff-9db0-d01c70e99c28}"
location="/usr/share/virtualbox/VBoxGuestAdditions.iso"/>
     
[...]

Delete all entries between <DVDImages> and </DVDImages> section. After deleting the contents, your .VBOX file will look like below.

<DVDImages>
</DVDImages>

Save and close the file.

That's it. Now, you can load the virtual machine without any issues.

Alternatively, you can properly release the disk image medium from command line, run this vboxmanage command:

$ vboxmanage closemedium disk b058bc48-c451-4cff-9db0-d01c70e99c28

Replace "b058bc48-c451-4cff-9db0-d01c70e99c28" with your UUID value.

Related read:

Thanks for stopping by!

Help us to help you:

Have a Good day!!

You May Also Like

24 comments

Richard August 16, 2016 - 5:37 am

Awesome article. Thanks.

Reply
Groox December 7, 2016 - 10:40 pm

Really helpful, thanks a lot. It’s really cool they made the .vbox file a plain xml file.

Reply
tomacades March 22, 2017 - 3:18 pm

Works perfectly, thank you!

Reply
Javier Filgueira Mallea August 7, 2017 - 8:58 pm

GREAT !!!! Thank you for sharing !!!!

Reply
Oliver Hernandez December 21, 2017 - 5:46 pm

This saved my bacon, THANKS!!!

Reply
Samuel Severance April 23, 2018 - 4:33 am

Thank you!

Reply
Melly July 11, 2018 - 8:51 pm

thanks a lot !

Reply
MM July 19, 2018 - 6:26 pm

Un gros gros merci pour le partage ! Thanks you very much 🙂

Reply
sk July 20, 2018 - 11:57 am

vous êtes les bienvenus.

Reply
ojo January 29, 2019 - 3:21 pm

thanks

Reply
Floro February 17, 2019 - 10:04 pm

Mil gracias por la ayuda.

Best regards.

Reply
stumpy March 31, 2019 - 12:02 pm

Hey,

This looks like a far better method! Release the disk image and then remove it!

https://forums.virtualbox.org/viewtopic.php?f=8&t=51911

Reply
John April 10, 2019 - 1:23 am

Funciono perfecto! gracias!

Reply
Morty April 11, 2019 - 8:06 am

Still an awesome article , thanks.

Reply
Janfi May 16, 2019 - 2:18 am

Thanks a lot

Reply
Chandresh May 20, 2019 - 1:45 pm

you are geneous

Reply
b August 13, 2019 - 11:37 am

Yup, that’s the fix alright. Thank you!

Reply
Andy October 10, 2019 - 2:37 am

Thank you so much, this worked perfectly for me!

Reply
Kurumin October 31, 2019 - 12:57 am

Thanks a lot … you save my day!

Reply
Didier January 22, 2020 - 1:31 pm

It works like a charm !!!

Reply
Neal February 5, 2020 - 4:22 am

Thanks. It’s late at night. I want to go to bed. And I needed to solve this first. Thank you.

Reply
Felipe March 28, 2020 - 12:46 am

Work Pefect 😀 Thanks

Reply
a April 22, 2020 - 10:29 pm

>Hey,

>This looks like a far better method! Release the disk image and then remove it!

>https://forums.virtualbox.org/viewtopic.php?f=8&t=51911

this works as well, cheers.

Reply
sk April 22, 2020 - 11:08 pm

Thanks. Hope it will help some one.

Reply

Leave a Comment

* By using this form you agree with the storage and handling of your data by this website.

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

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More