This article introduces how to extend C drive in Hyper-V virtual machine, 2 ways to increase C drive space/size without losing data.
Applies to: Windows 10, Windows 8, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 (R2), Windows Server 2008 (R2), Windows Server 2003 (R2).
The same with physical server and personal computer, system C drive in Hyper-V virtual machine also runs out of space. No matter you use VMware, Hyper-V, Virtualbox or Citrix, you can extend C drive like physical computers. This article introduces detailed steps to extend C: drive partition in Hyper-V guest virtual machine.
How to extend C drive in Hyper-V by shrinking or moving partition
Before starting, you'd better create a Checkpoint or make an independent backup, because there's potential system damage and data loss risk while resizing virtual partition. Another thing is running safe partition software. Although Windows has native Disk Management and diskpart command tool, they are useless in most cases. A reliable partition software can help you extend C drive in hyper-v much more safely and easily.
Among these 3rd-part tools, NIUBI Partition Editor has Virtual Mode, Cancel-at-well and 1-Second Rollback technologies to protect system and data. It is also much faster because of the innovative file-moving algorithm.
Download NIUBI Partition Editor and you'll see all virtual disk with partition structure on the right, available operations to selected disk or partition are listed on the left and by right clicking.
When everything is ready, we can start to resize partition and expand C drive for Hyper-V virtual machine.
Firstly, check if there's free unused space in other partition on the same virtual disk. If yes, you can shrink it to get Unallocated space, and then add into C drive. With NIUBI Partition Editor, Operating System, programs, data and anything else keep the same with before.
Steps to extend C: drive partition in Hyper-V virtual machine:
- Right click drive D: (the right contiguous) and select "Resize/Move Volume", in the pop-up window, drag the left border towards right, or enter an amount in the box of "Unallocated space before". Then part of free unused space will be converted to Unallocated behind system C: drive.
- Right click C: drive and select "Resize/Move Volume" again, drag right border to towards right to combine this adjacent Unallocated space.
- Click Apply on top left to execute, done. If you changed your mind, simply click Undo to cancel the pending operation, partitions won't be modified until click Apply to confirm.
In few virtual server or client Windows machine, there's not enough free space in the right contiguous partition. As you see in my virtual Server 2016, if drive D is also full, I can shrink the last partition E. In that case, there's an additional step to move drive D and make Unallocated space next to C drive before combining.
Follow the steps in the video to extend C drive by shrinking contiguous D or non-adjacent E:
How to increase C drive space by expanding Hyper-V virtual disk
In a physical computer, if entire system disk is full, you have to copy or restore it to another larger disk, because no software can extend C drive by adding space from another separated disk. But in Hyper-V virtual machine, you can expand this disk to larger size directly.
Follow the steps to increase size of hyper-v virtual disk, after that, additional space will be shown as Unallocated on the end. Then you just need to add this Unallocated space to C drive with NIUBI Partition Editor.
Besides shrinking, moving and extending partitions, NIUBI Partition Editor helps do many other operations such as merge, convert, defrag, wipe, hide, delete, format partition, scan bad sectors.