Windows 11 on Linux KVM
Install some needed tools:
sudo apt install qemu-kvm bridge-utils virt-manager libosinfo-bin
Short list of steps:
Create a new virtual machineLocal install media (ISO image or CDROM)Choose ISO or CDROM install media:->Browse...Browse Local-> Select the iso file ->ForwardMemory:-> 16384CPUs:-> 4ForwardCustomize configuration before install->FinishOverview->Firmware:->UEFI x86_64: /usr/share/OVMF/OVMF_CODE_4M.secboot.fdCPUs->Configuration->Topology->Manually set CPU topologySockets:-> 1Cores:-> 2Threads:-> 2
Boot Options->Boot device order->SATA CDROM 1at the topSATA Disk 1->Disk bus:->VirtIOAdd Hardware->StorageSelect or create custom storage-> virtIO.isoDevice type:->CDROM deviceAdvanced options->Readonly:check
NIC :mac...->Device model:->virtioTablet-> right click ->Remove HardwareAdd Hardware->GraphicsType:->VNC server
TPM vNone->Advanced optionsModel:->TISVersion:->2.0
TPM
Software TPM:
sudo apt install swtpm-tools
Check that it responds:
swtpm --version
Enable secure-boot/UEFI on KVM:
sudo apt install ovmf