Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Shrinking VMs

Posted on 2014-09-05
4
Medium Priority
?
145 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 800 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 124

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 1200 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
In this video tutorial I show you the main steps to install and configure  a VMware ESXi6.0 server. The video has my comments as text on the screen and you can pause anytime when needed. Hope this will be helpful. Verify that your hardware and BIO…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…

927 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