This is a short post for someone that needs to resize a storage disk in vdi format. The follow instructions are based on Linux environment and has Virtualbox installed.

  1. Stop your Vending Machine

  2. Find your Vending Machine storage. Here the files are on ~/VirtualBox/[VM-NAME]

  3. Run the followed command:


vboxmanage modifyhd ~\VirtualBox\VM\disk.vdi --resize 40000

The disk was resized to actual size (<40000) to 40000 ( ~ 40GB).

The expected result is:

0%…10%…20%…30%…40%…50%…60%…70%…80%…90%…100%

Peace!