Be Your Own VPS: Part 2 – Configure Hyper V Server 2016

ArticlesBlog

Written by:


Greetings internet people, and thanks for
tuning in. I am Alaska Crypto Guy and this video is part
of my “Be Your Own VPS” series. In the previous video we downloaded and installed
Microsoft Hyper-V Server onto a server we built from an older Dell desktop computer. Today, I will show you how to configure the
server core side of Microsoft’s free Hyper-V Server 2016. Let’s start by booting the newly installed
server. In the previous video, I warned viewers that
the Hyper-V Server is a core installation and does not have a graphical user interface (GUI). Basic configuration of the server must be
performed through PowerShell and the command line. Don’t let that make you nervous; it is actually
pretty straightforward. For the more advanced configuration of the
server, you will be connecting remotely to the server from another Windows desktop. You will configure the rest of the settings
remotely using the Server Manager and Hyper-V Manager applications. These programs will be covered in a later
video. The Hyper-V Server core interface consists
of two windows that come up when you log into the server. The blue one is the Server Configuration window. This page contains several essential settings
that tell your server how to behave. The second window is a black terminal which
launches the command line. If you accidentally close the blue server
configuration utility, you may get it back by typing “sconfig” into the command prompt. Let’s start configuring the server. For this I like to start from the bottom and
work my way up the list. The order doesn’t really matter a whole
lot but I found this way works best for me. Type “10” into the Server Configuration
page and Press ENTER. This will bring up the Microsoft Telemetry
settings. As I read the info box that pops up, Telemetry
sounds a lot like tracking or information gathering that doesn’t sound particularly
necessary so in order to keep our machine as private as possible, we will go ahead and
change these settings. Click “Yes” and then type the number “1”
and Press ENTER to restrict the amount of information your server will report back to
Microsoft. Next we will configure the Date and Time settings
of your server. If the date or time on your server is off
by even as little as a few minutes, it can cause connectivity problems on your network. Let’s start by changing the time zone to
your local time zone. Then click the “internet time” tab and
force an update of the time by clicking “update now” and wait for it to complete before
you click “ok”. Click “ok” a second time to close out
of the “date and time” settings. Type “8” and Press ENTER to open the Network
Settings configuration. I only have 1 network connection on this computer
but if you are going to host lots of different virtual machines that use a lot of bandwidth
you may want to install a second network card in your computer. Type “1” to enter the settings for the
first network adapter in the list. We are going to configure a static I-P address
on this machine. Type “1” again and Press ENTER to configure
it’s address. Type “S” for a static I-P address and
Press ENTER, then type the static IP address and subnet mask you want and Press ENTER. If you have IPv6 on your network you will
see an address listed after your IPv4 addresses. IPv6 allows you to host multiple master nodes
on the same virtual machine, so if you do not have this on your network you may want
to add it. I will create a video about how to do this
in the near future. You’ll also need to enter a default gateway,
which is usually your network’s router address, and Press ENTER. Note: If you enter a static IP address here,
be sure to assign or reserve that same IP address on your router. Since we are going to be configuring this
server remotely it is important to enable Remote Desktop. Type “4” to return to the main menu. Type “7” to enable “Remote Desktop”. Then type “E” to enable and Press ENTER. Then type “1” and Press ENTER to require
clients to use more secure connections when connecting to your server. You will see a dialog box that tells you when
Remote Desktop has been successfully enabled. Click “OK” to close that one. Let’s enter Windows Update Settings by typing
“5” and pressing enter. The default setting is “Download Only”
which is the best of the options for my needs. Because this is a server and I want to be
in control of when the server restarts I do not want the server automatically installing
updates. To keep the default setting type “D” and
Press ENTER or just skip configuring this section. There are just a few simple changes left and
you will be done with this part of the setup. Type “4” and Press ENTER to configure
remote management settings. Again, remote management is enabled by default
on this system and that is ok, but I also like to instruct my server to reply to pings
from other devices on my network because I find it aids in configuration. Type “3” and then click “Yes” to allow
the server to respond to Ping commands. Then type “4” to return to the main configuration
page. At this point, let’s add a new administrator
account that we will use to remotely configure this server. Type “3” and Press ENTER. Then type a name for the new user account
and enter a password for the account by typing a password twice and pressing enter. It is important to remember that the easiest
and possibly only way to remotely configure your server is to use the same username, password,
and workgroup name on both the server and your other Windows computer. Next, we are going to configure the computer’s
name so type “2” and Press ENTER. Then type a computer name, I am using Hyper-VPS
because it makes sense to do so, and Press ENTER. Your computer will direct you to restart before
those changes take effect but we will do that a bit later so click “no” here to continue
setup. The last setup from the Server Configuration
page is to set the name of the computer’s workgroup. Type “1” to enter workgroup setup and
then type “W” to choose workgroup instead of domain and then type the name of your workgroup
and Press ENTER to join the workgroup. At this time I am going to reboot the computer
so type “12” and Press ENTER, then click the “Yes” button to continue restarting
this computer to apply all of the settings changes that we just configured. The computer should restart quickly. I should have signed in as my new administrative
user this time but I forgot to, so I will do that next time. After this re-boot let’s sign in and then
type “6” and Press ENTER to Download and Install Updates. I usually use “A” for All Updates and
then let it search for and install them. I have accelerated this process dramatically
to save time in the video. It took almost 15 minutes for the computer
to detect available updates, and then almost another hour to download and install the updates. This is a great time to make a cup of coffee,
have lunch, or do something else with your time while keeping an eye on the computer
to keep it on task. A computer restart is required to complete
the installation of these updates and there are several minutes of additional configuration
required after the restart. After it has finished and you are logged back
in, enter Download and Install Updates again to install additional updates that were missed
in the first pass. Repeat this a couple of times until your server
has installed all of the detected updates. Some features, such as Remote Desktop, will
not work until the security updates are installed. Do not skip this step! After all of the Windows Updates have been
installed, log back into the computer with the new admin account that you created earlier. We are going to need to enter a few commands
into the command line to get everything set up properly. Because it can be really inconvenient to have
your user’s password expire on the server, I find it easiest to just disable password
expiration on the server. To do this, enter the command shown on the
screen at the command prompt and Press ENTER. You will get a message that the command completed
successfully. After troubleshooting what had been slowing
down a previous Hyper-V Server, I found that they perform better when I uninstall Windows
Defender. I do not think of this as a huge security
risk because my virtual machines will each be responsible for the security of their own
processes. To remove Windows Defender from the server,
type “power shell” to move from the command prompt into a Power Shell prompt. Then type the command exactly as I have written
it here and watch while the uninstallation is completed. The last step of today’s configuration is
to enter some firewall rules on the server which are required in order to remotely configure
this server using the “Server Manager” application from another computer. These 4 firewall rules must be entered exactly
as I have written them here. Type them out and then press “enter” after
each. You will not get a confirmation message after
pressing enter. If you do not get an error message, then you
have entered them correctly. After you have entered the firewall rules,
restart the server to commit the changes. I think we have accomplished quite a bit for
one day so at this point it is safe to go ahead and shut down the computer and take
a break. If you have any questions or comments, please
let me know what you think below. In the next video, we will configure another
Windows computer to remotely connect to and manage this Hyper-V Server, and then get this
server ready to host some Virtual Machines. Until then, remember: Don’t be afraid to
push buttons. You never know what might happen if you do!

2 Replies to “Be Your Own VPS: Part 2 – Configure Hyper V Server 2016”

  1. Juanma Otero says:

    I can´t add te set-netfirewallrules – impossible – any suggestion – hyper-v server 2016 download today – thanks

  2. Rumi Zen says:

    Why does it say "No applicable updates" when I try to update

Leave a Reply

Your email address will not be published. Required fields are marked *