-
Book Overview & Buying
-
Table Of Contents
Windows Server 2012 Automation with PowerShell Cookbook
By :
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.
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:

Due to Kerberos restrictions, you must be logged on to the source server to properly authenticate to the target server.
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...
Change the font size
Change margin width
Change background colour