After increasing the size of the VMDK for a Windows virtual machine that contains the swap file, you may experience these symptoms:
- Rescanning in Disk Management causes the virtual machine to fail
- You see this blue screen error:
STOP 0x0000007A KERNEL_DATA_INPAGE_ERROR
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.
- 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.
Based on VMware KB 1034507