Is there any way to get a Guest VM's UUID from within the Guest VM itself? From the Host I can do vboxmanage list vms
to get a list of all vm names and their user ids. From the Guest, even with VirtualBox Additions, I can't see a way to do it. The closest I've come was vboxcontrol guestproperty enumerate
, but it doesn't seem to have UUID as a guest property.
I was able to extract the UUID of the machine on Linux guests with
dmidecode
.This UUID matches the one reported by the host:
To extract the UUID only you might run:
As of version 3.0 of dmidecode, the following works:
Best I could come up with:
/Custom/UUID
) to the UUID. Run this manually whenever a new VM is created./Custom/UUID
. If it's not there, explode.