

For this example, download the official Ubuntu 22.04 from the website. You can install other Ubuntu versions and Linux distros. Besides, you are not limited to installing Ubuntu 22.04. We are using Windows 10, but the same steps should work for Windows 11. Check it out! Installing Ubuntu 22.04 on Windows Using Hyper-V It offers a step-by-step tutorial for all your needs. That said, if you wonder how to install Ubuntu 22.04 on Windows 10 or 11, this guide has your back. On the contrary, enabling the Hyper-V limits you from using the different tools like Virtual Box unless you disable it. The best part about using Hyper-V is that you won’t need to install other tools, such as Virtual Box, to run the virtual machines. On Hyper-V host check current status: Get-VMIntegrationService -VMName 'ubuntu'Įnable-VMIntegrationService -VMname 'ubuntu' -Name 'guest service interface'Ĭopying file from Hyper-V host to Ubuntu VM: echo 'This file is about to be copied to ubuntu server'>c:\file.txtĬopy-VMFile -name 'ubuntu' -SourcePath 'C:\file.If you are running a Windows 10 or 11 operating system, you can easily install Ubuntu 22.04 using the Hyper-V feature, which allows the running of virtual machines on Windows.

If we want to copy files to VM we need to enable Guest Service interface (disabled by default) apt-get install -install-recommends linux-tools-virtual-lts-xenial linux-cloud-tools-virtual-lts-xenial linux-virtual-lts-xenial (Think of it as equivalent of VMWare tools).These services enables,for example,guest file copy, while others are important to the virtual machine’s ability to function correctly, such as time synchronization. Hyper-V Integration Services allow a virtual machine to communicate with the Hyper-V host. I don’t know for you,but it’s very uncomfortable to work from Hyper-V console,that’s why i prefer SSH access apt-get install openssh-server -yĪllow ssh traffic to your Ubuntu server (192.168.0.48) ufw allow proto tcp from 192.168.0.0 to 192.168.0.48 port 22ĭownload and install Putty.You should be able now to make connection to Ubuntu Server via port 22

Set-VMDvdDrive -VMName 'ubuntu' -Path 'C:\Users\dragan\Downloads\ubuntu-16.04.1-server-amd64.iso' Set-vm -VMName 'ubuntu' -ProcessorCount 2 In this article we’ll install Ubuntu Server 16.04.01 as Hyper-V VM with 2 CPU’s,1 GB of RAM and 20 GB HDD (Note machine is Generation 1,with Gen 2 it didn’t work for me) new-vm -Name 'ubuntu' -MemoryStartupBytes 512MB -NewVHDPath 'c:\ubuntu\ubuntu.vhd' -SwitchName 'new virtual switch' -NewVHDSizeBytes 20GB -Generation 1 -MaximumBytes 2GB
