I think I already knew this to be true, but didn't own a "portable enough" hard disk to lug around with my laptop to try it out myself. That's about to change as I got myself new Western Digital My Passport Ultra today; its the perfect size both terms of capacity and dimensions. So now I get to try this out in a real world scenario.
Moving the Virtual Drive Images
The entire process entails moving the physical files to the new location and letting Hyper-V know about this move. If the virtual machine (VM) is already active it does not seem to be possible to move the checkpoint location.
Open up the Hyper-V Management Console.
Create a checkpoint of the VM.
Shutdown the VM.
Next, navigate to the VM setting panel by right-clicking and selecting Settings or select it from the right actions pane.
On the settings panel, navigate to the hardware > IDE Controller 0
Virtual hard disk text box shows the current location of the virtual drive.
Copy the contents of this entire directory together with the snapshots to the new destination.
Change the Virtual hard disk path to match the new location.
You would receive the following message warning of data loss:
Since a checkpoint was created initially, click on Continue.
Click on Ok and the following warning is shown. Click on Continue as the warning not applicable to us.
Start up the virtual machine.
Since I already have checkpoint snapshots of my VMs, Hyper-V did not allow me to change the location. I think I might be able to use symbolic links in order to trick the OS into using the new drive. I will try to explore techniques available in a future post.
The only time this has become an issue is when saving the state of the VM. This causes hyper-v to writes a significant amount to the primary drive. This is something I can live with for now.
I decided to do a quick benchmark on the hard disk to satisfy my curiosity. I used CrystalDiskMark as it appears to be one of the more popular ones.
The numbers are on par with what's to be expected of the drive - here's a 33 gig VPC being copied over.
While I do not have a conclusive way to prove that get I do get improved performance, my system does feels more responsive. My primary drive no longer chokes with 100% activity when working with multiple VMs.
Setting up the operating system on a Solid State Drive (SSD) should be the next step in improving the overall system performance. Replacing the slow mechanical hard drive should in theory bring all kinds of performance improvements. And in order to get the maximum benefit of SSDs, one would need to think about strategies such as partitioning schemes in effectively segmenting data.