obelix6410 wrote:Windows 7.vdi that initially was 500 GB. Since then, I took a snapshot that reduced the size of the virtual disk to 131 GB.
I don't think that you've completely understood how the Snapshots feature works... Start by reading the
Snapshot basics post. As mpack said Snapshots record the "differences in the disk sector". If you create a
dynamic VDI with a maximum size at the time of the creation of let's say 500 GB, it can never go down, you can't decrease its size, only increase it. So, you cannot possible have reduced the VDI size, what you're seeing is the amount of modified sectors, 131 GB modified sectors.
I would suggest to merge your snapshots so that you have a single "Current State" one. Then, you don't even have to use the command line if you're having trouble with it (apparently). Go to the menu "File" » "Virtual Media Manager..." » select the "Hard Disks" tab » find your VDI » make sure the "Properties" button on top is enabled » select the "Attributes" tab on the bottom is selected » change the VDI's size, either by the slider or by entering the value directly on the size control to the right.
Be careful!!!
You can only enlarge the VDI, not shrink it!
Press the "Apply" button...