In a Windows Server 2022 VM, Extend Volume may stay greyed out even after you expand the virtual disk. Usually the guest OS has not rescanned the disk, the free space is not next to the volume, or another partition blocks it.

Use Qiling Disk Master after the virtual disk has already been expanded and Windows Server can see the added unallocated space. The next step depends on the partition order on the VM disk.
Open Qiling Disk Master inside the VM. Select the virtual disk by disk number, total capacity, and partition layout. Confirm the added space appears as unallocated space on the same virtual disk. Then use the case that matches your disk layout.

Step 1. Select the target volume, such as C: or a data volume. Confirm it is on the expanded virtual disk and the unallocated space is directly to its right.
Step 2. Choose Resize/Move for the target volume.
Step 3. Drag the right border into the adjacent unallocated space, or enter the new volume size manually.

Step 4. Preview the layout. It should show only the target volume becoming larger, with no delete, format, or move operation.
Step 5. Click Proceed. Restart the VM if Qiling asks for it, then confirm the new volume size in Disk Management.
Step 1. Select the partition between the target volume and the unallocated space. If it is a data partition, confirm its files are backed up. If it is a recovery partition, keep it and move it instead of deleting it.
Step 2. Choose Resize/Move for the blocking partition.
Step 3. Drag the whole blocking partition to the right side of the unallocated space. This makes the unallocated space sit directly behind the target volume.

Step 4. Preview the move operation and click Proceed. Wait until the move finishes, and restart the VM if required.
Step 5. Select the target volume again, choose Resize/Move, extend it into the now-adjacent unallocated space, preview the final layout, and click Proceed.
Step 6. After Windows Server starts, open Disk Management and confirm the target volume shows the expanded size.
Step 1. Return to the hypervisor or cloud console and confirm the virtual disk size was actually increased.
Step 2. Inside Windows Server 2022, open Disk Management and choose Action > Rescan Disks.
Step 3. If the size still does not change, restart the VM during a maintenance window and open Disk Management again.
Step 4. If the added space appears after restart, go back to Case A or Case B based on whether the unallocated space is adjacent to the target volume.
Step 5. If the added space still does not appear, check the VM storage controller, snapshot chain, cloud disk attachment, or hypervisor task status before trying partition operations.
For VM disks, always expand the virtual disk first, make Windows Server recognize the added space, and then extend the partition. If the space is blocked, move the blocking partition before extending the target volume.