[Solved] hardware uuid not saved after restart

Discussions about using Windows guests in VirtualBox.
Post Reply
darkstudio
Posts: 4
Joined: 12. Feb 2019, 21:38

[Solved] hardware uuid not saved after restart

Post by darkstudio »

hi, with a old version of virtualbox (5.1) when we change hardware uuid, it will be saved and keep on VM.

Since 5.2 version, when we try to change hardware uuid, the uuid is not saved on because when we restart VM, the uuid is automaticaly reset to default .

Any solutions ?
Thanks
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: hardware uuid not saved after restart

Post by socratis »

Can you please tell me which exactly UUID you're referring to? And which command exactly did you use?
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
darkstudio
Posts: 4
Joined: 12. Feb 2019, 21:38

Re: hardware uuid not saved after restart

Post by darkstudio »

On version 5.1, we can use the command : VBoxManage modifyvm "MACHINE_NAME" --hardwareuuid xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx and it will be saved on VBOX file to force a hardware uuid.
Since version 5.2, when we use same command, the vbox file is modified but when we start VM, the vbox is overwriten and delete the hardware uuid forced.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: hardware uuid not saved after restart

Post by socratis »

I created a new VM, "1":
$ VBoxManage showvminfo "1"
Name:                        1
Groups:                      /
Guest OS:                    DOS
UUID:                        39bb8b30-4c27-4885-8689-a9639da7faff
Config file:                 /Users/Shared/VirtualBox/Machines/1/1.vbox
Snapshot folder:             /Users/Shared/VirtualBox/Machines/1/Snapshots
Log folder:                  /Users/Shared/VirtualBox/Machines/1/Logs
Hardware UUID:               39bb8b30-4c27-4885-8689-a9639da7faff
...
I then did a
  • VBoxManage modifyvm "1" --hardwareuuid 12345678-1234-1234-1234-1234567890ab
which resulted in:
$ VBoxManage showvminfo "1"
Name:                        1
Groups:                      /
Guest OS:                    DOS
UUID:                        39bb8b30-4c27-4885-8689-a9639da7faff
Config file:                 /Users/Shared/VirtualBox/Machines/1/1.vbox
Snapshot folder:             /Users/Shared/VirtualBox/Machines/1/Snapshots
Log folder:                  /Users/Shared/VirtualBox/Machines/1/Logs
Hardware UUID:               12345678-1234-1234-1234-1234567890ab
...
and in the "1.vbox" file, I see the following entry:
<Hardware uuid="{12345678-1234-1234-1234-1234567890ab}">
So, I'm not sure what you're referring to exactly...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
darkstudio
Posts: 4
Joined: 12. Feb 2019, 21:38

Re: hardware uuid not saved after restart

Post by darkstudio »

U can change hardware uuid but when you start vm, the vbox is overwrited when VM is STARTED and hardware uuid fixed is deleted.

I have try alll 5.2, all 5.2 doesn"t work anymore to change hardware uuid BUT is have just install 6.0.4 and apparently its fixed.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: hardware uuid not saved after restart

Post by socratis »

darkstudio wrote: just install 6.0.4 and apparently its fixed.
Ah, maybe that's why I didn't see what you were reporting, I was already using 6.0.4.

Glad it's working now, marking as [Solved].
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
darkstudio
Posts: 4
Joined: 12. Feb 2019, 21:38

Re: hardware uuid not saved after restart

Post by darkstudio »

I made some test and i will come back to report if its ok
thanks

EDIT: its works on 6.0.4 !
Post Reply