It helped me for virt-manager in wsl 2 (OS Windows 11, wsl Ubuntu Ubuntu 22.04)
adding the export$(dbus-launch) line to the end of the .profile
export$(dbus-launch)
.profile
when enabled
[boot] systemd=true
in /etc/wsl.conf
/etc/wsl.conf