Join Ed Liberman for an in-depth discussion in this video Installing the Hyper-V role, part of Windows Server 2016: Configure Hyper-V.
- [Instructor] Before you can use virtualization in Windows Server 2016, you have to first install the Hyper-V role. Now, it's important to note that the Hyper-V role is not new to Windows Server 2016, and in fact, it's been a role that's been included in all Windows Server operating systems going as far back as Windows Server 2008. You can also find the Hyper-V role included with Windows client operating systems, going back as far as Windows 8.
To install the role itself, I would like to point out that I'm on a computer that I have here that has Windows Server 2016 installed. The name on my computer is Host-1, and it is a member server in my own local domain here in my office. Here in the Server Manager, if we want to install a role, I just simply have to click on Add roles and features. When I do this, the first thing I see is a Before you begin screen that says, hey, you're about to install something important on this machine, so make sure your security prerequisites have been taken care of.
I have done these things, so I'll go ahead and click on Next. It is a role based installation, so again, I'll click on Next. As I mentioned before, the name of my machine is Host-1, and I'm a member of my own local domain that I have here called landonhotel.local. This is the machine I want to install on, so I will click Next. Now I can choose the actual role that I want to install, and you'll see on the list, we have Hyper-V.
Now, when I check the box for Hyper-V, you'll see that another window pops out, saying there are some additional features that are needed as part of this installation, so I will click the button to say, go ahead and add those features. I also could then choose any additional roles that I wanted to install on this particular server, but Hyper-V is all we're looking to do, so I'll go ahead and click on Next. Similarly, if there were any additional features I wanted to do besides the ones that are going to automatically be installed, I could add them now.
But I'm not looking to do anything else, I just want to do Hyper-V, so I will click Next. Now, since Hyper-V is the role that we're installing, it gives us a quick overview of what Hyper-V is, so I'll click Next again. Now, we need to get into just a little bit of basic configuration, there's a lot more that we'll get into after the role's installed. But the first thing it says here, right at the top, it says, "Virtual machines require virtual switches "to be able to communicate with other computers.
"After you install this role, "you can create virtual machines "and then attach them to a virtual switch." In the box here, it lists the Network Adapters that I have on this host computer. I just have the one Network Adapter, it's called Ethernet. By checking the box, it's going to create a virtual switch for that adapter, and I'm doing that so that when I create my virtual machines, I can attach them to this switch and they will be able to communicate.
I'll click Next. Another neat feature that we have in Hyper-V has to do with something called live migration. Live migration is something I will cover in more detail in another video. But if I wanted to go ahead and configure live migrations now, I could, I could check the box, and I could choose an authentication protocol. But I'm going to leave this all blank, OK, and we'll worry about doing that later. I'll click Next. We need to pick our default storage locations.
This is something that you want to truly pay attention to, because there is a default location on the C: drive, but because virtual machines and virtual hard drives can take up quite a bit of space, you may not want them on just your local C: drive, you may want to store them out on some larger storage drive that you have. I don't have another drive in this particular situation on my computer here, but I do have a folder that I set up, put a folder called Hyper-V on the root of the C: drive, so I'll just get rid of all the rest of that, right, we just want C:\Hyper-V and then Virtual Hard Disks.
For our virtual machines, again, I'm going to get rid of all the rest of it, and just go to my Hyper-V folder at the root of the C: drive. I'll click Next. Here I get a confirmation of what we're about to do. I'm going to go ahead and check the box to say restart automatically, if it's required as part of this process, and when I do, I get a warning box saying hey, somebody else could be working on this server, especially if you were doing this installation remotely, are you sure you want to do this, because they'll be kicked off, and I'll say yeah.
No one else will be using it, I'm fine. Then I'll go ahead and I can click Install. It begins the installation of the role. I will tell you that this process can take a little while, it can include a reboot, and so through the magic of video editing I will speed this up and bring us to the end. If you're looking to follow along, if you're trying this on your machine with me, this would be a great time to pause the video and then resume once this installation has completed on your end as well.
All right, so as part of the installation process, it is mostly complete, and it has also gone through a couple of reboots, and here I'm looking at the login screen, so I'm going to go ahead and log back in. When I do, it should take us right back into the Server Manager, and then take us back into the rest of the installation. The rest of the installation will still potentially take just a couple more moments. But we'll go ahead and we'll speed this up a little bit and get this all completed.
All right, so at this point, you can see that the installation has succeeded on this particular computer, so I will go ahead and close this window. I will tell you that we're seeing some red on the screen, which can be alarming. This is just something that is typical in Windows Server 2016 when you first boot up the machine, there are some delayed services, that's all that this is telling me right here. If I were to refresh this window a few times, I don't know if it'll happen this first try, no, not yet, I'm still waiting on those services to start up.
But once they do, that red will go away. I just want to point out, because you're seeing it and especially if you're following along, that's nothing to panic about. Rather than worrying about that, what I do want to show you is that if I go to the Tools menu, you'll see here that I now have a Hyper-V Manager option, and if I click on it, takes us into the Hyper-V Manager. This pretty much confirms that the role has been installed and I'm ready to now use virtualization on this particular server.
Again, the Hyper-V role is a very convenient feature that we have built right into Windows Server 2016, which allows us to use virtualization in our environment.
This course maps to the third domain of Exam 70-743, Upgrading Your Skills to MCSA: Windows Server 2016—Implement Hyper-V.
- Installing the Hyper-V role
- Creating virtual switches and virtual machines
- Installing a guest OS
- Managing checkpoints
- Implementing storage migration
- Implementing live migration