I would like to use a CAN network interface from my host in QEMU.
Setup
I have a CAN network device (can0) in my WSL2, which I can use to communicate with the CAN2USB adapter connected to my Laptop. Everything works as intended, the app running on the host (in this case WSL2) communicates via socketcan
.
Goal
I am also running a QEMU image in the WSL and would like to kinda “forward” the CAN network interface from WSL2 into the QEMU Image, so an application in QEMU would use the CAN interface (via socketcan
) and the traffic would be then “forwarded” to the WSL2 and then to the CAN2USB adapter.
Any idea how to do it?