Skip to Content

Windows 11 on KVM – How to Install Step by Step?

Windows 11 on KVM – How to Install Step by Step?

Windows 11 is one of the cleanest and most polished versions of Windows out there. I have been using it as my main operating system, and it works great.

However, I also have an Ubuntu host, and at times I want to switch between Linux and Windows. Although we could do a dual boot and have Windows and Linux work on the same machine, you cannot really use both simultaneously.

So, the best option is to virtualize either Linux or Windows. I decided to proceed with virtualizing Windows 11 on Ubuntu.

There is a Linux version of a virtualization program called KVM (Kernel-based Virtual Machine), and the best part about Linux virtualization is that it is free and open source too, with the backing of Red Hat.

In this blog, we will look at installing Windows 11 on the Linux KVM hypervisor, step by step.

However, there is a problem! (Don’t worry, we have the solution for it 😊) When Microsoft released Windows 11, they tightened security by adding TPM and Secure Boot as minimum requirements to install Windows 11 on any machine.

We can understand this in the case of a physical machine, but what about a virtual machine?

If you don’t meet the minimum requirements, especially TPM and Secure Boot, you will get an error saying your PC can’t run Windows 11.

So, you are left with two options: either install Windows 11 as per Microsoft’s recommendations or bypass it altogether.

We will look at both options here.

I have also covered how you can install windows 11 on a VMware workstation with TPM enabled here.

In case if you are running Windows machine and wanted to run Windows 11 on hyper-v, I covered the article here.

Steps to install Windows 11 on KVM.


  • Windows 11 virtio drivers – click here to download.
  • Follow the steps below to install the KVM on your Linux machine.

I am using Ubuntu; however, the steps mentioned here are identical for other Linux distributions as well.


sudo apt install qemu-kvm bridge-utils virt-manager libosinfo-bin -y


yum install qemu-kvm libvirt virt-install virt-manager virt-install -y


sudo dnf -y install bridge-utils libvirt virt-install qemu-kvm

Kali Linux.

sudo apt install qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils

Linux mint.

sudo apt install qemu-kvm bridge-utils virt-manager libosinfo-bin -y

Here is the video with the same step by step instructions, for those who are interested.

1. Configure TPM and Secure-Boot.

To emulate the TPM we are going to install a software called swtpm-tools. Follow the guide here to install the TPM on your KVM host.

In the same guide, we covered the command to install the secure boot as well in case if it is not installed.

Once you have them configured come back here for the creation of windows 11 VM in KVM. We will enable the TPM and the secure boot during the installation.

What if I want to bypass the TPM and Secureboot ?

I recomend using the TPM and secureboot, however by any chance if you prefer to by pass those, you can bypass the TPM and secureboot by following the guide here, post which you can skip the instruction on TPM and secureboot during the windows 11 installation in KVM.

2. Create the Windows 11 VM in the KVM.

Open terminal in your Linux host (CTRL + ALT + T) and on the command line type virt-manager, this will open up the virtualization manager GUI on your machine.

On the GUI type, click on the icon on the top left that says create a new virtual machine. This will open up the KVM virtual machine creation wizard.

windows 11 VM creation in KVM.

Choose the Windows 11 image for the installation.

We will install windows 11 with an ISO image, so choose the option that says Local install media and click on forward.

choose windows 11 iso in KVM

Attach the windows 11 iso.

Click on Browse to attach the windows 11 iso file.

The KVM will automatically detect the operating system like Windows 10, at the time of this writing the windows11 is not in the KVM supported operating systems.

So you won’t be able to find the windows11 by manually choosing the option either.

Windows 10 should work fine, so click on forward.

choose windows 11 iso in KVM for windows 11 installation.

Configure the Memory and CPU for windows 11.

By default, Qemu KVM will choose the Memory as 4GB and 2 CPUs, which is more than enough for daily operations.

If you wanted to make changes here, you may increase it as per your requirement. We will be further changing the CPU configuration later on, Click on Forward.

configure the memory and CPU for windows 11 in kvm.

Create windows 11 virtual hard disk.

You can leave the default virtual hard disk storage as 40GB, but for my requirement, I would require 60GB, so choose the storage based on your requirement.

40GB will be more than enough for most of the installations. If you would like to extend the storage later on in the KVM, you can follow the article here to extend it.

After defining the storage, Click on Forward.

create windows 11 virtual hard disk in kvm.

Specify the VM properties.

  • Define the Name.

Here you need to specify the VM name because the VM was picked up as windows 10 initially, the name also shows win10, and I am going to change it to Windows 11.

  • Choose the Customize configuration before install.
  • Choose the network.

