notes

View on GitHub

Windows 11 on Linux KVM

Source

Install some needed tools:

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

Short list of steps:

  1. Create a new virtual machine
  2. Local install media (ISO image or CDROM)
  3. Choose ISO or CDROM install media: -> Browse...
  4. Browse Local -> Select the iso file -> Forward
  5. Memory: -> 16384
  6. CPUs: -> 4
  7. Forward
  8. Customize configuration before install -> Finish
    1. Overview -> Firmware: -> UEFI x86_64: /usr/share/OVMF/OVMF_CODE_4M.secboot.fd
    2. CPUs -> Configuration -> Topology -> Manually set CPU topology
      1. Sockets: -> 1
      2. Cores: -> 2
      3. Threads: -> 2
    3. Boot Options -> Boot device order -> SATA CDROM 1 at the top
    4. SATA Disk 1 -> Disk bus: -> VirtIO
    5. Add Hardware -> Storage
      1. Select or create custom storage -> virtIO.iso
      2. Device type: -> CDROM device
      3. Advanced options -> Readonly: check
    6. NIC :mac... -> Device model: -> virtio
    7. Tablet -> right click -> Remove Hardware
    8. Add Hardware -> Graphics
      1. Type: -> VNC server
    9. TPM vNone -> Advanced options
      1. Model: -> TIS
      2. Version: -> 2.0

TPM

Source

Software TPM:

sudo apt install swtpm-tools

Check that it responds:

swtpm --version

Enable secure-boot/UEFI on KVM:

sudo apt install ovmf