You have to follow these steps in Hyper-V but for ESX it works the same way:
- Defragment the disk of your Virtual Machine. I use Defraggler (https://www.piriform.com/defraggler) which does a pretty good job but because it is sequential - disk by disk - it takes pretty long.
- Go to Windows Disk Management, right click on the disk in question and chose Shrink Volume the disk in the menu.
- Select the smallest size possible and let Windows do its work.
- When finished shut down your Virtual Machine and go to Edit disk and select Shrink (it appears only when you have unallocated disk space due to the shrink).
- After the Shrink is finished choose Compact in the Edit disk menu of Hyper V
- When that is finished choose Expand and reset the disk to its old value
- Start the VM and as soon as you're in there reset the disk to its previous size in Disk Management.
No comments:
Post a Comment