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 fix mouse error and virtual machine keyboard in VirtualBoxvirtualbox is software for creating virtual machines, installing multiple operating systems such as windows, linux, and macos. but many people after installing the virtual machine has a mouse and keyboard error can not be used.
- Installing Ubuntu in VirtualBox does not need DVD or USBin the previous tutorial, we presented some basic steps to install ubuntu in windows operating system with the option of dual boot using wubi. and this time, we will focus on using ubuntu as a virtual machine in virtualbox. the advantage of this process is that virtualbox does not require any boot components, besides that virtualbox and ubuntu are completely free.
- 6 useful VirtualBox commands to manage virtual machinesall virtualbox installations come with the command line tool vboxmanage, a powerful and flexible utility for managing virtual machines.
- Instructions for creating virtual machines with VirtualBox quickly and easilyvirtual machines help users experience other operating systems without having to install them directly on a real machine. a typical example is virtualbox, a software that supports multiple platforms such as windows, linux, and macos.
- How to Install Ubuntu on VirtualBoxthis article shows you how to install ubuntu linux on your computer using virtualbox. the virtualbox program allows you to install additional operating systems without changing the main operating system of your computer.
- Instructions on how to install Ubuntu on VirtualBox virtual machinehave you ever tried to install ubuntu but the computer doesn't have enough space to run? let's tipsmake.com find out the article to guide how to install ubuntu on this virtualbox virtual machine!
- How to install a virtual computer VM VirtualBox on macOSstep-by-step instructions on how to install vm virtualbox on macos to create a windows 10 virtual computer. how to install virtualbox on macos is extremely simple ...
- Instructions for installing Ubuntu Maverick in Mac Virtualboxin the following article, tipsmake.com will show you how to install and use ubuntu inside mac os x through virtualbox ...
- How to install macOS in VirtualBoxwith virtualbox, you can install macos on a windows pc. along tipsmake.com learn how to do through the following article offline!
- How to install and test Parrot OS in VirtualBoxparrot os is focused on providing broad security and penetration testing capabilities to end users.