How to change the UUID in VirtualBox HDD
You have tried copying, moving, or backing up and restoring your VirtualBox virtual machines. But now one or more of the virtual machines (VMs) cannot boot because of some UUID related issues.
When setting up the virtual machine in VirtualBox, it will be provided with a Universal Unique IDentifier (abbreviated as UUID). This is a 128-bit number, reserved for virtual hardware. Here, the HDD attached to the created virtual machine also has its own UUID.

The most common scenario may appear after you try to copy or back up a virtual machine. When trying to run the second version, the second version of the VM, VirtualBox may notice that the HDD UUID is not the version it was waiting for.
You should reset the UUID of the HDD and re-attach it to the VM as a new device. This is easy to do but requires the use of the command line tool, along with a few clicks in the rarely accessed part of the GUI on VirtualBox.
Learn VboxManage
VirtualBox comes with a command line tool, VboxManage, to help you manage your virtual machines.
VboxManage is a command-line interface for the program, providing a lot of functionality not found in the main GUI-based application. With VboxManage, you can create new virtual machines, modify their parameters, copy them or reset the UUID of the HDD.

If you have VirtualBox, then VboxManage is already installed. To check, enter in the terminal:
vboxmanage
Remove the HDD
From the main window of VirtualBox, with the VM stopped, select File> Virtual Media Manager .
From the window that appears on the screen, identify the problematic hard drive. Click on it to select. Then, click the 'Release' button to separate the selected HDD from VirtualBox. Confirm that you want to remove it when VirtualBox asks if you are sure. Then click on 'Remove'.
VirtualBox will notify you that, because this hard drive is inaccessible, its image file cannot be deleted. Click 'Remove'. If the error message is different, skip this step to avoid actually deleting your virtual hard drive.
Change its UUID
Return to the terminal and enter:
vboxmanage internalcommands sethduuid FILENAME
Replace 'FILENAME' with the actual virtual hard drive file.
The program will notify you about the new UUID assigned to the virtual hard drive file.
Reinstall the virtual hard drive
Return to the Virtual Media Manager window and click Add. Find and select the updated virtual hard drive file to reconnect to VirtualBox.
Close the Virtual Media Manager window and review the settings of the virtual machines affected by the problem.
Move to the 'Storage' setting of the virtual machine and select the appropriate controller. Click on the HDD drive icon and the plus sign. Select 'Choose existing disk' and then the virtual hard drive file updated from the pop-up window.

Click OK to save the changes and exit the window. Start the virtual machine and, if everything goes as planned, it will boot without any problems.
You should read it
- QEMU or VirtualBox is the best solution?
- Is VirtualBox safe or a security risk?
- How to Install VirtualBox on Linux
- How to import and export OVA files in Virtualbox
- How to install Windows 11 on VirtualBox 7.0
- How to Install VirtualBox
- How to Install VirtualBox
- How to fix mouse error and virtual machine keyboard in VirtualBox
May be interested
- How to turn on 144Hz (or higher) on dedicated gaming screensone of the most popular gaming accessories is the professional gaming monitor.
- USB flash drive, HDD and SSD: Which is the best option for you?if you've ever searched for ways to store large amounts of data via usb, you'll know three main candidates: flash drive (usb), external hard drive (hdd) and external ssd drive. all three drives can store data well, but they are more suited to each specific role.
- Why is Apple's Butterfly keyboard so bad?the lawsuit about the butterfly keyboard on macbook pro has moved into a new phase, after the move to abandon this terrible keyboard of apple. so what makes the butterfly keyboard so terrible?
- The difference between LCD panel technologiesup to now, the most commonly used screen panels are tn, ips and va. the following is a brief overview, before the article focuses on the specific characteristics of each technology and how they work.
- How to teach children how to use the mouse?being able to use a mouse proficiently is useful for many things, from playing games, navigating the internet to creating digital artwork and potentially a child's future career.
- The secret to buying a CPUwhether you upgrade your existing system or build a new pc, the cpu still plays a very important role. higher clock rates and core counts can make a big difference in overall performance.