{"id":327,"date":"2023-02-14T09:40:50","date_gmt":"2023-02-14T00:40:50","guid":{"rendered":"https:\/\/ahnbk.dev\/?p=327"},"modified":"2023-02-14T09:44:54","modified_gmt":"2023-02-14T00:44:54","slug":"wsl2%ec%97%90%ec%84%9c-usb-%eb%94%94%eb%b0%94%ec%9d%b4%ec%8a%a4-%ec%97%b0%ea%b2%b0%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/ahnbk.dev\/?p=327","title":{"rendered":"WSL2\uc5d0\uc11c USB \ub514\ubc14\uc774\uc2a4 \uc5f0\uacb0\ud558\uae30"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\ucc38\uace0\ub9c1\ud06c: <a href=\"https:\/\/github.com\/dorssel\/usbipd-win\">https:\/\/github.com\/dorssel\/usbipd-win<\/a>, <a href=\"https:\/\/learn.microsoft.com\/ko-kr\/windows\/wsl\/connect-usb\">https:\/\/learn.microsoft.com\/ko-kr\/windows\/wsl\/connect-usb<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">WSL2\ub294 \uc708\ub3c4\uc6b0\uc5d0\uc11c \uc2e4\ud589\ub418\ub294 \uc77c\uc885\uc758 \uac00\uc0c1\uba38\uc2e0\uc785\ub2c8\ub2e4. \uc2e4\uc81c \uc708\ub3c4\uc6b0\uc5d0 \uc5f0\uacb0\ub41c USB \ub514\ubc14\uc774\uc2a4 (\uc544\ub450\uc774\ub178\ubcf4\ub4dc, \uc6f9\ucea0 \ub4f1)\ub97c WSL2\uc5d0\uc11c \uc0ac\uc6a9\ud558\uae30 \uc704\ud574\uc11c\ub294 USB\/IP \uc624\ud508\uc18c\uc2a4 \ud504\ub85c\uc81d\ud2b8\uc5d0\uc11c \uc81c\uacf5\ud558\ub294 usb-ipd\ub97c \uc0ac\uc6a9\ud558\uba74 \ub429\ub2c8\ub2e4.<\/p>\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\"><strong>[v] \uc708\ub3c4\uc6b0\uc5d0\uc11c usbipd \uc124\uce58<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uba3c\uc800 \uc124\uce58\ub97c \uc704\ud574\uc11c, \ucee4\ub9e8\ub4dc \ucc3d\uc744 \uad00\ub9ac\uc790 \uad8c\ud55c\uc73c\ub85c \uc2e4\ud589\ud569\ub2c8\ub2e4. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">&gt; winget install usbipd  <\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">Microsoft Windows [Version 10.0.22621.1194] \n(c) Microsoft Corporation. All rights reserved.        \n                                                                                                                                                                                         C:\\Windows\\System32> winget install usbipd  \nThe `msstore` source requires that you view the following agreements before using.\nTerms of Transaction: https:\/\/aka.ms\/microsoft-store-terms-of-transaction\nThe source requires the current machine's 2-letter geographic region to be sent to the backend\nservice to function properly (ex. \"US\").\nDo you agree to all the source agreements terms?\n[Y] Yes  [N] No: y\n\nFound usbipd-win [dorssel.usbipd-win] Version 2.4.1 \nThis application is licensed to you by its owner. \nMicrosoft is not responsible for, nor does it grant any licenses to, third-party packages.\nDownloading https:\/\/github.com\/dorssel\/usbipd-win\/releases\/download\/v2.4.1\/usbipd-win_2.4.1.msi\n\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588  9.99 MB \/ 9.99 MB \nSuccessfully verified installer hash \nStarting package install...  \nSuccessfully installed  <\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">winget\uc740 \uc708\ub3c4\uc6b0\uc5d0\uc11c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub294 \ud328\ud0a4\uc9c0 \ub9e4\ub2c8\uc800\uc785\ub2c8\ub2e4. \uc704\uc640 \uac19\uc774 \uba85\ub839\uc744 \uc785\ub825\ud558\uace0 \ub098\uba74 \uc790\ub3d9\uc73c\ub85c \uc124\uce58\uac00 \uc9c4\ud589\ub429\ub2c8\ub2e4.<\/p>\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\"><strong>[v] Linux \uba38\uc2e0\uc5d0\uc11c USBIP \ub3c4\uad6c \ubc0f \ud558\ub4dc\uc6e8\uc5b4 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc124\uce58<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">WSL2\ub97c \uc2e4\ud589\ud558\uace0, Ubuntu \uba38\uc2e0\uc5d0\uc11c \ub2e4\uc74c\uacfc \uac19\uc774 \uc785\ub825\ud558\uc5ec usbipd \ud074\ub77c\uc774\uc5b8\ud2b8 \ud328\ud0a4\uc9c0\ub97c \uc124\uce58\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo apt install linux-tools-virtual hwdata\n$ sudo update-alternatives --install \/usr\/local\/bin\/usbip usbip `ls \/usr\/lib\/linux-tools\/*\/usbip | tail -n1` 20<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\uc774\uc81c \uc124\uce58\uac00 \uc644\ub8cc\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \ubcf8\uaca9\uc801\uc73c\ub85c \uc0ac\uc6a9\ud574\ubcf4\ub3c4\ub85d \ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">\uc608\uc2dc\ub85c, \ub178\ud2b8\ubd81\uc5d0 \uc5f0\uacb0\ub418\uc5b4 \uc788\ub294 USB Serial \ucee8\ubc84\ud130\ub97c \uc5f0\uacb0\ud574\ubd05\ub2c8\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uba3c\uc800 \ub514\ubc14\uc774\uc2a4\ub97c WSL2 \uba38\uc2e0\uc5d0 attach \ud574\uc918\uc57c \ud569\ub2c8\ub2e4. \ucee4\ub9e8\ub4dc\ucc3d\uc744 \uad00\ub9ac\uc790 \uad8c\ud55c\uc744 \uc2e4\ud589\ud55c \ub2e4\uc74c, \ub2e4\uc74c\uacfc \uac19\uc774 \uc785\ub825\ud558\uc5ec usb \ub514\ubc14\uc774\uc2a4\ub97c \ud655\uc778\ud574\ubd05\ub2c8\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">&gt;usbipd wsl list \nBUSID  VID:PID    DEVICE                                                        STATE  \n2-1    27c6:533c  Goodix fingerprint                                            Not attached  \n2-2    1a86:7523  USB-SERIAL CH340 (COM6)                                       Not attached  \n2-5    0c45:6a0c  Integrated Webcam                                             Not attached  \n2-14   8087:0026  Intel(R) Wireless Bluetooth(R)                                Not attached  \n6-2    0bda:8153  Realtek USB GbE Family Controller                             Not attached  \n7-1    05ac:024f  USB Input Device                                              Not attached  \n7-3    046d:c539  USB Input Device                                              Not attached  \n7-4    0bda:49a7  Realtek USB2.0 Audio, USB Input Device                        Not attached <\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\uc81c \ub178\ud2b8\ubd81\uc5d0\uc11c USB Serial \ucee8\ubc84\ud130\uac00 \ubc84\uc2a4 \uc544\uc774\ub514 2-2\uc5d0 \uc5f0\uacb0\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. \ud604\uc7ac\ub294 Not attached  \uc0c1\ud0dc\ub85c \ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. \uc774\uc81c \uc774 \ub514\ubc14\uc774\uc2a4\ub97c WSL2\uc5d0 \uc5f0\uacb0\ud574\ubd05\ub2c8\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">&gt; usbipd wsl attach -b 2-2<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">&gt; usbipd wsl list\nBUSID  VID:PID    DEVICE                                                        STATE \n2-1    27c6:533c  Goodix fingerprint                                            Not attached \n2-2    1a86:7523  USB-SERIAL CH340 (COM6)                                       Attached - Ubuntu \n2-5    0c45:6a0c  Integrated Webcam                                             Not attached \n2-14   8087:0026  Intel(R) Wireless Bluetooth(R)                                Not attached\n6-2    0bda:8153  Realtek USB GbE Family Controller                             Not attached \n7-1    05ac:024f  USB Input Device                                              Not attached \n7-3    046d:c539  USB Input Device                                              Not attached \n7-4    0bda:49a7  Realtek USB2.0 Audio, USB Input Device                        Not attached <\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Attach\ud55c \uc774\ud6c4 \ub514\ubc14\uc774\uc2a4 \ub9ac\uc2a4\ud2b8\ub97c \ud655\uc778\ud574\ubcf4\uba74 \ub2e4\uc74c\uacfc \uac19\uc774 Ubuntu\uc5d0 Attached \ub41c \uc0c1\ud0dc\ub85c \ud655\uc778\uc774 \ub429\ub2c8\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uc774\uc81c Ubuntu \uba38\uc2e0\uc73c\ub85c \uc774\ub3d9\ud574\uc11c,  <code>dmesg<\/code>\ub85c \uc5f0\uacb0\uc774 \ub418\uc5c8\ub294\uc9c0 \ud655\uc778\ud574\ubd05\ub2c8\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo dmesg\n...\n\n[  827.577688] vhci_hcd vhci_hcd.0: pdev(0) rhport(0) sockfd(3)\n[  827.578223] vhci_hcd vhci_hcd.0: devid(131074) speed(2) speed_str(full-speed)\n[  827.578767] vhci_hcd vhci_hcd.0: Device attached\n[  827.850429] vhci_hcd: vhci_device speed not set\n[  827.920445] usb 1-1: new high-speed USB device number 3 using vhci_hcd\n[  828.000576] vhci_hcd: vhci_device speed not set\n[  828.150453] vhci_hcd: vhci_device speed not set\n[  828.220264] usb 1-1: new full-speed USB device number 4 using vhci_hcd\n[  828.300294] vhci_hcd: vhci_device speed not set\n[  828.370303] usb 1-1: SetAddress Request (4) to port 0\n[  828.410565] usb 1-1: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.63\n[  828.412926] usb 1-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0\n[  828.413663] usb 1-1: Product: USB2.0-Serial\n[  828.415868] ch341 1-1:1.0: ch341-uart converter detected\n[  828.419568] usb 1-1: ch341-uart converter now attached to ttyUSB0<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\uc2e4\uc81c\ub85c \ub514\ubc14\uc774\uc2a4\uac00 Ubuntu\uc5d0 \uc5f0\uacb0\ub41c \uac83\uc744 \ud655\uc778\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ucc38\uace0\ub9c1\ud06c: https:\/\/github.com\/dorssel\/usbipd-win, https:\/\/learn.microsoft.com\/ko-kr\/windows\/wsl\/connect-usb WSL2\ub294 \uc708\ub3c4\uc6b0\uc5d0\uc11c \uc2e4\ud589\ub418\ub294 \uc77c\uc885\uc758 \uac00\uc0c1\uba38\uc2e0\uc785\ub2c8\ub2e4. \uc2e4\uc81c \uc708\ub3c4\uc6b0\uc5d0 \uc5f0\uacb0\ub41c USB \ub514\ubc14\uc774\uc2a4 (\uc544\ub450\uc774\ub178\ubcf4\ub4dc, \uc6f9\ucea0 \ub4f1)\ub97c WSL2\uc5d0\uc11c \uc0ac\uc6a9\ud558\uae30 \uc704\ud574\uc11c\ub294 USB\/IP \uc624\ud508\uc18c\uc2a4 \ud504\ub85c\uc81d\ud2b8\uc5d0\uc11c \uc81c\uacf5\ud558\ub294 usb-ipd\ub97c \uc0ac\uc6a9\ud558\uba74 \ub429\ub2c8\ub2e4. [v] \uc708\ub3c4\uc6b0\uc5d0\uc11c usbipd \uc124\uce58 \uba3c\uc800 \uc124\uce58\ub97c \uc704\ud574\uc11c, \ucee4\ub9e8\ub4dc \ucc3d\uc744 \uad00\ub9ac\uc790 \uad8c\ud55c\uc73c\ub85c \uc2e4\ud589\ud569\ub2c8\ub2e4. winget\uc740 \uc708\ub3c4\uc6b0\uc5d0\uc11c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub294 \ud328\ud0a4\uc9c0 \ub9e4\ub2c8\uc800\uc785\ub2c8\ub2e4. \uc704\uc640 \uac19\uc774 \uba85\ub839\uc744 \uc785\ub825\ud558\uace0 \ub098\uba74 \uc790\ub3d9\uc73c\ub85c \uc124\uce58\uac00 \uc9c4\ud589\ub429\ub2c8\ub2e4. [v] Linux [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[55],"tags":[62,63,56],"class_list":["post-327","post","type-post","status-publish","format-standard","hentry","category-wsl2","tag-usb-ipd","tag-usb","tag-wsl2"],"_links":{"self":[{"href":"https:\/\/ahnbk.dev\/index.php?rest_route=\/wp\/v2\/posts\/327","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ahnbk.dev\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ahnbk.dev\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ahnbk.dev\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ahnbk.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=327"}],"version-history":[{"count":4,"href":"https:\/\/ahnbk.dev\/index.php?rest_route=\/wp\/v2\/posts\/327\/revisions"}],"predecessor-version":[{"id":332,"href":"https:\/\/ahnbk.dev\/index.php?rest_route=\/wp\/v2\/posts\/327\/revisions\/332"}],"wp:attachment":[{"href":"https:\/\/ahnbk.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ahnbk.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=327"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ahnbk.dev\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}