VirtualBox Unable to Merge not Enough Free Storage Space

0

When possible I always try to run my Virtual Machine on SSD, that way I can maximize the speed when doing work inside the VM. The biggest drawback is the limited storage on SSD. Recently this drawback caused a serious problem with VirtualBox. My Windows 10 VM failed to install the latest insider build due to host machine storage constraints. As a result, my VM hangs, unable to start up, unable to delete previous snapshots, and unable to rollback.

How To Troubleshoot VirutalBox Out of Storage

Below is one of the error messages I got when attempting to delete previous snapshots, as you can see, it too failed.

Failed to delete the snapshot <your snapshot name> of the virtual machine <your virtual machine name> Details, Unable to merge storage <snapshot path> not enough free storage space.

Result Code: E_OUTOFMEMORY (0x800700E) Component: SessionMachine
Interface: IMachine

2016 08 30 1224 thumb 1 - VirtualBox Unable to Merge not Enough Free Storage Space

Check Windows Explorer. Indeed, there are less than 1 MB of storage space left on the 256GB of SSD.

2016 08 30 1321 thumb - VirtualBox Unable to Merge not Enough Free Storage Space

Quickly scan with WinDirStat confirmed that the snapshots for each VM use more storage space than the actual  .vdi image. Given that we are unable to delete snapshots from the VirtualBox UI nor discard the current state, the VM is in a halted state.

2016 08 30 1300 thumb - VirtualBox Unable to Merge not Enough Free Storage Space

One way to solve this problem is to move the entire VM to a different hard drive with more disk space, which will, however, defeat the entire purpose of running it off SSD. The solution is to move all the “Snapshots” content into a separate hard drive and use a symbolic link to trick VirtualBox that everything is still at the right location.

2016 08 30 1323 thumb - VirtualBox Unable to Merge not Enough Free Storage Space

First, you need to copy everything under Snapshots to a new location.

2016 08 30 1324 thumb - VirtualBox Unable to Merge not Enough Free Storage Space

For example, I will move everything from F: drive’s Windows 10\Snapshots folder into (new folder) D:\VirtualBox Snapshots\Windows 10. Once done, copy over the file, delete the original Snapshots directory in F drive.

Create a Symbolic link as follow

2016 08 30 1324 001 thumb - VirtualBox Unable to Merge not Enough Free Storage Space

This will create a link of “Snapshots” under the previous location and link to D:\VirtualBox Snapshots\Windows 10

2016 08 30 1732 thumb 1 - VirtualBox Unable to Merge not Enough Free Storage Space

Now you should be able to start up your VM again while still maintaining the main .vdi file on the SSD.

Was this article Helpful?

Thank you for the feedback!

LEAVE A REPLY

Please enter your comment!
Please enter your name here