Easy Hyper-V 2016 configuration steps

Here we are with the third part of the article series on Hyper-V 2016. In this article the Hyper-V 2016 configuration steps are organised in different sections for easy and quick read. The list below represents the topic we’ll cover in this article:

  • Hyper-V 2016 Configuration of Windows Updates
  • Remote Desktop Hyper-V 2016 Configuration
  • Firewall Hyper-V 2016 Configuration
  • Create a VMware template for Hyper-V 2016 Configuration
  • Hyper-V 2016 Configuration of Network Settings
  • Hostname Hyper-V 2016 Configuration
  • Installing VMware Tools on Hyper-V 2016
  • Domain Join Hyper-V 2016 Configuration
  • Conclusions

Ready? Here we go!

Hyper-V 2016 Configuration introduction

As you can expect the Hyper-V 2016 configuration uses a text based wizard as per previous release of Hyper-V. Upon the first boot from the install phase the first option will be to create a password for the local Administrator user.

Hyper-V 2016 Configuration login

We can choose a password that of course can be changed later on if required. What’s interesting is that from the same “screen” we can also hit “ESC” twice to login with a different user when multiple users are created locally in Hyper-V or the Hyper-V server is part of an Active Directory Domain as we’ll cover later on.

Hyper-V 2016 Configuration login password

As per screenshot below.

Hyper-V 2016 Configuration login password change

As soon as the password is created a new command prompt will appear for the actual Hyper-V 2016 Configuration.

Hyper-V 2016 Configuration of Windows Updates

the first thing I generally configure when installing a new OS is about Updates. And Hyper-V makes no exception. In this case considering I’m just running Hyper-V as VM for testing purposes I’m happy to use what’s currently out-of-the-box. Additionally the reserved space on the system drive might be filling up in the future very quickly by downloading updates. By the way this option can be changed at any time.

Hyper-V 2016 Configuration wizard

To change the policy for Windows Updates let’s press on option 5.

Hyper-V 2016 Configuration Windows Update

For this installation I will choose a Manual Install of the updates.

Hyper-V 2016 Configuration Windows Update Manual

And confirm with the selection.

Hyper-V 2016 Configuration Windows Update disable

 

Remote Desktop Hyper-V 2016 Configuration

Hyper-V 2016 Server also includes a Remote Desktop feature that we can configure. Let’s hit on option 7.

Hyper-V 2016 Configuration RDP

Of course let’s select the Enable option.

Hyper-V 2016 Configuration RDP enable

Once the Remote Desktop feature is active we can also decide on the security features. NLA forces the client computer to present user credentials for authentication before the server will create a session for that user. Because NLA relies on a technology called Credential Security Support Provider (CredSSP) Protocol it is important the RDP client we use to connect to the target server supports this protocol.

Generally speaking I’m enjoying mRemoteNG to manage multiple connections but sometimes seems to fail connections to certain servers with NLA active. For this reason in my home lab I will go for option 2.

Hyper-V 2016 Configuration RDP NLA

And hit OK to confirm the selection.

Hyper-V 2016 Configuration RDP NLA

Firewall Hyper-V 2016 Configuration

Another aspect relative to Network communication of course is the Firewall. Next steps show how to disable the built-in Firewall using PowerShell cmd-lets. All we have to do is to use the seconf command prompt or hit option 14 to exit to command line. When done we can just issue the command “sconfig” to return back to the main wizard.

Hyper-V 2016 Configuration PowerShell

Next is to query for the NetSecurity module and see the available commands.

Hyper-V 2016 Configuration Powershell Firewall

From the list below we can run a high number of configurations. We are looking for the Set-NetFirewallProfile to shutdown the firewall.

Hyper-V 2016 Configuration Powershell Command

We can now execute the following commanf to shutdown the internal firewall:

Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False

Hyper-V 2016 Configuration Powershell Firewall disable

We can now check the status of the firewall very quickly with this command:

Get-NetFirewallProfile

Hyper-V 2016 Configuration Powershell Firewall status

Of course we can also apply for specific network configuration where suitable.

Hyper-V 2016 Configuration reboot

