报错如下:
usbipd: error: The specified WSL distribution cannot be reached via the WSL virtual switch; try restarting the WSL distribution.
目前发现两种情况会发生
1 有多个Ubuntu版本,未指定
- 指定–distribution的版本
usbipd wsl attach --busid 4-2 --distribution Ubuntu-20.04
2 Windows功能开启了hyper-v
- 关闭hyper-v,问题解决
参考:
https://github.com/dorssel/usbipd-win/issues/588