---

How to extend a linux virtual machine partition in Hyper-V

Adjusting CPU or Memory resources under Hyper-V is simple. You shutdown the VM, open the VM’s settings, and increase or decrease the allocated RAM or virtual CPU cores. When it comes to shrinking or expanding a virtual hard disk however, things get slightly more complicated.