How to run a Windows virtual machine on Incus on Linux

Do you want resizing of VM’s Screen work? Add:

  raw.qemu.conf: |-
    [device "qemu_gpu"]
    driver = "qxl-vga"
    bus = "pcie.0"
    addr = "3.0"

Btw. add that after you have all virtio drivers installed, maybe distrobuilder was/is enough.

My full config (without that volatile keys):

architecture: x86_64
config:
  image.os: windows 11
  limits.cpu: "8"
  limits.memory: 12GiB
  raw.qemu: -cpu host -device intel-hda -device hda-duplex -audio spice
  raw.qemu.conf: |-
    [device "qemu_gpu"]
    driver = "qxl-vga"
    bus = "pcie.0"
    addr = "3.0"
devices:
  eth0:
    name: eth0
    network: incusbr0
    type: nic
  iso-agent:
    source: agent:config
    type: disk
  root:
    path: /
    pool: default
    size: 200GB
    type: disk
  vtpm:
    type: tpm
ephemeral: false
profiles:
  - default
stateful: false
description: ""