The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 4,184 other subscribers

Steps for shrinking a vmware disk for a Windows guest VM inside VMware Workstation of VMware Fusion

Posted by jpluimers on 2014/01/13

Another one from the “missed schedule” series, this one was originally scheduled for 20130927.

These articles were not very clear on the actual steps to take:

The steps I tried:

  1. made sure I did not have any snapshots (they are incompatible with shrinking disks)
  2. in the Windows guest: at an elevated command prompt, defrag the drive and consolidate the free space (defrag C: /U /V /X)
  3. in the Windows guest: in Disk Management, shrink the partition
  4. shutdown the VM
  5. defrag the vmdk from within VMware Workstation/Fusion
  6. compact the vmdk from within VMware Workstation/Fusion
  7. boot the Windows guest
  8. in the Windows guest: shrink the volume in VMware Tools
  9. in the Windows guest: wait for VMware tools to perform the first shrink step, and to prompt for the second step
  10. wait for VMware Workstation/Fusion to perform the second step of the shrink

Maybe step 3 was not strictly needed, but this gives me some head room on the guest side: I can always expand it when it is needed (this is a boot drive after all).

–jeroen

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

 
%d bloggers like this: