This issue occurs when the disk has been increased with the virtual machine still running. Disk Management has to disconnect from the disk and re-connect due to the parameters of the disk being changed, which causes the page file to disconnect and prevents kernel data located in the page file from loading into memory.
Microsoft recommends moving the page file to another disk before attempting to resize the disk. For more information, see the Microsoft Knowledge Base article 325590.
To workaround this issue:
- Add a new virtual disk to the virtual machine.
- Rescan in Disk Management.(In Windows you can access it though Start --> Run --> diskmgmt.msc)
- Create a new NTFS volume on the new disk.
- Move the swap file to the new volume.
- Adjust the swap file size as required.
- Remove the old swap file.
- Remove the virtual disk from the virtual machine and rescan in Disk Management.
Note: With some Windows operating systems, you may have to reboot the virtual machine to make changes to the swap file configuration.