{"id":188,"date":"2021-08-29T09:16:45","date_gmt":"2021-08-29T13:16:45","guid":{"rendered":"https:\/\/notebook.chaopricha.com\/?p=188"},"modified":"2021-08-30T21:10:40","modified_gmt":"2021-08-31T01:10:40","slug":"installing-rocky-linux-on-windows-10-pro-hyper-v","status":"publish","type":"post","link":"https:\/\/notebook.chaopricha.com\/?p=188","title":{"rendered":"Installing Rocky Linux on Windows 10 (Pro) Hyper-V"},"content":{"rendered":"\n<p>Hyper-V is a virtual machine module from Microsoft similar to Sun\/Oracle VirtualBox or VMWare ESX.  Hyper-V is a Type 1 Hypervisor that runs directly on the host machine&#8217;s hardware rather.  This is different from Type 2 Hypervisor which the virtual machine&#8217;s commands are managed through the host running the virtual machine.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why use Hyper-V?<\/h2>\n\n\n\n<p>If you are already running Windows 10 Pro or Windows Server, Hyper-V is free to use and it&#8217;s very easy to install.  For the setup to run Rocky Linux 8.4 in this article, I&#8217;m using Hyper-V on Windows 10 Pro since I don&#8217;t have access to a Windows Server machine.   Windows 10 Home doesn&#8217;t allow Hyper-V, unfortunately.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Download Rocky Linux (8.4)<\/h2>\n\n\n\n<p>At the time of this writing, Rocky Linux 8.4 is the latest stable release.  Rocky Linux is likely going to be the chosen replacement for Centos OS 8 as the upgrade path now that Red Hat has officially killed the Centos project.  Red Hat doesn&#8217;t want Centos to compete with RHEL anymore so it moved to CentOS Stream.  CentOS Stream is a continuously updating distribution which is a problematic upgrade because there&#8217;s no more stable release.  Although CentOS Stream continuously updates, it&#8217;s staying within the confine of the RHEL major version release.<\/p>\n\n\n\n<p>Unfortunately, CentOS Stream is being treated as a development branch of RHEL which means that it&#8217;ll see all the bugs first before RHEL.  Most users use CentOS because it&#8217;s tracking AFTER a stable release of RHEL.<\/p>\n\n\n\n<p>Back to Rocky Linux, it&#8217;s emerging as the main replacement for CentOS.  It&#8217;s started by CentOS co-founder and a the hardcore veteran Gregory Kurtzer.  He and thousands of developers took the lessons learned from CentOS and its demise to create Rocky Linux.  Hopefully, we won&#8217;t suffer the same fate that Red Hat dealt with CentOS because it had a conflict of interest.  Mainly money-grabbing, but who knows?<\/p>\n\n\n\n<p>Head over to Rocky Download page:  <a href=\"https:\/\/rockylinux.org\/download\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/rockylinux.org\/download\/<\/a><\/p>\n\n\n\n<p>Select the x86_64 DVD distribution to get the iso we need to run on Hyper-V.  The minimal package runs into problems when trying to install in a virtual machine.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-3.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"592\" src=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-3-1024x592.png\" alt=\"\" class=\"wp-image-194\" srcset=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-3-1024x592.png 1024w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-3-300x174.png 300w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-3-768x444.png 768w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-3-500x289.png 500w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-3.png 1298w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Installation<\/strong><\/h2>\n\n\n\n<p>First you must enable Hyper-V in Windows 10. There are a couple of ways to do it, but using Windows Shell is pretty straightforward.  Launch Windows Shell as an Administrator.<\/p>\n\n\n\n<p class=\"has-white-color has-text-color has-background\" style=\"background-color:#0608ab\"><code>Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All<\/code><\/p>\n\n\n\n<p><br>A restart will be required to get Hyper-V working.  Select Y to restart your computer after Hyper-V is enabled.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><a href=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"779\" height=\"350\" src=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-1.png\" alt=\"\" class=\"wp-image-192\" srcset=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-1.png 779w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-1-300x135.png 300w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-1-768x345.png 768w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-1-500x225.png 500w\" sizes=\"(max-width: 779px) 100vw, 779px\" \/><\/a><\/figure>\n\n\n\n<p>After Windows restarted, type in the search bar &#8220;Hyper-V&#8221; and select &#8220;Hype-V Quick Create&#8221;.  This will launch a Create Virtual Machine module.<\/p>\n\n\n\n<p>Uncheck the &#8220;This virtual machine will run Windows (enables Windows Secure Boot)&#8221;.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><a href=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-4.png\"><img loading=\"lazy\" decoding=\"async\" width=\"822\" height=\"487\" src=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-4.png\" alt=\"\" class=\"wp-image-195\" srcset=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-4.png 822w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-4-300x178.png 300w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-4-768x455.png 768w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-4-500x296.png 500w\" sizes=\"(max-width: 822px) 100vw, 822px\" \/><\/a><\/figure>\n\n\n\n<p>Click on the &#8220;Change Installation source&#8221; and select the Rocky Linux iso we downloaded earlier.  Click &#8220;Create Virtual Machine&#8221; after the iso file is chosen.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><a href=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-5.png\"><img loading=\"lazy\" decoding=\"async\" width=\"822\" height=\"487\" src=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-5.png\" alt=\"\" class=\"wp-image-196\" srcset=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-5.png 822w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-5-300x178.png 300w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-5-768x455.png 768w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-5-500x296.png 500w\" sizes=\"(max-width: 822px) 100vw, 822px\" \/><\/a><\/figure>\n\n\n\n<p>Depending on your computer&#8217;s specs, the installation could be very fast.  On my system, it only took a few seconds for the new virtual machine to be created.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><a href=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-6.png\"><img loading=\"lazy\" decoding=\"async\" width=\"822\" height=\"481\" src=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-6.png\" alt=\"\" class=\"wp-image-197\" srcset=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-6.png 822w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-6-300x176.png 300w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-6-768x449.png 768w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-6-500x293.png 500w\" sizes=\"(max-width: 822px) 100vw, 822px\" \/><\/a><\/figure>\n\n\n\n<p>Click &#8220;Edit settings &#8230;&#8221; to edit our new VM. <strong><span class=\"has-inline-color has-luminous-vivid-orange-color\">It&#8217;s very important to make sure that the allocated RAM is at least 4 Gigabytes<\/span><\/strong> or you&#8217;ll have problems running Rocky Linux on the VM. By default, the new VM is only created with 2GB or RAM allocated.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><a href=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-8.png\"><img loading=\"lazy\" decoding=\"async\" width=\"722\" height=\"682\" src=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-8.png\" alt=\"\" class=\"wp-image-200\" srcset=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-8.png 722w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-8-300x283.png 300w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-8-318x300.png 318w\" sizes=\"(max-width: 722px) 100vw, 722px\" \/><\/a><\/figure>\n\n\n\n<p>You can also locate the virtual machine media in a different location.  By default, it&#8217;s putting the image in your user profile which is not an ideal location.  Click on the Hard Drive option on the menu bar on the left.  Click &#8220;New&#8221; under the virtual hard disk option and then follow the steps to create your new virtual hard drive media location.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><a href=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-9.png\"><img loading=\"lazy\" decoding=\"async\" width=\"722\" height=\"682\" src=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-9.png\" alt=\"\" class=\"wp-image-201\" srcset=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-9.png 722w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-9-300x283.png 300w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-9-318x300.png 318w\" sizes=\"(max-width: 722px) 100vw, 722px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Connect To VM<\/h2>\n\n\n\n<p>Now that everything is ready to go, click on the &#8220;Connect&#8221; button to connect to our VM.  Click the &#8220;Start&#8221; button on the screen to launch the VM.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><a href=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-10.png\"><img loading=\"lazy\" decoding=\"async\" width=\"642\" height=\"504\" src=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-10.png\" alt=\"\" class=\"wp-image-202\" srcset=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-10.png 642w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-10-300x236.png 300w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-10-382x300.png 382w\" sizes=\"(max-width: 642px) 100vw, 642px\" \/><\/a><\/figure>\n\n\n\n<p>After a few seconds, the Rocky Linux 8 install option should show up.  Make sure you either disable the firewall or letting the Hyper-V VM go through the firewall to get it running. Select &#8220;Install Rocky Linux 8&#8221; option and hit Enter to start.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-11.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"870\" src=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-11-1024x870.png\" alt=\"\" class=\"wp-image-203\" srcset=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-11-1024x870.png 1024w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-11-300x255.png 300w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-11-768x653.png 768w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-11-353x300.png 353w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-11.png 1026w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>If it runs correctly, you should be presented with the Rocky Linux 8 Installation.  Go through the setup steps<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-12.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"870\" src=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-12-1024x870.png\" alt=\"\" class=\"wp-image-204\" srcset=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-12-1024x870.png 1024w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-12-300x255.png 300w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-12-768x653.png 768w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-12-353x300.png 353w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-12.png 1026w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>I won&#8217;t cover all the installation details here since everyone has his\/her own preferences for the server.  Let the installation run and you&#8217;ll have a Rocky Linux 8.4 Server on Hyper-V in no time.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-13.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"870\" src=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-13-1024x870.png\" alt=\"\" class=\"wp-image-205\" srcset=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-13-1024x870.png 1024w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-13-300x255.png 300w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-13-768x653.png 768w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-13-353x300.png 353w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-13.png 1026w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>I had to shutdown the VM when the automatic reboot seems to be stuck.  After shutting down and re-starting the VM again, it lets me complete the configuration of the server and then accept the license.<\/p>\n\n\n\n<p>All done!  Enjoy!<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-14.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"870\" src=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-14-1024x870.png\" alt=\"\" class=\"wp-image-207\" srcset=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-14-1024x870.png 1024w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-14-300x255.png 300w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-14-768x653.png 768w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-14-353x300.png 353w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-14.png 1026w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>One issue that you may encounter while running the new server is no internet connection.  The issue is that the &#8220;Default Switch&#8221; might not be configured for the external internet connection.  When you first created the VM, if you chose the switch to be &#8220;Default Switch&#8221;, it&#8217;d likely have an Internal network connection.<\/p>\n\n\n\n<p>First, suspend and shut down your VM so you can make modifications to the settings.  You can add a new switch by opening up Hyper-V Manager.  Click on the &#8220;Virtual Switch Manager &#8230;&#8221; from the Actions menu on the right.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-15.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"483\" src=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-15-1024x483.png\" alt=\"\" class=\"wp-image-212\" srcset=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-15-1024x483.png 1024w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-15-300x141.png 300w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-15-768x362.png 768w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-15-500x236.png 500w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-15.png 1530w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>Select &#8220;New virtual network switch&#8221; option and make sure you choose &#8220;External&#8221; as the type then click &#8220;Create Virtual Switch&#8221; button.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><a href=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-17.png\"><img loading=\"lazy\" decoding=\"async\" width=\"722\" height=\"687\" src=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-17.png\" alt=\"\" class=\"wp-image-214\" srcset=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-17.png 722w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-17-300x285.png 300w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-17-315x300.png 315w\" sizes=\"(max-width: 722px) 100vw, 722px\" \/><\/a><\/figure>\n\n\n\n<p>I named the switch &#8220;INTERNET&#8221; to quickly differentiate it from the default switch.  Make sure that you check the box for &#8220;Allow management operating system to share this network adapter&#8221;.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><a href=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-19.png\"><img loading=\"lazy\" decoding=\"async\" width=\"722\" height=\"687\" src=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-19.png\" alt=\"\" class=\"wp-image-216\" srcset=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-19.png 722w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-19-300x285.png 300w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-19-315x300.png 315w\" sizes=\"(max-width: 722px) 100vw, 722px\" \/><\/a><\/figure>\n\n\n\n<p>Click OK to accept the changes. Select &#8220;Settings &#8230;&#8221; for your vm from the Hyper-V Manager.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-20.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"483\" src=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-20-1024x483.png\" alt=\"\" class=\"wp-image-217\" srcset=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-20-1024x483.png 1024w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-20-300x141.png 300w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-20-768x362.png 768w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-20-500x236.png 500w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-20.png 1530w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>Choose the Network Adapter option from the left menu and change the Virtual Switch option to the newly created &#8220;INTERNET&#8221; switch.  Click OK on Apply to accept the change.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><a href=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-21.png\"><img loading=\"lazy\" decoding=\"async\" width=\"722\" height=\"687\" src=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-21.png\" alt=\"\" class=\"wp-image-218\" srcset=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-21.png 722w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-21-300x285.png 300w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-21-315x300.png 315w\" sizes=\"(max-width: 722px) 100vw, 722px\" \/><\/a><\/figure>\n\n\n\n<p>Now you can start your vm again and check whether you now have an internet connection in your Hyper-V.  Also make sure that your connection is enabled.  Click &#8220;Connect&#8221; if your connection was off.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-24.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"870\" src=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-24-1024x870.png\" alt=\"\" class=\"wp-image-221\" srcset=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-24-1024x870.png 1024w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-24-300x255.png 300w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-24-768x653.png 768w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-24-353x300.png 353w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-24.png 1026w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption><br>If everything goes well, you should now be able to connect to the internet in your VM.<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-23.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"870\" src=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-23-1024x870.png\" alt=\"\" class=\"wp-image-220\" srcset=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-23-1024x870.png 1024w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-23-300x255.png 300w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-23-768x653.png 768w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-23-353x300.png 353w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-23.png 1026w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>One thing I noticed on my 4k resolution monitor is that the Hyper-V window containing Rocky Linux is running is a much lower resolution than I want.  Since this is GNOME by default, we can increase the resolution using the following command:<\/p>\n\n\n\n<p class=\"has-white-color has-text-color has-background\" style=\"background-color:#0608ab\">grubby &#8211;update-kernel=ALL &#8211;args=&#8221;video=hyperv_fb:<strong>1<\/strong>920&#215;1080&#8243;<\/p>\n\n\n\n<p>You then need to reboot for this new resolution to take effect.<\/p>\n\n\n\n<p class=\"has-white-color has-text-color has-background\" style=\"background-color:#0608ab\">reboot<\/p>\n\n\n\n<p>This is much better in my opinion.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-33.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"631\" src=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-33-1024x631.png\" alt=\"\" class=\"wp-image-239\" srcset=\"https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-33-1024x631.png 1024w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-33-300x185.png 300w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-33-768x473.png 768w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-33-1536x946.png 1536w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-33-487x300.png 487w, https:\/\/notebook.chaopricha.com\/wp-content\/uploads\/2021\/08\/image-33.png 1922w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hyper-V is a virtual machine module from Microsoft similar to Sun\/Oracle VirtualBox or VMWare ESX. Hyper-V is a Type 1 Hypervisor that runs directly on the host machine&#8217;s hardware rather. This is different from Type 2 Hypervisor which the virtual &hellip; <a href=\"https:\/\/notebook.chaopricha.com\/?p=188\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/notebook.chaopricha.com\/index.php?rest_route=\/wp\/v2\/posts\/188"}],"collection":[{"href":"https:\/\/notebook.chaopricha.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/notebook.chaopricha.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/notebook.chaopricha.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/notebook.chaopricha.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=188"}],"version-history":[{"count":7,"href":"https:\/\/notebook.chaopricha.com\/index.php?rest_route=\/wp\/v2\/posts\/188\/revisions"}],"predecessor-version":[{"id":240,"href":"https:\/\/notebook.chaopricha.com\/index.php?rest_route=\/wp\/v2\/posts\/188\/revisions\/240"}],"wp:attachment":[{"href":"https:\/\/notebook.chaopricha.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=188"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notebook.chaopricha.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=188"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notebook.chaopricha.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}