How to shrink Hyper-V VHD partition

John Lenz 1,716 Reputation points
2020-10-08T18:08:56.123+00:00

Server2012R2
Hyper-V

When I set up the Hyper-V environment for the 5 VM systems, I gave them all a fixed amount of disk space. Now I need to re-size them. Some need to expand (which I can do), but I need to shrink others to free up space.

What is the process to shrink the VHD?

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,473 questions
0 comments No comments
{count} votes

Accepted answer
  1. John Lenz 1,716 Reputation points
    2020-10-08T18:26:36.717+00:00

    It is a vhdx disk.


1 additional answer

Sort by: Most helpful
  1. Leon Laude 85,566 Reputation points
    2020-10-08T18:15:36.777+00:00

    Hi @John Lenz ,

    Are you attempting to shrink VHD or VHDX disks? Shrinking of VHDs is not possible.
    If you're attempting to shrink VHDX disks, then I suggest you have a look at the article below, it provides all the information you need for shrinking VHDX disks:

    How to Shrink a Hyper-V Virtual Disk (VHDX)
    https://www.altaro.com/hyper-v/shrink-hyper-v-virtual-disk-vhd-vhdx/

    ----------

    (If the reply was helpful please don't forget to upvote or accept as answer, thank you)

    Best regards,
    Leon

    0 comments No comments