Link to home
Start Free TrialLog in
Avatar of sglee
sglee

asked on

How to Correct Smart Paging File Location in Virtual Machine

User generated imageUser generated imageUser generated imageUser generated imageHi,
 
 I have HyperV Server 2016. Virtual hard disks and configuration files reside in the following folders:

E:\HyperV\Configuration\Virtual Machines
E:\HyperV\Virtual Hard Disks

Recently I restored a virtual machine from an external USB hard drive (managed by Windows Server Backup) in Windows Server Backup. As seen in the screenshots, I restored the VM to an alternate location which is F drive (another external USB hard drive) . My intention was to restore VHDX files for the VM and I thought I could do that by using Windows Server Backup. But the problem was:
(1) Instead of selecting "Files and folders"  in Select Recovery Type screen, I chose "Hyper-V.
(2) In "Select Items to Recover" option screen, I ticked "VPN" VM and "Host components".

After restore job was finished, I realized that the VPN VM was running from the F drive (external USB hard drive).
So I shut down the VPN VM and got into "Settings" for VM and changed the virtual hard drive location from "F:\Restore\VPN\E_\HyperV"  to "E:\HyperV\Virtual Hard Disks".
Then I realized that Smart Paging File Location has also changed to F:\Restore\VPN\E_\HyperV\Configuration\Virtual Machines. In that folder, I saw 91A13DBB-A705-4337-8929-6F46E2023512.vmcx, 91A13DBB-A705-4337-8929-6F46E2023512.VMRS  along with 91A13DBB-A705-4337-8929-6F46E2023512  folder. At the same time, those files have been removed from their original location E:\HyperV\Configuration\Virtual Machines.

To correct the problem, can I do the following?
1. Shut down the VM.
2. Copy 91A13DBB-A705-4337-8929-6F46E2023512.vmcx, 91A13DBB-A705-4337-8929-6F46E2023512.VMRS  along with 91A13DBB-A705-4337-8929-6F46E2023512  folder from  F:\Restore\VPN\E_\HyperV\Configuration\Virtual Machines to E:\HyperV\Configuration\Virtual Machines.
3. Go to VM/Settings/Smart Paging File Location and replace F:\Restore\VPN\E_\HyperV\Configuration\Virtual Machines with E:\HyperV\Configuration\Virtual Machines.
4. Start the VM.
ASKER CERTIFIED SOLUTION
Avatar of Philip Elder
Philip Elder
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sglee
sglee

ASKER

@Philip,

 That worked and saved me a lot of time & effort.

Thank you!
Kewl! :)