This assumes you have Windows Server 2022 Gen2 VM running on hyper-v that uses gen2 with UEFI and Secure Boot - it should work for win11 but i haven't tested that. This has only tested with a vanilla windows server 2022 VM so far (three times to write guide). I will comment this gist when i manage to move one of my domain controllers.
- Dowload Virtio DVD and attach to running windows VM on Hyper-v
- Log onto console of Windows VM to be migrated
- Install VirtIO drivers (all drivers, this will also include spice tools)
- Gracefully shutdown server
- Export VM to CIFS location accessible by proxmox and mounted in proxmox