How to change UUID of .vbox image

Discussions about using Windows guests in VirtualBox.
Post Reply
zimbodel
Posts: 49
Joined: 29. Nov 2018, 07:38

How to change UUID of .vbox image

Post by zimbodel »

I searched as much as I could but could not find a solution for changing UUID of a copied image. I need backup images in order to be able to go to a previous state with difficult software installs.

So how do you change .vbox UUID so that the copy can also be a separate virtual machine.

sethduuid doesnt seem to work on .vbox images
birdie
Posts: 429
Joined: 2. May 2010, 14:19
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: Windows, Linux, other Unixes
Location: Artem S. Tashkinov
Contact:

Re: How to change UUID of .vbox image

Post by birdie »

*.vbox is a simple text file - you can edit it in any text editor and change the virtual machine UUID manually.

You could change just a single digit or use uuidgen console command to generate something truly uniq.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: How to change UUID of .vbox image

Post by scottgus1 »

Note, however, the first lines of every XML file generated by Virtualbox:
<!--
** DO NOT EDIT THIS FILE.
** If you make changes to this file while any VirtualBox related application
** is running, your changes will be overwritten later, without taking effect.
** Use VBoxManage or the VirtualBox Manager GUI to make changes.
-->
So blindly editing the .vbox file may get undone by the process that causes the need for the error above.
zimbodel wrote:I need backup images in order to be able to go to a previous state with difficult software installs.
The easiest way to do this is make a complete backup of the fully-shut-down, not save-stated, guest folder, as well as any guest disk files that were p;aced outside the guest folder.

Changed UUIDs may break activation and boot loaders.

A clone has completely changed UUIDs.
Post Reply