Quantcast
Channel: LinuxReaders » Virtualization
Viewing all articles
Browse latest Browse all 10

Shrink VirtualBox Image

$
0
0

Although we assign 40/50gb hdd space to VM, not all of it is used.
After using VM for sometime, you may find vdi is constantly increasing & may need to shrink it.

To Shrink vdi size.
Linux

dd if=/dev/zero of=/testfile
rm -rf /testfile

Windows

sdelete -c

You can download sdelete from

Run following command to shrink image
Linux

VBoxManage modifyvdi hdd.vdi --compact

Windows

VBoxManage.exe  modifyvdi hdd.vdi --compact

(Visited 1,126 times, 1 visits today)

Viewing all articles
Browse latest Browse all 10

Trending Articles