Here I choose the default NAT interface, so the virtual machine can go out to the internet, which is the safe and best option.

If you want this VM to be part of the same network as your host machine, you could choose the bridge interface known as the host device. But I am not going to do that here.

After the changes, click on Finish, a VM customization window will now pop up.

windows 11 customize configuration before install in KVM.

3. Configure the virtual hardware for windows 11 in KVM.

For the windows11 VM to work perfectly on the KVM, we need to make some changes on the virtual hardware, lets’s go ahead and do that now.

Choose the Virtual hard disk as qemu VirtIO.

We need to tell the KVM to use virtio as the hard disk bus type in the customization window.

  • Click on SATA Disk 1.
  • Under details click on Advanced options.
  • Choose the disk bus as VirtIO, and leave the hard disk type as qcow2.

If you want to get good performance, you can make the storage format raw, but that will have limitations on taking snapshots, expanding the storage, and so on. So I am okay with qcow2, in case if you would like to have a good performance, you may change it to raw.

After the selection click on Apply.

choose windows 11 sata disk type as virtio.

Configure the graphics.

We have to add a VNC viewer as the graphics, click on add hardware option on the bottom,

In the Add new virtual hardware window, click on Graphics, and choose Graphics type as VNC Server, and click on Finish.

choose windows 11 graphics as VNC server.

Change the network interface as Qemu KVM compatible.

Click on the Network interface, in the device model you can see the interface as e1000e, change the interface to virtio.

Click on Apply.

Choose network interface as virtio.

4. Add the windows 11 virtio driver.

Remember we have downloaded virtio driver, you need to attach that ISO as CD driver here, so that the windows 11 operating system can choose the KVM virtio virtual drivers during the installation.

  • Click on Add hardware.
  • Select storage, click on Manage to attach the virtio driver that you have downloaded.
  • Choose the Device type as CDROM Device.
  • Click on Finish.
attach windows 11 virtio driver in kvm.

5. Change the boot order.

At this point, you will have two virtual CD-ROMs attached to the VM, the first one has the windows 11 iso, and the second one has virtio drivers.

You need to make sure the CDROM1 gets selected during the boot. Click on Boot options. Under boot device order, check the SATA CDROM1 and click on the up arrow on the right to move it up.

You now will have CDROM1 as the primary and virtual hard drive, and then CDROM2. After the selection, click on Apply

change windows 11 kvm boot order.

6. Configure the CPU for windows 11.

I have enough CPU cores on my machine, and I will give 4 CPUs for the windows 11 guest machine.

Click on CPU, Choose the current allocations to 4.

  • Under topology, Select manually set CPU topology.
  • Select socket as 1.
  • Core as 2.
  • Thread as 2.

Note: If you would like to change the CPU to just two, you may change the allocation to 2, and the core as 1, and the thread as 1. If the CPU doesn’t support threading, you can choose the core as 2 and click on Apply.

configure windows 11 cpu in KVM.

7. Enable the TPM.

For the windows11 installation to complete successfully, you will need to have TPM and secureboot enabled, in case you want to bypass the TPM and secure boot, you may follow the step-by-step guide on how you can do that, then you can skip this option.

In the installation wizard, click on Add hardware.

Add the TPM as below.

  • Model – You will see two models, choose TIS,
  • Backend – select Backend as Emulated.
  • Version – 2.0

Click on Finish.

You will see TPM v2.0 under the VM hardware list now.

8. Enable Secure-Boot.

The secure boot/UEFI is available by default when you have installed the KVM program on your machine. If it is not available by any chance, you may enter the command below to install it.

sudo apt install ovmf

To enable Secure boot or UEFI boot, click on the Overview option during the VM installation and change the following settings.

  • Chipset – i440FX
  • Firmware – UEFI x86_64:/usr/share/OVMF/OVMF_CODE.fd


If you are on latest version of secureboot, you will see UEFI x86_64:/usr/share/OVMF/OVMF_CODE.4m.secboot.fd , either versions should work

9. Begin the Windows 11 installation in KVM.

You may now click on Begin installation in the top left corner

Begin windows 11 installation in KVM.

The windows 11 installation will begin, choose the language and keyboard layout of your choice and click on Next and choose to Install now.

windows 11 installation in kvm.

Since I don’t have the product key, check the option that says, I don’t have a product key.

choose the product key during windows 11 installation in kvm.

Choose the version of your choice.

I am choosing Windows 11 pro, and click on next.

windows 11 version in kvm.

Accept the license agreement and click on Next.

accept windows 11 license agreement.

Choose the type of installation as custom.

You won’t be able to find the hard disk that you have added,

