Windows11 Host + WSL + ansible to provision Windows Server/Client

I don’t think you can run VirtualBox on WSL.
The only progress I’ve got was with Packer+Ansible installed on WSL and VirtualBox on Windows host
Then have VBoxManage.sh script in PATH which converts plain WSL paths generated by Packer to Windows paths using wslpath then passed them to VBoxManage.exe.
For the Packer I also had to export TMPDIR=/mnt/c/tmp, otherwise Floppy VHD won’t mount from inside WSL-only /tmp.

However, WinRM connectivity was not successful because 127.0.0.1 is WSL and not Windows host running VirtualBox with Windows machine.

Resources: