Hyper-V is a role in Windows Server 2019 that provides virtualization capabilities. In this video, learn how to install the Hyper-V role.
- [Instructor] In order to use virtualization in Windows server 2019, you have to first install a role called Hyper-V. So here I am on a Windows Server 2019 machine. I will tell you that it's a freshly installed machine and I've done nothing to it other than made it a member server in my local domain. So here we're in the server manager, which opens by default, and because Hyper-V is a role, I'm going to click on Add roles and features. This takes me into the Add Roles and Features Wizard. The first screen I get is a typical Before You Begin screen saying hey, you're about to do something important to this computer, make sure that you have all security and networking in place. We do, so I will go ahead and click Next. It is a role-based installation, so I will just keep the default and click Next. I need to select what server I'm installing this role on and I am installing on this local server called Host One which is already highlighted by default, so I'll click Next and now I get to select the actual role that I want to install. You'll notice on this list, if I go about halfway down, we can see Hyper-V. When I check the box next to Hyper-V, you see I get a little pop-out window saying, hey there are some other features that are also required with this role, so I'll say, yep, that's great, I'll click on the button that says add those features. This takes me back into the server role selection so if I wanted to add any other roles, I could, but I don't, I only want to do Hyper-V, so I'll click Next and now I have the ability to select any additional features I want to install. I don't have anything extra I need to install other than the defaults that were selected, so I'll click Next and now it takes me into telling me, well, you're about to install Hyper-V and here's what Hyper-V is, all right, this is the welcome screen to Hyper-V. When I click Next, this brings me into a screen that allows me to create a virtual switch. All right, and it tells you right on the screen, virtual machines require virtual switches to communicate with other computers. All right, now this is something that you can also manage after the fact, but you'll also notice that it tells me that one virtual switch will be created for each network adapter that you select if you select them here. All right, and it recommends that you create at least one now to provide virtual machines with connectivity to a physical network. All right, so I'm going to check the box next to the one network connection that I have, all right, I only have the one on this machine, all right, so I'll check the box and click Next. Now, this has to do with Live Migrations which is something that I'm going to actually cover later on in this course, so it's something that we could set up here, but we're going to go ahead and deal with it later, so I'm going to leave everything blank and click Next. Now it wants to know where we're going to store our virtual hard disk files, and the virtual machine configuration files. And I will tell you that I've created a folder on my C drive I guess that's the one other thing I did besides just a basic install, and that folder is called Hyper-V. So all I'm going to do, is I'm going to take the default that's set here and I'm just going to get rid of everything and just bring it down to the C drive Hyper-V folder and then the virtual hard disk will be in the virtual hard disk folder within Hyper-V, and then I'm going to do the same thing down on the second selection, where I'll just bring it right down to my C:/Hyper-V folder, and then I click Next. And then I do know that the installation of Hyper-V does involve a reboot, so I'm going to check the box saying I want to restart automatically and I get a little warning saying, hey, you know, if someone else is on this server, they're going to get kicked out, and I'll say, yep, I know what I'm doing, so I'll click Yes and at this point I can go ahead and click Install. Now this installation does take a few minutes depending on the speed of your machine. So I am going to speed up this process because it's going to take a few minutes and involve a reboot or two, and if you're following along, this is a good time to go ahead and pause the video and then resume once this process has finished. All right, well, we have gone through the process and a couple reboots, we're back at a login screen, so I'm going to go ahead and log back in. And once I do, what'll happen here is the Server Manager will pop right back up, 'cause it always does when you first boot up the machine, and we should see the quick completion of the installation process. So here you can see the Server Manager has opened, the Add Roles and Features Wizard has popped back up because the reboots were in the middle of the installation. You can tell that there's just a little bit left and now we see that the installation has succeeded and I can go ahead and close the Add Roles and Features Wizard. Now one quick side note to point out, you might notice all this red on the screen. This is just typical in Windows Server 2019 when you first boot up a machine, you will see that some services are not running, they are nothing more than delayed services, give it a few minutes and everything will switch back to green. In the meantime, what I do want to do is go up to the Tools menu, and you'll notice on the Tools menu you have a choice now for something called the Hyper-V manager and when I click on that, if we have successfully installed the role, we should actually get the Hyper-V manager to open and sure enough, it did and it's from here that we can do all of our virtualization management. And that's how you install the Hyper-V role.