Sometimes you might have to modify the UUID because you want to test something on a cloned VM but you need the original one- for example because a backend authenticates over your UUID.
virtualBoxFolder/VirtualBox.xml
vmFolder/vmname.vbox
First of all, close VirtualBox and shut down the machine or your changes will get overwritten.
Find the machine name within the <MachineRegistry>
entry in the VirtualBox.xml
file and modify your uuid there:
<MachineRegistry>
...
<MachineEntry uuid="{MODIFY-THIS-UUID}" src="C:\VirtualBoxFolder\Virtualbox\Machines\test\test.vbox"/>
</MachineRegistry>
Then modify the UUID within the machine configuration file vmname.vbox
itself in the <Machine>
field.
<VirtualBox xmlns="http://www.virtualbox.org/" version="1.16-windows">
<Machine uuid="{MODIFY-THIS-UUID}" name="test" OSType="Linux_64" snapshotFolder="Snapshots" lastStateChange="2021-07-05T09:00:09Z">
<MediaRegistry>
<HardDisks>