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 server to properly authenticate to the target server.
How to do it...
Complete the following steps to migrate VM storage:
Log onto server
HV01
and open a PowerShell console.Execute the following to initiate the migration:
Move-VM -Name VM1 -DestinationHost...