How to check the uuid of a virtualbox vdi?

70.1k Views Asked by At

How can I check the uuid of a vdi or vmdk?

There should be some command line on VBoxManage to show it.

I know I read it some place in the docs, but now for some reason I can't find it...

3

There are 3 best solutions below

2
On BEST ANSWER

Run VBoxManage and pass it showhdinfo and your VDI:

VBoxManage.exe showhdinfo "c:\MyMachine.vdi"
0
On

You can open C:\Users\username\.VirtualBox\VirtualBox.xml for .vbox files:

<VirtualBox>
  <Global>
    <MachineRegistry>
      <MachineEntry uuid="{11111111-1111-1111-1111-111111111111}" src="C:/mybox.vbox"/>
    </MachineRegistry>
  </Global>
</VirtualBox>
1
On

VBoxManage list vms will list the virtual machines and their uuids without having to know the path to the particular vdi.