Here, you learn how to install Hyper-V from the role. The lab systems that are used for this installation are joined to the domain
Windows 10 also has a version of Hyper-V available that you can install. It’s a feature that can be enabled, and it will allow you to support virtual machines, virtual networking, and virtual storage. This is very helpful if you need to be able to run multiple operating systems in your normal day-to-day activities. This feature is only available if you’re running Windows 10 Pro, Enterprise or Education editions. It is not available on Windows 10 Home edition. The Windows 10 version of Hyper-V does not support advanced functionality like live migration, Hyper-V Replica, or SR-IOV.
How to install Hyper-VYou need to make some basic configuration decisions during the installation of Hyper-V, but they can be changed after the installation, so if you change your mind or make a mistake, don’t panic!
Follow these steps to install Hyper-V:
- From Server Manager, choose Manage→ Add Roles and Features.
- On the Before You Begin screen, click Next.
- On the Select Installation Type screen, click Next.
- On the Select Destination Server screen, click Next.
- On the Select Server Roles screen, select Hyper-V.
- Click Add Features in the dialog box that pops up, and then click Next.
- On the Select Features screen, click Next.
- On the first Hyper-V screen, click Next.
- On the Create Virtual Switches screen, select the network adapter you want to use for the virtual switch.
As you can see in the figure, you have only one adapter to choose from right now, so select it.You must select a network adapter for the virtual switch to use. You can change this later.
- Click Next.
- On the Virtual Machine Migration screen, select the Allow This Server to Send and Receive Live Migrations of Virtual Machines on This Server check box and select the Use Credential Security Support Provider check box.
Live migrations enable you to move a virtual machine from one Hyper-V host server to another Hyper-V host server with no downtime. CredSSP is the simplest way to set up live migration, but it requires you to log into the server being migrated, so it isn’t the best for automatically moving virtual machines.To enable live migration of VMs, select the check box to allow them and select CredSSP.
- Click Next.
- On the Default Stores screen, keep the default locations and click Next.
- On the Confirm Installation Selections screen, select the Restart the Destination Server Automatically If Required check box.
- Click Yes on the dialog box that is confirming you want to allow the reboot.
- Click Install.
How to configure Hyper-VAfter Hyper-V is installed, there are many different things that you can configure or change from what you set during installation. Getting to the Hyper-V console is similar to the other roles that you install on Windows Server 2019. From Server Manager, choose Tools→ Hyper-V Manager.
When Hyper-V Manager opens, you see the name of the server on which you just installed the role. Click that server, and you see the menus change to reflect some of the things that you can do with the host. If you right-click the host, you see a menu similar to the one show. This menu allows you to configure your Hyper-V host the way that you want to.
To start configuring the host, click Hyper-V Settings in the menu that you got from right-clicking the server’s name.
Virtual Hard Disks and Virtual MachinesThe first two configuration options — Virtual Hard Disks and Virtual Machines — allow you to change the storage location of the virtual hard disks that are used for the VMs and the location of the VM’s configuration files.
NUMA SpanningThe third option, Non-Uniform Memory Access (NUMA) Spanning, shown in the following figure, allows you to set the host to act as a NUMA node. This allows VMs to use resources from the server they’re on as well as other servers that are configured to be NUMA nodes. This means that a virtual machine can have more CPU or RAM than what is on the one physical host, if another host which is also a NUMA node is sharing that resource. This has an impact on performance so I wouldn’t recommend it unless you’re using it in a lab or development environment. Avoid using this in production environments.
Live MigrationsAssuming you followed along in the installation of Hyper-V, your Live Migrations section should have a check mark in the Enable Incoming and Outgoing Live Migrations check box. On this screen, you can specify how many live migrations can happen at any given time. The default here is two, as shown here. You can also specify a particular IP address if you want Live Migration to happen over a different interface than the rest of the traffic.
There is a plus sign next to Live Migrations. If you click that, you get the option for Advanced Features. Advanced Features is where you can change what kind of authentication you want to use for migrations. This is set to CredSSP right now (if you followed the installation instructions), and this is where you can choose Kerberos if you would like.
You can also choose performance options from here. Your choices are TCP/IP, Compression, or SMB. I recommend leaving this on Compression.
Storage MigrationsStorage Migrations allows you to move VM storage with no downtime to the virtual machine. It’s very helpful when moving to a new storage array, or when getting ready to perform maintenance on a storage array because you can move the storage with the virtual machine still powered on. In this section, you can decide how many storage migrations you want to allow to happen at the same time. The default setting for this screen is two.
Enhanced Session Mode PolicyEnhanced Session Mode Policy allows your Hyper-V host to connect to your VMs over Remote Desktop Protocol (RDP). You may be wondering why you would want to allow that. When you use RDP to connect, you can pass local devices to your VMs like disk drives, flash drives, and other peripherals. You also gain a shared clipboard that allows you to copy and paste, and it improves support for viewing the VMs on a higher-resolution monitor. This setting is disabled by default on Windows Server 2019 so you need to enable it if you want to use this feature.
Replication ConfigurationYou can set up your Hyper-V host to act as a Hyper-V Replica. When a Hyper-V host is configured as a replica, VMs are copied to it from the primary Hyper-V servers. If the primary Hyper-V server ever experienced a major malfunction, the replica server can bring up the VMs that are kept in a powered-off state.
You can specify whether you want replication traffic to be sent plaintext or encrypted. I always recommend using encryption when it’s available. And you can also select whether you want to allow replication from any server that can authenticate, or if you want to limit replication to specific servers. This screen is shown here.
KeyboardThe Keyboard screen is one of the user settings. You can specify whether key combinations like Alt+Tab, for example, will apply to the physical computer the keyboard is attached to, the VM, or on the VM but only if the VM is full screen.
Mouse Release KeyIf you haven’t installed the VM drivers, you can set which key combination you want to use to release the mouse so that you can use it outside of the VM. Unless there is a good reason not to, install the VM drivers.
Enhanced Session ModeEnhanced Session Mode is enabled for the user by default. It allows you to use a remote desktop connection to pass through drives, printers, and so on, and to use the shared clipboard.
Reset Check BoxesAll this setting does is reset check boxes that are used to hide pages or messages when they’re checked. It doesn’t reset anything else.
Virtual Switch ManagerWhen you right-click your Hyper-V host, you may notice an option for Virtual Switch Manager. This selection allows you to create virtual switches that your VMs can use to communicate on the network. There are three types of switches that you can use within Hyper-V:
- External: Allows you to connect to a physical network
- Internal: Allows the virtual machines to communicate with other virtual machines on the same switch and with the host
- Private: Only allows virtual machines to communicate with other virtual machines on the same switch
Virtual SAN ManagerAlso in the menu for your Hyper-V host is the Virtual SAN Manager. This allows you to connect your Hyper-V host to a Fibre Channel SAN. This is especially helpful for large organizations that have invested in Fibre Channel technology. You can see in the following figure that you can define the World Wide Node Name (WWNN) for the Fibre Channel port that is on the Hyper-V host.
Fibre Channel SANs utilize special switching equipment to support high-speed, low-latency storage networks. Systems that use Fibre Channel need special storage network adapters installed, which are referred to as host bus adapters (HBAs).