How to install Windows 11 in KVM? When Ubuntu is your host OS!

shivangpatel | March 24, 2022, 4:15 p.m. | Linux, Virtualization,

What is TPM?

TPM - Trusted Platform Module. It's a new age tech for security on the hardware and software levels. Don't ask me about how it works because I don't know. laugh

 

Is TPM required for Windows 11?

So, the answer is yes. Pretty sure, yes! It's a required module to install new windows 11 OS on any device. But it creates some consequences. Like, older CPUs are not supporting this new tech. TPM is also mandatory for windows 11 virtual machines. So, users have to enable TPM on the hypervisor to install the windows 11 OS. Most hypervisors support TPM.

 

How to install TPM on Ubuntu KVM?

The first step is, Install the below repo into Ubuntu by editing /etc/apt/sources.list the file. Please make sure the repo is as per your ubuntu version. Like this one is for Ubuntu Focal - 20.XX.X LTS. You can check your Ubuntu version by using lsb_release -a  the command.

deb [trusted=yes] http://ppa.launchpad.net/stefanberger/swtpm-focal/ubuntu focal main

Now, update the local repository catch for new updates by using the below command.

sudo apt update

Now, install TPM directly from the repo by following the below command.

sudo apt install swtpm-tools

swtpm --version

To install TPM from source code, you need to download its source code from the git repository and then compile it on the local machine and need to make deb an installation file. But it's required some skills related to source code compilation and all. That's it related to TPM installation.

The next step is, Enable secure-boot/UEFI on KVM. (This step is optional because when you install Virtual Machine Manager on your ubuntu, it will by default install secure boot/UEFI related libs to enable it.)

sudo apt install ovmf

Now, Open your Virtual Machine Manager for the final Windows 11 OS installation. Follow all steps as you know. But, wait just before clicking on the Finish button.

create before creating VM

 

You need to check on Customize configuration before install the option, and then click on the Finish button. And next, you will see the below window.

 

Before starting VM installation add custome changes

 

Over here, you need to change the Firmware option. Select the secure boot-related option as per the below screenshot. Then click on Apply button.

 

choose secure boot related option

 

Now, the next step is, to click on Add Hardware button(left bottom corner) and select TPM and click on the Finish button. Then click on Apply button.

 

add TPM

 

That's all additional configuration required for VM. Now click on the Begin Installation button and then your process of Windows 11 OS installation will start.

 

Begin Installation

 

That's It!

Additional tips -

  • Windows 11 ISO file officially available on Microsoft site. You can use it without a license with some restrictions.
  • System requirements for Windows 11 are - 4GB RAM and minimum 64GB HDD space.
  • After successful installation, load virtio-win-x.x.xxx.iso and install it for full-screen resolution.
  • Install all updates and enjoy!

 

References :

  1. https://getlabsdone.com/how-to-install-windows-11-on-kvm/
  2. https://getlabsdone.com/how-to-enable-tpm-and-secure-boot-on-kvm/

Recent Posts

featured_image/2022/03/24/pexels-david-selbert-7873834.jpg
How to install Windows 11 in KVM? When Ubuntu is your host OS!

Virtualization of new windows OS like 10 and 11 is a challenging task, Only because of now, it's required TPM module for the secure boot process. It's a kind of next-gen security for electronics devic

featured_image/2021/11/25/pexels-david-selbert-7873840.jpg
How to reset GNOME Desktop Settings to Factory Default on Ubuntu 20.04?

There is a simple command that helps you to reset desktop settings. Please read the full post for that command.

featured_image/2021/10/06/pexels-jean-van-der-meulen-1881762.jpg
Battery Saving

Slimbook Battery is battery optimization tool for Ubuntu, like Linux OS. It's developed by SLIMBOOK. Slimbook Battery have nice UI with default mode settings for Energy Saving, Balanced, Max Performan

featured_image/2021/04/29/penguin_bh.jpg
How to Setup Linux Server(VPS)?

Install updates Change ROOT passkey Create new user with root privileges Fail2ban - Prepare for D-DOS Configure SSH Firewall Install and Setup