As a next step at this point I’m going to shutdown Hyper-V Server so I can save this “VM” as a template in VMware. The idea is to store common settings in a template and eventually configure the unique ones from the VMs out of the templates.

Hyper-V 2016 Configuration shutdown

 

Create a VMware template for Hyper-V 2016 Configuration

This step is optional. In my home lab I will be creating a Hyper-V Cluster and for this reason I’m cloning the first Hyper-V 2016 VM to a template so I can deploy faster the second Hyper-V 2016 Host VM based on this one. This way both members of the cluster share the same settings.

Hyper-V 2016 Configuration VMware Template

 

Hyper-V 2016 Configuration of Network Settings

Let’s take a look at the network configuration settings with option 8.

Hyper-V 2016 Configuration Network Settings

Should we have multiple network cards they will appear here with ID number. The benefit of using multiple network card of course would be to separate the Management traffic from the Storage one where VMs are located. In our example we’ll use only one network card. so let’s select ID 1 as per screenshot below.

Hyper-V 2016 Configuration network card

From this sub-menu we can go through the network settings for IP Address, Network Mask, Gateway and DNS. Let’s start with option 1.

Hyper-V 2016 Configuration DHCP

I would recommend to use a static IP address for Servers and also make sure DNS name resolution is fully working with respective FQDN names as well.

Hyper-V 2016 Configuration Network static IP

Next is the configuration of the DNS Server.

Hyper-V 2016 Configuration Network DNS

Let’s review and commit by going back to Main menu with option 4.

Hyper-V 2016 Configuration Network Menu

 

Hostname Hyper-V 2016 Configuration

From the main menu we have also the option to setup the Hyper-V 2016 hostname. This will require a confirmation and reboot to apply for settings.

As an alternative the hostname can also be changed when joining an Active Directory Domain. The wizard will offer the option before rebooting.

Hyper-V 2016 Configuration Change Name

 

Installing VMware Tools on Hyper-V 2016

Since this Host is actually a VM using a Windows Guest OS template in VMware why not installing VMware Tools and benefit from the improved performances and management? The steps below outline the process. First let’s make sure we mount the VMware Tools ISO. The quickest would be to use the built-in option to start installing the VMware tools. Next let’s take a look at the content of the ISO.

Hyper-V 2016 Configuration install VMware tools

From the command line let’s just run:

setup64.exe

This will start the VMware tools installation wizard as per screenshot below:

Hyper-V 2016 Configuration VMware Tools

Let’s go for typical unless we have special requirement and pick and choose the individual features.

Hyper-V 2016 Configuration VMware tools wizard

At the end of the wizard we can just reboot the Hyper-V 2016 Server.

Hyper-V 2016 Configuration VMware Tools restart

 

Domain Join Hyper-V 2016 Configuration

As an additional step we might also want to add the Hyper-V Server onto a Domain. There are several benefits and primarily for management of the Hyper-V Server as a standalone or even part of a Cluster. For example once the Hyper-V server is aprt of an Active Directory Domain we can simply import Users and Group from Ad to be part of the Hyper-V Administrators.

Again another example is with WinRM (Windows Remote Management) that it is easier to use when coupled with AD accounts. This is quite handy considering we’ll be going to manage Hyper-V Server using a remote console installed on a different server taking advantage of the full GUI.

Hyper-V 2016 Configuration Join domain

Once we specify the domain settings to join, the Hyper-V Server will ask to change the Hostname before joining the domain and commit changes with a final reboot of the server.

Conclusions

In this article a quick review of the Hyper-V 2016 configuration settings. Very easy to deploy and configure we can also clone this setup also to a Template in case of nested hypervisor install. Running Hypervisors as a VM is very handy and practical in particular for studying and home lab scenarios. Next article will focus on adding and configuring a second drive to store Hyper-V VMs, managing VMs and last but not least protecting Hyper-V VMs with Veeam Backup and Replication.

Michele Domanico

Passionate about Virtualization, Storage, Data Availability and Software Defined Data Center technologies. The aim of Domalab.com is sharing with the Community the knowledge and experience gained with customers, industry leaders and like minded peers. Always open to constructive feedback and new challenges.

Leave a Reply