Extend System Partition in Hyper-V VM

Published on: December 9, 2019

This article introduces how to extend system partition in Hyper-V virtual machine, detailed step to extend system volume for Hyper-V vm 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 computers that running Windows, system partition of virtual machines in Hyper-V also runs out of space. In that case, nobody likes to start from scratch, it can't be better if you can extend system partition in Hyper-V vm without losing data. To do this, you need a reliable partition tool. This article gives detailed steps to increase size of system partition for Hyper-V virtual machine.

Can't expand system drive in Hyper-V Disk Management

If you run Windows Server 2003 as guest Operating System in Hyper-V, the only native tool is diskpart, which runs from command prompt. In Windows Server 2008 and subsequent versions, there's another Disk Management tool, which has graphical interface. However, neither diskpart nor Disk Management is the best tool, because:

  • Both Extend Volume function of Disk Management and extend command of diskpart can only expand partition when there's contiguous Unallocated space on its right side.
  • Both Shrink Volume function and shrink command cannot generate required Unallocated space.
  • Only NTFS partitions can be shrunk and extended, FAT32 is not supported.

As you see in the screenshot, Unallocated space shrunk from drive D is non-adjacent to system C drive and is on the left side of E drive, therefore, Extend Volume is grayed out.

You need 3rd-part disk partition software to help extend system drive in Hyper-V vm.

Cannot extend

How to extend system partition in Hyper-V with other virtual partition

Before expanding partition, 2 things you'd better do:

  1. Open Hyper-V Manager and create a checkpoint. There's potential system and data damage risk while resizing hyper-v partitions, so you'd better back up or create checkpoint and run safe partitioning software.
  2. Open guest virtual machine in Hyper-V, run Disk Management to check virtual disk partition layout. (Press Windows and R keys together, type diskmgmt.msc and press Enter.)

If there's no other partition or not enough free space in other partitions on the same virtual disk, jump to next section. If there's free unused space in other partitions on the same disk, you can shrink it to get Unallocated space, and then add this space to system C: drive.

Steps to extend system partition C in Hyper-V virtual machine:

  1. Download NIUBI Partition Editor and install in Hyper-V guest machine. Right click the right contiguous partition D: and select "Resize/Move Volume".
    NIUBI Partition Editor
  2. 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 space in drive D will be converted to Unallocated next to system C: drive.
    Shrink D
  3. Right click system partition C: and select "Resize/Move Volume" again, drag right border to combine the adjacent Unallocated space.
    Extend C
  4. Click Apply on top left to execute, done.
    System volume extended

If there's not plenty of free space in the contiguous partition D, you can shrink the non-adjacent drive E. In that case, there's an additional step to move Unallocated space behind C drive. Follow the steps in the video to expand system volume in Hyper-V when there's available free space on the same virtual disk.

Video guide

How to increase system volume after expanding Hyper-V virtual disk

If there's no available free space on the same disk, no software can extend system partition C by adding space from another disk. But better than physical hard disk, you can expand virtual disk in Hyper-V easily. After that, additional space will be shown as Unallocated on the end of original virtual disk.

Follow the steps to expand virtual disk and then extend system partition in Hyper-V virtual machine.

Besides resizing and extending partitions, NIUBI Partition Editor helps do other disk and partition management operations.

DOWNLOAD