![]() ![]() Select the Enhanced Session Mode Policy in the navigation pane, and then select the Allow enhanced session mode checkbox. Open Hyper-V Manager, right-click the name of your host Windows machine on which Hyper-V is installed, and, in the context menu, click Hyper-V Settings. Otherwise, the enhanced session mode icon will be inactive in the VM window. You have to allow the enhanced session mode in general Hyper-V settings. Reboot your Ubuntu virtual machine when execution of the script is finished.Ĭonfiguration on the Host Windows Machine Running Hyper-V When execution of the script is finished, you are prompted to reboot Ubuntu 20.04 and run the script again after reboot.Īfter reboot, open the terminal, go to the directory where the script is located, and run the script once again: Open the console (terminal) in Ubuntu 20.04.ĭownload the updated script for Ubuntu 20.04:Īdd execution permissions to the downloaded install.sh script file: You have to download and run the script to configure Ubuntu 20.04 installed on a Hyper-V VM as a guest OS to make the enhanced session mode work. There are important things to do after installing Ubuntu 20.0. Post Installation Configuration in Ubuntu Ubuntu Hyper-V integration services are part of the Linux distribution, and you don’t need to install the downloaded package provided by Microsoft manually. Using the enhanced session mode for the Ubuntu VM in Hyper-V is not available if the Log in automatically option is selected. ![]() The important option that you should select is require the password to log in on the “Who are you?” step of the installation. In this example, I select Normal installation with the option to Download updates while installing Ubuntu 20.04. I’ll focus on two installations steps only. The installation process of Ubuntu Linux is explained in details in the blog post about installing Linux on Hyper-V. Power on the VM, the Ubuntu 20.04 installer should boot from the attached ISO installation image. Once the new virtual machine has been created, you should install Ubuntu 20.04 as a guest operating system on this VM. Click OK to save settings and close this window. You can check and edit other VM settings if needed. Secure boot is not needed for this virtual machine. In the navigation pane, select Security in the Hardware section, and deselect the Enable Secure Boot checkbox. ![]() Right-click the Ubuntu Hyper-V VM in Hyper-V Manager and, in the context menu, hit Settings. Open the settings of the Ubuntu Hyper-V virtual machine that you have already created. Check configuration summary, and click Finish to finish the new VM creation. You can download the installation image from the official Ubuntu website. The Ubuntu version I’m going to install is 20.04.2. Click Browse and select the location of the Ubuntu 20.04 ISO installation image. Select Install an operating system from a bootable image file. I select 15 GB for my Ubuntu 20.04 VM used for testing purposes. In my case, the selected directory is E:\VMs\Ubuntu Hyper-V\Virtual Hard Disks\. You should select the location in your directory used to store Hyper-V VMs. Define the location of the virtual disk file. Enter the virtual disk name, for example, Ubuntu Hyper-V.vhdx. If you have not created any virtual switches, you can do it later and edit the VM configuration.Ĭonnect Virtual Hard Disk. Select a virtual switch to which the virtual network adapter of the VM will be connected. If you run other VMs simultaneously with this Linux VM, remember that other VMs also need memory.Ĭonfigure Networking. Don’t assign all the memory of your computer to the VM leave memory for the host operating system. The more memory you assign to the VM, the more convenient the work. Select the checkbox to Use Dynamic Memory for this virtual machine. I select 4096 MB, which is enough to run Ubuntu without performing heavy tasks. ![]() Specify the amount of memory available to the VM. Read more about Hyper-V Generation 1 and Generation 2 VMs.Īssign Memory. It is better to select Generation 2 because more features are available and limits are higher. Hit Next at each step of the wizard to continue. Select the Store the virtual machine in a different location checkbox, and select the folder where you want to store VM files, for example, E:\VMs\. Enter a virtual machine name, for example, Ubuntu Hyper-V. In order to create a new VM in Hyper-V, open Hyper-V Manager, right-click your host machine name and, in the context menu, click New > Virtual Machine. If you don’t have Hyper-V installed on your Windows host, read how to install Hyper-V on Windows 10 and Windows Server 2019. You have to enable Hyper-V before you can run the Ubuntu VM. The hostname of my Windows 10 host machine is home-pc. In this blog post, I’m using Windows 10 Pro version 20H2 with Hyper-V installed. Let’s look at how to create and configure an Ubuntu 20.04 VM from scratch in Hyper-V. DISCOVER SOLUTION Creating and Configuring a VM ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |