Hello,
I am developing an application using VirtualBox's API and I am looking for the best way of modifying a medium through VirtualBox. I need to do this after a snapshot is created but I don't see anywhere in the API that the sectors on the disk can actually be accessed. Is this not posssible? I can't go through the original medium file because I can't change the original file. I was hoping to let VirtualBox handle this by using its differencing files in a similar fashion to just booting up the VM.
To be clear, I am looking for a way to get a handle on a differenced disk so I can read the harddisk and make any changes necessary while never actually interacting with the original file, only through virtualbox.
The only way I can think of is attaching the medium, booting up VirtualBox to a live cd, and scripting what changes need to be run. Then automatically shutting down signaling that my changes are complete. I'd rather a more programmatic appropach to this problem.