Create Highly Available Virtual Machine; Hyper-V has a number of tools & mechanisms to provide virtual machines in a highly available shape in a Windows Server Failover Cluster that is hosting the Hyper-V role.
Hyper-V Manager
1- When we install the Hyper-V Role, we generally install the Hyper-V Manager along with the role. Hyper-V manager Create High Availability Hyper-V Virtual Machine.
![hyper v manager](https://xpertstec.com/wp-content/uploads/2020/05/hyper-v-manager-1.webp)
Using the Hyper-V Manager How to create hyper-v virtual machine
2- After going through the new wizard to create the virtual machine, we can see the new VM listed in Hyper-V Manager.
![hyper v manager](https://xpertstec.com/wp-content/uploads/2020/05/hyper-v-manager-2.webp)
We want to apply another tool to ensure the newly created Hyper-V virtual machine is highly available and is a cluster resource.
Highly Available Virtual Machine
3- Failover Cluster Manager, right click on roles and then click configure role.
![failover cluster manager roles](https://xpertstec.com/wp-content/uploads/2020/05/failover-cluster-manager-roles.webp)
4- High Availability wizard click next.
![high availability wizard before](https://xpertstec.com/wp-content/uploads/2020/05/high-availability-wizard-before.webp)
5- Select the virtual machine role and then click next.
![high availability wizard roles](https://xpertstec.com/wp-content/uploads/2020/05/high-availability-wizard-roles.webp)
6- Select virtual machine and click next.
![high availability wizard virtual machine](https://xpertstec.com/wp-content/uploads/2020/05/high-availability-wizard-virtual-machine.webp)
7- High availability wizard confirmation click next.
![high availability wizard confirmation](https://xpertstec.com/wp-content/uploads/2020/05/high-availability-wizard-confirmation.webp)
8- Configure high availability in progress.
![configure high availability wizard](https://xpertstec.com/wp-content/uploads/2020/05/configure-high-availability-wizard.webp)
9- Review the summary and click finish.
![configure high availability summary](https://xpertstec.com/wp-content/uploads/2020/05/configure-high-availability-summary.webp)
10- Now you can see the virtual machine.
![failover cluster manager roles](https://xpertstec.com/wp-content/uploads/2020/05/failover-cluster-manager-roles-1.webp)
Create virtual machine high availability Hyper-V using a failover cluster manager
We have our storage set-up and location configurations set to our clustered shared volume.
11- Create high availability Virtual Machine. Right-click on Roles, select Virtual Machines, and then New Virtual Machine.
![failover cluster manager](https://xpertstec.com/wp-content/uploads/2020/05/failover-cluster-manager.webp)
12- Now we can select the node we initially want to setup the virtual machine on and click next.
![failover cluster nodes properties](https://xpertstec.com/wp-content/uploads/2020/05/failover-cluster-nodes-properties.webp)
13- New Virtual Machine Wizard clicks next.
![new virtual machine before you](https://xpertstec.com/wp-content/uploads/2020/05/new-virtual-machine-before-you.webp)
14- Enter a virtual machine name and either leave our default storage location (CSV) or choose a different one. We want to take advantage of the CSV benefits, so leave default and then click next.
![new virtual machine wizard name](https://xpertstec.com/wp-content/uploads/2020/05/new-virtual-machine-wizard-name.webp)
15- Select the Generation of the virtual machine and then click next.
![virtual machine specify generation](https://xpertstec.com/wp-content/uploads/2020/05/virtual-machine-specify-generation-1.webp)
16- Assign memory for the virtual machine and then click next.
![new virtual machine assign memory](https://xpertstec.com/wp-content/uploads/2020/05/new-virtual-machine-assign-memory.webp)
17- Select the virtual network and click next.
![new virtual machine networking](https://xpertstec.com/wp-content/uploads/2020/05/new-virtual-machine-networking.webp)
18- Virtual Hard Disk configuration, select disk size and then click OK.
![virtual machine virtual hard disk](https://xpertstec.com/wp-content/uploads/2020/05/virtual-machine-virtual-hard-disk-1.webp)
19- Select how you want to load the operating system and click next.
![virtual machine installation options](https://xpertstec.com/wp-content/uploads/2020/05/virtual-machine-installation-options.webp)
20- Review the new virtual machine Summary and then click finish.
![completing virtual machine summary](https://xpertstec.com/wp-content/uploads/2020/05/completing-virtual-machine-summary.webp)
21- After clicking Finish, the High Availability Wizard will launch.
![configure high availability wizard](https://xpertstec.com/wp-content/uploads/2020/05/configure-high-availability-wizard-1.webp)
22- It will display the results of creating the virtual machine’s high availability. Click Finish
![high availability wizard summary](https://xpertstec.com/wp-content/uploads/2020/05/high-availability-wizard-summary.webp)
23- Virtual machine created.
![failover cluster manager roles](https://xpertstec.com/wp-content/uploads/2020/05/failover-cluster-manager-roles-2.webp)
If the two-node machines run different CPU models, processor compatibility is enabled.
24—With the virtual machine turned off, right-click the machine in Hyper-V Manager and select settings.
![hyper v manager](https://xpertstec.com/wp-content/uploads/2020/05/hyper-v-manager-3.webp)
25- Expand Processor, and then click Compatibility. Select the checkbox Migrate to a physical computer with a different processor and then click OK.
![hyper v virtual machine settings](https://xpertstec.com/wp-content/uploads/2020/05/hyper-v-virtual-machine-settings.webp)
26- Double-click your virtual machine.
![failover cluster manager roles](https://xpertstec.com/wp-content/uploads/2020/05/failover-cluster-manager-roles-3.webp)
27- In the General tab, under preferred owners, select the nodes that you want to manage your virtual machine in the event of a failure. Click OK
![failover cluster nodes properties](https://xpertstec.com/wp-content/uploads/2020/05/failover-cluster-nodes-properties-1.webp)
For more details click here