[Step By Step] Installing the Hyper-v role + Importing Virtual Machines in Windows Server 2012 R2
Hello friends, This time I bring you a tutorial detailing the steps to install the Hyper-v role in Windows Server 2012 R2. I hope you find it useful!! Regards. Objective The objective of this article is to detail the steps for installing th
AI-assisted translation, approved by Mateo.
Objective
The objective of this article is to detail the steps for installing the Hyper-v role and using the wizard to import virtual machines on a Windows Server 2012 R2 server.Scope
The scope of this article is the installation of the Hyper-v role in Windows Server 2012 R2. Next, a virtual machine previously installed in Windows Server 2012 will be imported.Introduction
What is Hyper-v? Hyper-v is the Windows Server virtualization role. It provides us with tools to create and manage our virtualized environment (for more information about Hyper-v, I leave you the link to the official documentation http://technet.microsoft.com/en-us/library/cc753637%28v=ws.10%29.aspx) Hyper-v in Windows Server 2012 R2 has had some very interesting improvements. You can see the details of each one in the official Technet documentation: http://technet.microsoft.com/en-us/library/dn282278.aspx Below, this tutorial details the steps to install that role in Windows Server 2012 R2.Installing the Hyper-v Role in Windows Server 2012 R2
To install the Hyper-v role in Windows Server 2012 R2, we must follow these steps:- Open Server Manager
- Go to Manage>Add Roles and Features.
- The Add Roles and Features Wizard will start. The “Before you begin” screen will be displayed; click Next.
- Choose the “Role-based or Feature-based installation” option.
- Select the server on which we want to perform the installation.
- In the Server Roles section, select the Hyper-v checkbox.
- It will ask whether we want to install the Required Features (Windows features required by the role). Click Add Features.
- On the Features screen, click Next.
- We start the configuration required to install the role. The first screen is informational; click Next.
- In this option, we must specify the network adapter that we will designate as the “Virtual Switch”; this feature provides connectivity for virtual machines. It is recommended to select at least one network adapter. In this case, we will select the only one available. Click Next.
- We must configure the server for Live Migrations. It is recommended to leave this configuration disabled initially; it can be enabled later if necessary. Click Next.
- We will configure the “Default Store”, the default location for the VHDs and configuration files that will be created for each virtual machine. Click Next.
- Finally, the installation Summary will be displayed. Click Install.
- Finally, the installation will begin.
- Windows Server 2012/2012 R2 allows us to close the wizard and view installation progress from the notification area, as shown below:
- Once the installation is complete, we must restart the computer.
Virtual machine import wizard
A very useful improvement introduced in Windows Server 2012 R2 is the virtual machine Import wizard. This wizard will allow us to import virtual machines automatically by specifying only some file location details. This is very useful when, for example, virtual machine files that were previously functional are available on the host computer. To import a virtual machine, it is required to have:- The configuration files.
- Virtual disk (.vhd).
- We must open the Hyper-v Manager console.
- In the right-hand “actions” pane, click Import Virtual Machine…
- The virtual machine import wizard will start. Click Next.
- We must specify the location of the configuration files. Click Next.
- The wizard automatically detects the virtual machine to import. Click Next.
- This is an important point: we must specify the import type. In this case, we will select Register:
- Register: We will select this option when we already have all the files located where we want them and only need to start using the virtual machine.
- Restore: We will select this option if we need to give the virtual machine files an appropriate location and then register it.
- Copy: We will select this option if we have virtual machine files that we want to import repeatedly. This option will make a copy of the files, give them an appropriate location, and then register the VM on the server.
- We must specify the location of the virtual machine's VHD file. Click Next.
- Finally, the wizard Summary will be displayed. Click Finish.
- Once the procedure is complete, the virtual machine will be operational on our Hyper-v server
Thanks for reading. The learning continues in the next article.