This article provides information on how to increase the disk size for Kerio Control installed in the Hyper-V environment.
Kerio Control treats the VHD (Virtual Hard Disk) as a physical drive, and it cannot extend the space on its own in the Hyper-V environment.
However, it is possible to increase the space from Hyper-V using the steps below:
- Power off the Kerio Control Virtual Machine (VM).
- In the Hyper-V Manager, right-click the Kerio Control (VM) and select Settings:
- Select the Hard Drive that you want to expand and click on Edit: TODO Add note about "Edit" being unavailable if Checkpoint/s exist
- Click on Choose Action, select the Expand option, and click Next:
- Select Extend (or Expand) on the Next menu.
Note: This procedure increases the maximum disk size of the VHD, and will not show any change in the Kerio Control admin portal. As this is a dynamic disk it will expand as required until it reaches the maximum disk size configured via the process in this KB. If you want to confirm that the maximum disk space has indeed increased to the newly configured value, select the Kerio Control VM and then click Inspect Disk on the right .
You may refer to the following external guides for more information:
Modifying the partition size at OS level
In order for the expansion to be recognized by Kerio Control, you need to modify the partition size at the OS level as well (next steps).
Important! Before proceeding with the following steps, please make sure to perform a backup of the Kerio Control configuration and also a backup of the Virtual Machine itself, as editing partitions has the potential to cause loss of data!
- Download a live iso of GParted (a free partitioning tool for Linux); you can download the ISO from this link: GParted Download.
- Once downloaded you should attach the ISO to the Control VM in HyperV by right-clicking the VM and clicking Settings:
- You can now start the VM and the GParted live ISO boot menu will appear, press enter to select the default launch.
- Leave the next selection as "Don't Touch Keymap" and press enter.
- You can now select the language you prefer by entering its corresponding number and pressing enter, and then type 0 and press enter to leave the graphical settings as defaults.
- You will now see GParted boot its partition manager, showing the existing partition and the unallocated space added when you expanded the disk.
- Right-click on the relevant partition for the Control VHD (The largest one, usually located above the unallocated space) and select Resize/Move.
- Drag the slider at the top of the window all the way to the right to increase the partition to the maximum available size, taking up all the unallocated space, and then click Resize/Move.
- Click the green Tick at the top of the window to finalize the changes, and the Control partition will show its size increased as expected.
- Shut down the VM, unmount the GParted live ISO, and then start the VM again. Kerio Control should now show you the expected total disk space.