kvm Virtualisiation is great, however, useable tools to create and manage said VMs are rare. The best tool for the job, virt-manager is only available for Linux machines. But what if you want to manage said VMs also via Windows 10? WSL2 to the rescue: Just install WSL2 as shown by the excellent Microsoft Guide, install i.e. a Debian/GNU Linux instance and then launch into it.
You should update the instance to the latest version first:
sudo apt update && sudo apt upgrade -y && sudo apt dist-upgrade -y
then you can install virt-manager
sudo apt install -y virt-manager ssh-askpass
the last thing you would need is to install an X server on your windows machine, i.e. Xming or MobaXterm (which contains Xming) and launch it. Then you need to setup the X forwarding in your WSL2 instance, by entering
export DISPLAY="grep nameserver /etc/resolv.conf | sed 's/nameserver //':0"
export DISPLAY="sed -n 's/nameserver //p' /etc/resolv.conf:0"
export DISPLAY=$(ip route|awk '/^default/{print $3}'):0.0
after that, you can launch virt-manager by entering
virt-manager
and configure it to connect to your KVM instance via SSH.
on Fedora WSL2 I got the following error: Unable to connect to libvirt qemu:///system.
Is that something of this distro specific? Or are there more with the issue.
Sorry, never heard of that issue.