How to check the uuid of a virtualbox vdi?
Asked Answered
M

3

41

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...

Malefaction answered 21/3, 2011 at 15:25 Comment(0)
M
41

Run VBoxManage and pass it showhdinfo and your VDI:

VBoxManage.exe showhdinfo "c:\MyMachine.vdi"
Mislead answered 21/3, 2011 at 15:32 Comment(2)
For the record, I learned today this will also register the VDI if it wasn't already registered. This was great as I had just rebuilt my host machine after a crash and had to setup virtualbox all over again. I couldn't figure out how to register them, so I used this command to get the UUID so I could find the right VDI that I was missing and as a by product it registered it for me!Tunnell
shows "cannot get format..." probably corrupted. any clue about how can this be recovered?Urquhart
D
41

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

Denotation answered 28/9, 2014 at 16:33 Comment(1)
VBoxManage list hdds its better in this caseDowie
D
1

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>
Disarrange answered 17/11, 2022 at 19:59 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.