[vbox-dev] Script to display snapshot media tree in CLI

Klaus Espenlaub klaus.espenlaub at oracle.com
Wed May 25 16:26:25 GMT 2016


Hi Miroslav,

On 19.05.2016 14:36, Miroslav Matějů wrote:
> Hi,
>
> I’ve created a Python script to list the hierarchy of virtual disks in
> command-line interface. It helps to get a quick reference of the
> snapshot sizes. This can be viewed in Virtual Media Manager in GUI,
> however I need to do it on a headless server.

What's unclean about the script is that it's scraping the info out of 
VBoxManage. Python (up to VirtualBox 5.0.x only python 2.x, we're 
working on covering python 3.x with 5.1, which isn't 100% complete) can 
talk to the VirtualBox API, which gives it direct access to the information.

Klaus

> Hope it helps someone else too.
>
> Miroslav



More information about the vbox-dev mailing list