Find snapshot filename using VboxManage

This is for discussing general topics about how to use VirtualBox.
Post Reply
gone
Posts: 2
Joined: 23. Jan 2019, 06:14

Find snapshot filename using VboxManage

Post by gone »

Virtual Media Manager can tell me the filename and size of the file backing a particular snapshot.
How would I get this info using VboxManage commands?
The best I can come up with is:
  1. Find the snapshot UUID in the output of vboxmanage snapshot <vmname> list
  2. vboxmanage <vmname> showvminfo <snapshotUUID> and find the line with the filename on it. In my example, it is the SATA 0, 0 line, but I see that other storage types could be something else. Maybe it would be better to search for "vmname/Snapshots/"?
  3. Use native file info commands to find the size of the snapshot file
Can you suggest any shortcuts?
Thanks for the advice.
Post Reply