I'm not the author the blog post and this gist is a simply a note on my usage based on the original post, https://boxofcables.dev/kvm-optimized-custom-kernel-wsl2-2022/.
I also changed the code that extract the latest to a concrete linux kernel version.
First start with openSUSE Tumbleweed distro and commands below can be used to build the custom kernel and set it to be used for WSL2 distros.
# prepare build deps
sudo zypper -n up
# original from the post