{"id":3163,"date":"2021-07-13T12:29:53","date_gmt":"2021-07-13T17:29:53","guid":{"rendered":"https:\/\/microsoftgeek.com\/?p=3163"},"modified":"2021-07-13T12:33:25","modified_gmt":"2021-07-13T17:33:25","slug":"how-to-install-hyper-v-on-windows-server-2019","status":"publish","type":"post","link":"https:\/\/microsoftgeek.com\/?p=3163","title":{"rendered":"How to Install Hyper-V on Windows Server 2019"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"The_Windows_Server_2019_Install_Procedure\">The Windows Server 2019 Install Procedure<\/h2>\n\n\n\n<p>The following steps walk through Windows Server 2019 Installation from media. Aside from the text fields and the license prompt in step 3, installing Hyper-V Server does not change the screens or process.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>You begin on the language, locale, and input choice screen:<br><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.altaro.com\/hyper-v\/wp-content\/uploads\/2018\/12\/instws19_screen1.png\" alt=\"installing Windows Server 2019\" width=\"1024\" height=\"768\"><\/li><li>The second screen has the lone&nbsp;<strong>Install now<\/strong>&nbsp;button. If you need it, you\u2019ll find the&nbsp;<strong>Repair your computer<\/strong>&nbsp;link at the lower left.<br><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.altaro.com\/hyper-v\/wp-content\/uploads\/2018\/12\/instws19_screen2.png\" alt=\"windows server 2019 install\" width=\"1024\" height=\"768\"><\/li><li>For most installation modes, the wizard will prompt you for an activation key. You can select&nbsp;<strong>I don\u2019t have a product key<\/strong>&nbsp;to enter a key later.<br><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.altaro.com\/hyper-v\/wp-content\/uploads\/2018\/12\/instws19_screen4.png\" alt=\"\" width=\"1024\" height=\"768\"><\/li><li>Next you will choose the edition and install mode. The available options, and even whether or not this screen even appears, will vary based on your media. The default option will install server in core mode. \u201cDesktop Experience\u201d include the full Windows Server GUI.<br><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.altaro.com\/hyper-v\/wp-content\/uploads\/2018\/12\/instws19_screen4-1.png\" alt=\"\" width=\"1024\" height=\"768\"><\/li><li>You must accept the license terms to move on.<br><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.altaro.com\/hyper-v\/wp-content\/uploads\/2018\/12\/instws19_screen5.png\" alt=\"\" width=\"1024\" height=\"768\"><\/li><li>Choose the disk to install on. You can use the toolbar underneath the list of disks to control where to install. If you\u2019d like to partition a volume rather than use an entire disk, click the&nbsp;<strong>New<\/strong>&nbsp;button and enter the desired size. Use the&nbsp;<strong>Load Driver<\/strong>&nbsp;button if your disk does not appear and you have driver files from the manufacturer.<br><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.altaro.com\/hyper-v\/wp-content\/uploads\/2018\/12\/instws19_screen7.png\" alt=\"\" width=\"1024\" height=\"768\"><\/li><li>The wizard will transfer and expand the image files for your selected edition and install mode.<br><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.altaro.com\/hyper-v\/wp-content\/uploads\/2018\/12\/instws19_screen8.png\" alt=\"\" width=\"1024\" height=\"768\"><\/li><\/ol>\n\n\n\n<p>This completes the installation portion. Next, you configure your Windows and Hyper-V installation. How you do that depends on the installation mode that you chose. I will show them separately.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Configuring_a_New_Windows_Server_2019_Core_Installation\">Configuring a New Windows Server 2019 Core Installation<\/h2>\n\n\n\n<p>If you chose to install Windows Server in core mode, then you will begin with the standard text-based unlock screen. We begin there.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Enter the&nbsp;<strong>Ctrl<\/strong>+<strong>Alt<\/strong>+<strong>Del<\/strong>&nbsp;key sequence:<br><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.altaro.com\/hyper-v\/wp-content\/uploads\/2018\/12\/instws19_corectrlaltdel.png\" alt=\"New Windows Server 2019 Core Installation\" width=\"1024\" height=\"570\"><\/li><li>Windows will prompt you to change the local administrator password. Press&nbsp;<strong>Enter<\/strong>:<br><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.altaro.com\/hyper-v\/wp-content\/uploads\/2018\/12\/instws19_corechgpassword.png\" alt=\"\" width=\"1024\" height=\"570\"><\/li><li>Enter and confirm your new password. Use&nbsp;<strong>Tab<\/strong>&nbsp;to move between fields. Use&nbsp;<strong>Enter<\/strong>&nbsp;when finished:<br><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.altaro.com\/hyper-v\/wp-content\/uploads\/2018\/12\/instws19_corenewpassword.png\" alt=\"\" width=\"1024\" height=\"570\"><\/li><li>After a brief, perhaps imperceptible delay, you will receive confirmation that your password was changed:<br><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.altaro.com\/hyper-v\/wp-content\/uploads\/2018\/12\/instws19_corepasswordchanged.png\" alt=\"\" width=\"1024\" height=\"570\"><\/li><li>From now on, you will see the standard&nbsp;<strong>Ctrl<\/strong>+<strong>Alt<\/strong>+<strong>Del<\/strong>&nbsp;and password challenges:<br><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.altaro.com\/hyper-v\/wp-content\/uploads\/2018\/12\/instws19_corepwchallenge.png\" alt=\"\" width=\"1024\" height=\"570\"><\/li><li>In the default configuration, Windows will take you to a standard command prompt:<br><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.altaro.com\/hyper-v\/wp-content\/uploads\/2018\/12\/instws19_corecmdprompt.png\" alt=\"\" width=\"1024\" height=\"570\"><\/li><\/ol>\n\n\n\n<p>You have multiple choices on how you proceed from here. I recommend that you do not install Hyper-V until you go through a number of other steps first. To complete the section on Core mode, I will list a few options most helpful in this case. After the graphical startup walk-through, I will give you my recommended checklist. Then I will present Hyper-V installation steps.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Windows Server Core and Hyper-V Server Configuration Options<\/h3>\n\n\n\n<p>Windows Server Core (and Hyper-V Server) looks intimidating to those that have always used Windows\u2019 graphical environment, but I strongly encourage you to stand up to the challenge. Command-line functionality greatly exceeds anything that you can accomplish with a mouse. But, if you\u2019ve never done it before, then you might not even know where to start. You have a plethora of options:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>sconfig.cmd<\/strong>: Microsoft has deprecated this tool and it might eventually disappear from Windows Server releases. However, you still have it in Windows Server 2019. It\u2019s as good a place to start as any. Just type&nbsp;<strong>sconfig<\/strong>&nbsp;and press&nbsp;<strong>Enter<\/strong>. You\u2019ll get the following screen:<br><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.altaro.com\/hyper-v\/wp-content\/uploads\/2018\/12\/instws19_sconfig.png\" alt=\"Windows Server Core Configuration Options\" width=\"993\" height=\"519\"><\/li><li><strong>Corefig<\/strong>: I\u2019ve maintained&nbsp;<a href=\"https:\/\/github.com\/ejsiron\/Corefig\" target=\"_blank\" rel=\"noreferrer noopener\">the Corefig project<\/a>&nbsp;for a few years now, although I have not done much for updating. I am in the process of building up an all-new version 2. For now, version 1.3 works on WS2019 about as well as it worked on 2016.<br><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.altaro.com\/hyper-v\/wp-content\/uploads\/2018\/12\/instws19_corefig.png\" alt=\"\" width=\"665\" height=\"524\"><\/li><li><strong>PowerShell<\/strong>: One tool that can solve all of your problems. You just need to know how to use it. I suggest simply using your favorite Internet search engine to look for \u201cpowershell&nbsp;<em>&lt;whatever task<\/em>&gt;\u201d. You have choices besides interactive mode, though. I like to build up pre-defined scripts for my hosts, such as&nbsp;<a href=\"https:\/\/www.altaro.com\/hyper-v\/free-script-configure-a-hyper-v-host\/\" target=\"_blank\" rel=\"noreferrer noopener\">this one<\/a>.<\/li><\/ul>\n\n\n\n<p>The above list focuses on interactive tools. With more up-front effort, you can deploy and configure systems in minutes. Tools include Windows Deployment Services, System Center Virtual Machine Manager, Desired State Configuration, and others.<\/p>\n\n\n\n<p>The next section shows the initial post-install configuration as above, but for a GUI installation. Skip over that section and continue with the vital configuration checklist.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Configuring_a_New_Windows_Server_2019_GUI_Installation\">Configuring a New Windows Server 2019 GUI Installation<\/h2>\n\n\n\n<p>Note that Hyper-V Server does not have a graphical option, so these instructions will not apply to that product.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.altaro.com\/hyper-v\/wp-content\/uploads\/2018\/12\/instws19_guipwprompt.png\" alt=\"New Windows Server 2019 GUI Installation\" class=\"wp-image-17291\"\/><\/figure><\/div>\n\n\n\n<p>If you chose to install Windows Server in graphical mode, then you will begin with a prompt to change the local administrator\u2019s. Enter and confirm your desired password.<\/p>\n\n\n\n<p>After that, Windows Server will take you to the standard lock screen, which has not changed since 2016:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.altaro.com\/hyper-v\/wp-content\/uploads\/2018\/12\/instws19_guilock.png\" alt=\"\" class=\"wp-image-17292\"\/><\/figure><\/div>\n\n\n\n<p>When you log in, Server Manager will open automatically, as it always has. It will also encourage you to install&nbsp;<a href=\"https:\/\/docs.microsoft.com\/en-us\/windows-server\/manage\/windows-admin-center\/understand\/windows-admin-center\" target=\"_blank\" rel=\"noreferrer noopener\">Windows Admin Center<\/a>.<\/p>\n\n\n\n<p>I assume that most people choose to use the full GUI installation for familiarity reasons. Therefore, I classify the initial configuration of Windows Server GUI mode under \u201ccommon knowledge\u201d and will not give any further information on that. If you are new to Windows Server and don\u2019t know how to do these things, I don\u2019t recommend starting with a Hyper-V installation.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Hyper-V_Pre-Installation_Checklist\">Hyper-V Pre-Installation Checklist<\/h2>\n\n\n\n<p>Perform these steps on your newly-installed Windows Server 2019 deployment prior to installing Hyper-V.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Update device drivers<\/li><li>Install vendor-supplied system management utilities<\/li><li>Configure basic networking \u2014 delay if you will use a fully-converged design<\/li><li>Update Windows Server \u2014 you might need to temporarily configure basic networking to make that possible<\/li><li>Rename the computer<\/li><li>Join to the domain.\u00a0No, your workgroup mode is not as secure, and no, you\u2019re not solving any problems by avoiding domain membership. You can skip this, of course, but I don\u2019t provide any guidance on such builds. I figure that if you intentionally ask for the unsecured micro-management nightmare of a workgroup build, then I would disrespect your wishes if I helped you.<\/li><li>Figure out how you want your Hyper-V networking to look.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Installing_Hyper-V_on_Windows_Server_2019\">Installing Hyper-V on Windows Server 2019<\/h2>\n\n\n\n<p>With the preliminary work out of the way. You can install Hyper-V on Windows Server in three ways: PowerShell,&nbsp;<strong>dism.exe<\/strong>, and Server Manager. I listed those in my preferred order.<\/p>\n\n\n\n<p><strong>Note<\/strong>: Regardless of installation method, your host will reboot twice to enable Hyper-V.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Install Hyper-V with PowerShell<\/h3>\n\n\n\n<p>PowerShell is the fastest and easiest way to install Hyper-V. It works on Core and GUI equally well. Just remember to start PowerShell in an elevated prompt if using a GUI-mode install.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Install-WindowsFeature -Name Hyper-V -IncludeManagementTools -Restart<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Install Hyper-V with DISM<\/h3>\n\n\n\n<p>You have to type a bit more to get DISM to work, but you can run it from the standard elevated command prompt:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">dism \/Online \/Enable-Feature \/FeatureName:Microsoft-Hyper-V \/All<\/pre>\n\n\n\n<p>Once this command completes, it will ask if you want to restart the computer.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Install Hyper-V from Server Manager<\/h3>\n\n\n\n<p>The Server Manager technique is, by far, the longest, most painful, and most confusing. I recommend that you choose either of the other two.<\/p>\n\n\n\n<p>Most people that use Server Manager modify the local system. You can connect to a remote system from Server Manager\u2019s home page. You can then pick it instead of the local system at the correct point.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>On the home page, click\u00a0<strong>Add roles and features<\/strong>:<br><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"729\" src=\"https:\/\/www.altaro.com\/hyper-v\/wp-content\/uploads\/2018\/12\/instws19_addrolelink.png\" alt=\"\"><\/li><li>Click\u00a0<strong>Next<\/strong>\u00a0on the introductory screen.<\/li><li>Choose\u00a0<strong>Role-based or feature-based installation<\/strong>.<br><img loading=\"lazy\" decoding=\"async\" width=\"786\" height=\"560\" src=\"https:\/\/www.altaro.com\/hyper-v\/wp-content\/uploads\/2018\/12\/instws19_guirolebased.png\" alt=\"\"><\/li><li>If you do nothing on the\u00a0<strong>Select destination server<\/strong>\u00a0screen, you will change roles on the local server. If you added a remote server prior to starting the wizard, you can modify roles there. Choose the desired system and click\u00a0<strong>Next<\/strong>.<br><img loading=\"lazy\" decoding=\"async\" width=\"786\" height=\"560\" src=\"https:\/\/www.altaro.com\/hyper-v\/wp-content\/uploads\/2019\/01\/instws19_guidestinationserver.png\" alt=\"\"><\/li><li>Check the\u00a0<strong>Hyper-V<\/strong>\u00a0role.<br><img loading=\"lazy\" decoding=\"async\" width=\"786\" height=\"560\" src=\"https:\/\/www.altaro.com\/hyper-v\/wp-content\/uploads\/2019\/01\/instws19_guihypervrole.png\" alt=\"\"><\/li><li>When prompted, you can add the management tools as well. You do not need to do so. If you prefer, you can\u00a0<strong>Cancel\u00a0<\/strong>here and\u00a0select individual management components on the next screen.<br><img loading=\"lazy\" decoding=\"async\" width=\"416\" height=\"416\" src=\"https:\/\/www.altaro.com\/hyper-v\/wp-content\/uploads\/2019\/01\/instws19_guimgmttools.png\" alt=\"\"><\/li><li>On the\u00a0<strong>Features<\/strong>\u00a0page, you can pick a different selection of management tools, if you wish.<br><img loading=\"lazy\" decoding=\"async\" width=\"786\" height=\"560\" src=\"https:\/\/www.altaro.com\/hyper-v\/wp-content\/uploads\/2019\/01\/instws19_guifeatures.png\" alt=\"\"><\/li><li>You will get an introductory screen specific to Hyper-V. It talks about some of the same things we went over in the the pre-installation checklist above.<br><img loading=\"lazy\" decoding=\"async\" width=\"786\" height=\"560\" src=\"https:\/\/www.altaro.com\/hyper-v\/wp-content\/uploads\/2019\/01\/instws19_guiintro.png\" alt=\"\"><\/li><li>You can now pick a physical Ethernet adapter to host a Hyper-V\u00a0virtual switch.\u00a0<em><strong>I highly recommend that you skip this page unless you want only defaults<\/strong><\/em>. You can set up networking later.<br><img loading=\"lazy\" decoding=\"async\" width=\"786\" height=\"560\" src=\"https:\/\/www.altaro.com\/hyper-v\/wp-content\/uploads\/2019\/01\/instws19_guiswitchsetup.png\" alt=\"\"><\/li><li>You can choose the initial Live Migration security control. The settings shown\u00a0<em>only<\/em>\u00a0apply to Shared Nothing Live Migration, not clustered Live Migrations. I prefer Kerberos because of the security and the ease of initiating migrations. You can always change this option later.<br><img loading=\"lazy\" decoding=\"async\" width=\"786\" height=\"560\" src=\"https:\/\/www.altaro.com\/hyper-v\/wp-content\/uploads\/2019\/01\/instws19_guilmsetting.png\" alt=\"\"><\/li><li>Here, you can change the default storage location for virtual machines and virtual hard disks. As with the other settings, you can change these later.<br><img loading=\"lazy\" decoding=\"async\" width=\"786\" height=\"560\" src=\"https:\/\/www.altaro.com\/hyper-v\/wp-content\/uploads\/2019\/01\/instws19_guidefaultlocations.png\" alt=\"\"><\/li><li>The final screen allows you to review the basic options that you chose and optionally export them. It also allows you to enable an automatic reboot to enable Hyper-V. Click\u00a0<strong>Install<\/strong>\u00a0when ready.<br><img loading=\"lazy\" decoding=\"async\" width=\"786\" height=\"560\" src=\"https:\/\/www.altaro.com\/hyper-v\/wp-content\/uploads\/2019\/01\/instws19_guiconfirm.png\" alt=\"\"><\/li><\/ol>\n\n\n\n<p>Once all the reboots have completed, you\u2019re ready to start creating and running virtual machines.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Hyper-V_Post-Installation_Checklist\">Hyper-V Post-Installation Checklist<\/h2>\n\n\n\n<p>Hyper-V in Windows Server 2019 continues the established tradition of needing very little post-install configuration. I\u2019ve listed the options that typically draw the most interest:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Networking \u00a0<ul><li>Create any desired teams<\/li><li>Create one virtual switch<\/li><li>As an alternative to the above two steps, create a switch-embedded team<\/li><\/ul><\/li><li>Host configuration options \u2014 use\u00a0Set-VMHost\u00a0or Hyper-V Manager<ul><li>Default virtual machine configuration storage location<\/li><li>Default virtual machine virtual disk storage location<\/li><li>Live Migration security settings (for non-cluster migrations only)<\/li><li>Live Migration performance settings<\/li><\/ul><\/li><\/ul>\n\n\n\n<p>I recommend that you take a look through the activities available to you. Most cannot be set in the GUI. Start your discovery in PowerShell:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Get-Command -Module Hyper-V<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The Windows Server 2019 Install Procedure The following steps walk through Windows Server 2019 Installation from media. Aside from the text fields and the license prompt in step 3, installing Hyper-V Server does not change the screens or process. You begin on the language, locale, and input choice screen: The second screen has the lone&nbsp;Install [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[51,53,74],"tags":[],"class_list":["post-3163","post","type-post","status-publish","format-standard","hentry","category-server-virtualization-hyper-v-2","category-virtualization-virtual","category-windows-server-2019"],"_links":{"self":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/3163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3163"}],"version-history":[{"count":4,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/3163\/revisions"}],"predecessor-version":[{"id":3167,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/3163\/revisions\/3167"}],"wp:attachment":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}