Starting in Windows Server® 2012 R2, Hyper-V provides you with
the ability to expand or shrink decrease the size of a virtual hard disk
while the virtual machine is still running. This topic creates a
virtual hard disk (attached to a SCSI Controller), adds the virtual hard
disk to the virtual machine and details the process for expanding and
shrinking a virtual hard disk.
![]() |
---|
The user interface option to shrink a virtual hard disk is only visible for virtual hard disks that have been expanded previously. Online resize is exclusive to SCSI attached VHDX files. For more information about resizing virtual hard disks, see Online Virtual Hard Disk Resizing Overview. |
Before you attempt to edit the size of your virtual hard disk, make sure that you have the following:
-
A computer running Windows Server® 2012 R2 or later with the Hyper-V role installed.
-
A user account that is a member of the local Hyper-V Administrators group, or the Administrators group.