Shrink guest on hosted platform: Difference between revisions

m
(Created page with "==== Zero out unused space in a Linux VM ==== Before we try to shrink the virtual disk files, we should try to remove any unneeded files from the virtual machine to free spac...")
 
Line 28: Line 28:


to fill the unused space with zeros.
to fill the unused space with zeros.
As this command writes out zero's to the disk until it runs out of disk space, you will get an error "No space left on the device". This is expected and is also why we suggest to do this from a Live CD.


If you do not have a Live CD, then you can run the command to zero out the unused space as root, but remember to shut down services like databases first.
If you do not have a Live CD, then you can run the command to zero out the unused space as root, but remember to shut down services like databases first.


==== Zero out unused space on a Windows VM ====
==== Zero out unused space on a Windows VM ====
1,274

edits