Solved

Shrinking VMs

Posted on 2014-09-05
4
137 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 119

Accepted Solution

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Last article we focus in how to VMware: How to create and use VMs TAGs – Part 1 so before follow this article and perform the next tasks, you should read the first article how to create the TAG before using them in Veeam Backup Jobs.
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
In this Micro Tutorial viewers will learn how to use Windows Server Backup to create full image of their system. Tutorial shows how to install Windows Server Backup Feature on Windows 2012R2 and how to configure scheduled Bare Metal Recovery backup.…
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…

773 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