42

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 Answers 3

43

Run VBoxManage and pass it showhdinfo and your VDI:

VBoxManage.exe showhdinfo "c:\MyMachine.vdi"
Sign up to request clarification or add additional context in comments.

2 Comments

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!
shows "cannot get format..." probably corrupted. any clue about how can this be recovered?
41

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

1 Comment

VBoxManage list hdds its better in this case
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>

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.