wsl usb

WSL 2 + usbipd-win 으로 USB 장치 연결하기

📦 준비물 (필수 조건)

Windows 버전 확인:
윈도우 키 + R → winver

WSL 버전/커널 업데이트:

wsl --update

🔥 설치하기 - usbipd-win

1. usbipd-win 설치

2. 설치 완료 시 구성되는 것


🚀 USB 장치 WSL에 연결하기

1. 연결 가능한 USB 디바이스 목록 보기

usbipd list

2. 디바이스 공유하기

usbipd bind --busid <BUSID>

3. WSL에 디바이스 붙이기

usbipd attach --wsl --busid <BUSID>

4. 연결 확인

WSL에서:

lsusb

🛑 연결 끊기

WSL에서 장치 사용을 끝냈으면:

usbipd detach --busid <BUSID>

또는 그냥 USB 케이블 뽑아도 됨.

에러사항

WSL usbip: error: Attach Request for <포트번호> failed - Device busy (exported)
usbipd: warning: The device appears to be used by Windows; stop the software using the device, or bind the device using the '--force' option.
usbipd: error: Failed to attach device with busid '<포트번호>'.

💡 참고


📚 요약

상황 명령어
USB 목록 보기 usbipd list
디바이스 공유 usbipd bind --busid <BUSID>
WSL에 연결 usbipd attach --wsl --busid <BUSID>
연결 해제 usbipd detach --busid <BUSID>