Click on Load driver. In the prompt, click on OK.

configure the virtual hard disk for windows 11.

Because we have attached the virtio IO driver iso file while customizing the VM, you will see the list virto drivers listed for each windows operating system. We have to choose windows 11 driver here, and click on Next

select qemu windows 11 driver.

You should now see your virtual hard disk listed in the windows 11 setup wizard.

Choose the hard disk, and click on Next.

choose windows 11 virtual hard disk for installation in kvm.

The installation will now begin, and this process will take time depends on your hardware.

windows 11 installation progress in kvm.

10. Complete the initial setup wizard.

After the installation, you will be presented with the initial setup wizard.

Choose the country of your choice and click on Next.

windows 11 initial setup wizard in kvm.

On the screen where it says, let’s connect to the network, choose I don’t have a network.

I dont have internet Option is grayed out?

For some newer iso installations, you may notice that even after selecting windows 11 pro during the installation, you will be stuck at a screen, where it is asking you to connect to the internet.

Though microsoft want you to connect to the internet, it cannot really connect to the internet, because, the KVM windows 11 VM doesn’t have network access yet to connect to the internet.

Which we will fix eventually by installing the drivers, however we need to bypass this step for now.

For that press shift + f10, (you might need to press the function key for this to work)

In the command prompt enter the following command and hit enter.


It will restart the system automatically to the previous initial setup wizard screen.

After the initial selection, you will be presented with the same screen, but this time with an option that says I dont have internet.

Even if you try to connect to the network, it won’t let you connect because you don’t have windows 11 qemu drivers installed yet, which we will do later.

disconnect windows 11 from network prior to the installation in kvm.

On the next screen, choose to continue with a Limited setup.

windows 11 continue with limited setup in kvm.

You will have to create a local account to begin with, enter the username and password, and you also need to setup 3 security questions as well.

After that privacy settings, accept the privacy setting based on your requirement.

Wait for a couple of minutes and you will boot into the windows successfully.

windows 11 desktop in kvm.

11. Install QEMU virtio drivers for windows 11.

Click on the search button and search for Device Manager, just open it.

open device manager to install windows 11 driver in kvm.

Here you will see the list of drivers that you have on your machine. If you notice under ‘other drivers‘, you should see some drivers are not installed.

  • Right-click on the Ethernet adapter and click on update driver.
  • In the update windows driver wizard click on Browse my computer for drivers.
browse my computer for drivers in kvm.

Click on browse and choose the virtio iso file that we have attached earlier as CDROM.

And click on Next.

choose virtio drivers for windows 11 kvm driver installation.

You should see the ethernet adapter driver installed successfully.

windows 11 network adapter driver installed successfully.

You can also notice that your computer is now connected to the internet.

Follow the same steps for all other drives, except ‘unknown device’, which you cannot install with the virtio driver and it is okay to leave it as it is.

12. Update the Display adapter.

After completing the installation of other devices, you may now go ahead and install the Display adapters.

If you look under Display adapter, you should see Microsoft Basic Display Adapter by default installed, right-click on the driver and click on update driver.

update windows 11 kvm display driver.

Follow the same steps that you followed for other device drivers and you should see the display driver got updated with Redhat QXL Controller.

update to Red har qxl driver in windows 11 display drivers.

13. Remove the CDROM from the KVM.

After the driver installation, let’s go ahead and remove both the windows 11 iso and virtio driver from the cd rom.

  • Select the CDROM1, click on the x icon to remove the file, and click on Apply.
  • Follow the same steps for the CDROM2 as well.
Remove windows 11 and virtio iso file from the KVM.

How to enable the audio for windows11 in kvm?

Follow the guide here to enable the sound on the windows machine.

That’s it, you have successfully installed the windows 11 operating system on a KVM environment.

How to start using windows 11 in KVM ?

You can start using the windows 11 virtual machine using either virt-viewer or Remote Desktop.
Here are the step by step instructions on how you can do that.


The windows11 works perfectly fine in KVM with virtio drivers, and I have been using it for quite some time now, haven’t really had any issues with it.

Rudi Salm

Saturday 23rd of March 2024

Hello Saifudheen,

thanks a mil for this great article!

Works well so far - addapted it for Fedora 39.

But this is wrong:

Its not oobe\bypassnro - its oobe\bypassNRO

Would be helpfull to change this.



Syafril Hermansyah

Tuesday 5th of March 2024

Thank you for this article. I have stuck with "internet Option is grayed out".

My server has PCI-e, so I have used to Firmware Q35 instead of I440FX. And I use firmware UEFI. But everything is done, Win11 running well so far