Migrating VM storage between hosts

In environments without shared storage, Hyper-V operates using local storage on each server to hold the virtual machines. Hyper-V allows for migration of virtual machines and their virtual hard disks between Hyper-V Servers using local storage. This allows for VM portability between hosts without the additional cost of shared storage.

Getting ready

In this recipe we will be using two Hyper-V Servers, each with locally attached storage. The virtual machines reside on locally attached storage on the Hyper-V Servers and we will move the VM and its disk contents between the hosts. This process will occur without any downtime on the virtual machine:

Note

Due to Kerberos restrictions, you must be logged on to the source ...

Get Windows Server 2012 Automation with PowerShell Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.