Solved

Shrinking VMs

Posted on 2014-09-05
4
134 Views
Last Modified: 2014-09-29
I need soma assistance with shrinking existing VMs. It seems it is the containers that hold all the VM components that is not able to be shrunk due to data blocks that can't be moved. For example: I have a Windows 7 VM that is 300 GB in size but there is actually 187 GB of free space on the virtual HDD. The HyperV host is a Windows Server 2012 RS and I use the HYper-V Manager. Most of the oversized VM were created from cloning one of the original existing machines. Any thoughts?
0
Comment
Question by:DevilDoc325
  • 2
4 Comments
 
LVL 29

Assisted Solution

by:becraig
becraig earned 200 total points
ID: 40306784
Shrinking a virtual hard disk

As expected, when you shrink a virtual hard disk, the virtual hard disk capacity is decreased. However, there is a limit to amount of disk space that can be adjusted when you shrink a virtual hard disk. That limit is defined by the size of the volume that is currently in use by the virtual machine. The Hyper-V Manager user interface shows the minimum disk size available for shrinking a virtual hard disk.

If you want to shrink the size of the virtual hard disk below the size of the currently used volume within the virtual machine, you must first use Disk Manager in the operating system of the virtual machine to shrink the volume. After that is complete, you can reduce the size of the virtual hard disk.

Instructions on shrinking the disk in the OS:
http://technet.microsoft.com/en-us/library/cc731894.aspx
0
 
LVL 118

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 300 total points
ID: 40306787
another method, is to create a new virtual disk of the correct (shrunk size).

and then use a Cloning tool (e.g. clonezilla) to clone the partition from disk to disk, and then remove the original disk.
0
 

Author Comment

by:DevilDoc325
ID: 40309876
Thanks Andrew and becraig. I will be working on this and I will let you know my results.
0
 

Author Closing Comment

by:DevilDoc325
ID: 40349774
Both solution would work and I appreciate the guidance. I am using WDS on a Server 2012 R2 to create and deploy the correctly sized images and simplify future deployments.  I am creating a new base image and basically cloning old systems.
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
Resolve DNS query failed errors for Exchange
In this Micro Tutorial viewers will learn how they can get their files copied out from their unbootable system without need to use recovery services. As an example non-bootable Windows 2012R2 installation is used which has boot problems.
In this Micro Tutorial viewers will learn how to restore their server from Bare Metal Backup image created with Windows Server Backup feature. As an example Windows 2012R2 is used.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now