Get UUID of VM within its own Guest OS?

Discussions about using Windows guests in VirtualBox.
Post Reply
Agendum
Posts: 9
Joined: 7. Mar 2011, 03:33
Primary OS: MS Windows 2008
VBox Version: OSE other
Guest OSses: Windows 7

Get UUID of VM within its own Guest OS?

Post by Agendum »

I am trying to get the UUID (or Name) of a VM within its own guest OS (Windows 7). Is there any way to do this? The only way I have been able to do this is if first in the host I do this:

VBoxManage guestproperty set 09c86906-43eb-4556-b9ae-2459fd6749d8 /VirtualBox/GuestInfo/UUID 09c86906-43eb-4556-b9ae-2459fd6749d8

Then in the guest I can query for that property:

VBoxControl.exe -nologo guestproperty get /VirtualBox/GuestInfo/UUID

But it would be nice if there was a way to do this without having me to "setup" from the host environment... and also not assume the guest OS machine name is the VM name (since the machine name can be changed).

Thanks!
Post Reply