{"id":1738,"date":"2022-07-22T14:32:37","date_gmt":"2022-07-22T05:32:37","guid":{"rendered":"https:\/\/ahnbk.com\/?p=1738"},"modified":"2022-07-22T14:34:21","modified_gmt":"2022-07-22T05:34:21","slug":"wsl2%ec%97%90%ec%84%9c-%ec%9c%88%eb%8f%84%ec%9a%b0%ec%97%90-%ec%97%b0%ea%b2%b0%eb%90%9c-usb-%ec%9e%a5%ec%b9%98-%ec%82%ac%ec%9a%a9%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/ahnbk.com\/?p=1738","title":{"rendered":"WSL2\uc5d0\uc11c \uc708\ub3c4\uc6b0\uc5d0 \uc5f0\uacb0\ub41c USB \uc7a5\uce58 \uc0ac\uc6a9\ud558\uae30"},"content":{"rendered":"\n<p>\uacf5\uc2dd\uc801\uc73c\ub860 \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc74c. \ud558\uc9c0\ub9cc \uc624\ud508\uc18c\uc2a4\ub85c \uac1c\ubc1c\ub41c \ud234\uc744 \uc124\uce58\ud558\uba74 \uc708\ub3c4\uc6b0\uc5d0 \uc5f0\uacb0\ub41c USB \uc7a5\uce58\ub97c WSL2 \ub0b4\ubd80\uc5d0\uc11c \uc0ac\uc6a9 \uac00\ub2a5.<\/p>\n\n\n\n<p>\uacfc\uc815 \uc815\ub9ac.<\/p>\n\n\n\n<p>\uc77c\ub2e8 WSL2\ub294 \uc124\uce58\ud558\uc600\uace0, \uc5ec\uae30\uc5d0\uc120 Ubuntu 20.04.4 LTS\ub97c \uc124\uce58\ud558\uc600\uc74c.<\/p>\n\n\n\n<p>\uba3c\uc800 <strong>usbipd<\/strong> (https:\/\/github.com\/dorssel\/usbipd-win) \uc124\uce58<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/dorssel\/usbipd-win\/releases\/latest\">https:\/\/github.com\/dorssel\/usbipd-win\/releases\/latest<\/a> \uc5d0\uc11c \ucd5c\uc2e0 \ubc84\uc804\uc758 \uc124\uce58 \ud30c\uc77c\uc744 \ubc1b\uc544\uc11c \uc124\uce58. \uc124\uce58\ud6c4 \uc7ac\ubd80\ud305 \ud544\uc694.<\/p>\n\n\n\n<p>\uc708\ub3c4\uc6b0\uc5d0\uc11c Power Shell\uc744 \uad00\ub9ac\uc790 \uad8c\ud55c\uc73c\ub85c \uc2e4\ud589. \ud130\ubbf8\ub110 \ud654\uba74\uc5d0\uc11c,<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-color has-text-color\"><code class=\"\">PS C:\\WINDOWS\\system32&gt; usbipd wsl list\nBUSID  VID:PID    DEVICE                                                        STATE\n2-1    27c6:533c  Goodix fingerprint                                            Not attached\n2-5    0c45:6a0c  Integrated Webcam                                             Not attached\n2-13   10c4:ea60  Silicon Labs CP210x USB to UART Bridge (COM3)                 Not attached\n2-14   8087:0026  Intel(R) Wireless Bluetooth(R)                                Not attached\n3-2    2188:6533  CalDigit Thunderbolt 3 Audio, USB Input Device                Not attached\n4-2    0853:0148  USB Input Device                                              Not attached\n4-8    2188:0747  USB Mass Storage Device                                       Not attached\n9-1    046d:c539  USB Input Device                                              Not attached\n9-2    413c:b080  Dell DA20 Adapter                                             Not attached<\/code><\/pre>\n\n\n\n<p>\uc640 \uac19\uc774 \ud604\uc7ac \uc708\ub3c4\uc6b0PC\uc5d0 \uc5f0\uacb0\ub41c USB \uc7a5\uce58 \ub9ac\uc2a4\ud2b8\ub4e4\uc774 \ubcf4\uc784. \uc624\ub978\ucabd\uc5d0\ub294 \ud604\uc7ac WSL\uc5d0 \uc5f0\uacb0\ub418\uc5b4 \uc788\ub294\uc9c0 \uc5ec\ubd80\uac00 \ud45c\uc2dc\ub428.<\/p>\n\n\n\n<p>WSL2\uc758 Ubuntu 20.04\ub97c \uc2e4\ud589\ud558\uace0, \ub2e4\uc74c\uacfc \uac19\uc774 usbipd \ud074\ub77c\uc774\uc5b8\ud2b8 \ud328\ud0a4\uc9c0\ub97c \uc124\uce58\ud55c\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-color has-text-color\"><code class=\"\">$ 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>\uc774\uc81c \ub2e4\uc2dc \ud30c\uc6cc\uc140\ub85c \ub3cc\uc544\uac00\uc11c, \ub2e4\uc74c\uacfc \uac19\uc774 WSL2\uc5d0 \uc5f0\uacb0\ub420 \ub514\ubc14\uc774\uc2a4\ub97c attach \ud574\uc90c.<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-color has-text-color\"><code class=\"\">PS C:\\WINDOWS\\system32&gt; usbipd wsl attach --busid=2-13<\/code><\/pre>\n\n\n\n<p>\ubc84\uc2a4\uc544\uc774\ub514 \ubc88\ud638\ub294 \uc704 \ub9ac\uc2a4\ud2b8\uc5d0\uc11c \ucc38\uace0.<\/p>\n\n\n\n<p>WSL2\uc758 Ubuntu\uc5d0\uc11c dmesg\ub85c \uc5f0\uacb0\uc744 \ud655\uc778\ud574\ubcf4\uba74,<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-color has-text-color\"><code class=\"\">...\n[  981.156497] vhci_hcd vhci_hcd.0: pdev(0) rhport(0) sockfd(3)\n[  981.157731] vhci_hcd vhci_hcd.0: devid(131085) speed(2) speed_str(full-speed)\n[  981.159973] vhci_hcd vhci_hcd.0: Device attached\n[  981.438826] vhci_hcd: vhci_device speed not set\n[  981.508832] usb 1-1: new full-speed USB device number 3 using vhci_hcd\n[  981.588445] vhci_hcd: vhci_device speed not set\n[  981.658522] usb 1-1: SetAddress Request (3) to port 0\n[  981.730925] usb 1-1: New USB device found, idVendor=10c4, idProduct=ea60, bcdDevice= 1.00\n[  981.731956] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3\n[  981.732837] usb 1-1: Product: CP2102 USB to UART Bridge Controller\n[  981.733628] usb 1-1: Manufacturer: Silicon Labs\n[  981.734221] usb 1-1: SerialNumber: 0001\n[  981.744934] cp210x 1-1:1.0: cp210x converter detected\n[  981.751507] usb 1-1: cp210x converter now attached to ttyUSB0<\/code><\/pre>\n\n\n\n<p>\uc640 \uac19\uc774 \uc815\uc0c1\uc801\uc73c\ub85c \uc5f0\uacb0\ub418\uace0,  \/dev\uc5d0 \uc7a5\uce58\uac00 \uc0dd\uc131\ub428\uc744 \ubcfc \uc218 \uc788\uc74c. \uc5f0\uacb0\uc744 \ud574\uc81c\ud558\ub824\uba74 \ud30c\uc6cc\uc258\uc5d0\uc11c<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-color has-text-color\"><code class=\"\">PS C:\\WINDOWS\\system32&gt; usbipd wsl detach --busid=2-13<\/code><\/pre>\n\n\n\n<p>\ub97c \uc785\ub825\ud558\uba74,<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-color has-text-color\"><code class=\"\">[ 1048.211316] vhci_hcd: connection closed\n[ 1048.211480] vhci_hcd: stop threads\n[ 1048.212982] vhci_hcd: release socket\n[ 1048.213452] vhci_hcd: disconnect device\n[ 1048.214003] usb 1-1: USB disconnect, device number 3\n[ 1048.214792] cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0\n[ 1048.215669] cp210x 1-1:1.0: device disconnected<\/code><\/pre>\n\n\n\n<p>\uc815\uc0c1\uc801\uc73c\ub85c \uc5f0\uacb0 \ud574\uc81c.<\/p>\n\n\n\n<p>\uc774\uc81c \uc2e4\uc81c \ub9ac\ub205\uc2a4 \uc2dc\uc2a4\ud15c\uc5d0\uc11c\uc640 \ub9c8\ucc2c\uac00\uc9c0\ub85c \uc7a5\uce58 \uc0ac\uc6a9 \uac00\ub2a5.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>&#8212; <\/p>\n\n\n\n<p>\ub367.<\/p>\n\n\n\n<p>\uc7a5\uce58\ub97c attach \ud558\ub294 \ub3c4\uc911 \ub2e4\uc74c\uacfc \uac19\uc740 \uc5d0\ub7ec\uac00 \ubc1c\uc0dd\ud558\uba74,<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-color has-text-color\"><code class=\"\">usbipd: error: WSL kernel is not USBIP capable; update with 'wsl --update'.<\/code><\/pre>\n\n\n\n<p>\uc704\uc5d0\uc11c \uc81c\uc2dc\ud55c \ud574\uacb0 \ubc29\ubc95\ub300\ub85c, wsl\ub97c \uc5c5\ub370\uc774\ud2b8 \ud574\uc8fc\uba74 \ub428.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\ucc38\uace0\ub9c1\ud06c:<\/p>\n\n\n\n<ul><li><a href=\"https:\/\/github.com\/dorssel\/usbipd-win\/wiki\/WSL-support\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/dorssel\/usbipd-win\/wiki\/WSL-support<\/a><\/li><li><a href=\"https:\/\/github.com\/dorssel\/usbipd-win\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/dorssel\/usbipd-win<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\uacf5\uc2dd\uc801\uc73c\ub860 \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc74c. \ud558\uc9c0\ub9cc \uc624\ud508\uc18c\uc2a4\ub85c \uac1c\ubc1c\ub41c \ud234\uc744 \uc124\uce58\ud558\uba74 \uc708\ub3c4\uc6b0\uc5d0 \uc5f0\uacb0\ub41c USB \uc7a5\uce58\ub97c WSL2 \ub0b4\ubd80\uc5d0\uc11c \uc0ac\uc6a9 \uac00\ub2a5. \uacfc\uc815 \uc815\ub9ac. \uc77c\ub2e8 WSL2\ub294 \uc124\uce58\ud558\uc600\uace0, \uc5ec\uae30\uc5d0\uc120 Ubuntu 20.04.4 LTS\ub97c \uc124\uce58\ud558\uc600\uc74c. \uba3c\uc800 usbipd (https:\/\/github.com\/dorssel\/usbipd-win) \uc124\uce58 https:\/\/github.com\/dorssel\/usbipd-win\/releases\/latest \uc5d0\uc11c \ucd5c\uc2e0 \ubc84\uc804\uc758 \uc124\uce58 \ud30c\uc77c\uc744 \ubc1b\uc544\uc11c \uc124\uce58. \uc124\uce58\ud6c4 \uc7ac\ubd80\ud305 \ud544\uc694. \uc708\ub3c4\uc6b0\uc5d0\uc11c Power Shell\uc744 \uad00\ub9ac\uc790 \uad8c\ud55c\uc73c\ub85c \uc2e4\ud589. \ud130\ubbf8\ub110 \ud654\uba74\uc5d0\uc11c, \uc640 \uac19\uc774 \ud604\uc7ac \uc708\ub3c4\uc6b0PC\uc5d0 \uc5f0\uacb0\ub41c USB &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/ahnbk.com\/?p=1738\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;WSL2\uc5d0\uc11c \uc708\ub3c4\uc6b0\uc5d0 \uc5f0\uacb0\ub41c USB \uc7a5\uce58 \uc0ac\uc6a9\ud558\uae30&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"footnotes":"","_jetpack_memberships_contains_paid_content":false},"categories":[225],"tags":[359,360,316,361],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2wXSW-s2","jetpack-related-posts":[],"jetpack_likes_enabled":false,"_links":{"self":[{"href":"https:\/\/ahnbk.com\/index.php?rest_route=\/wp\/v2\/posts\/1738"}],"collection":[{"href":"https:\/\/ahnbk.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ahnbk.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ahnbk.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ahnbk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1738"}],"version-history":[{"count":4,"href":"https:\/\/ahnbk.com\/index.php?rest_route=\/wp\/v2\/posts\/1738\/revisions"}],"predecessor-version":[{"id":1742,"href":"https:\/\/ahnbk.com\/index.php?rest_route=\/wp\/v2\/posts\/1738\/revisions\/1742"}],"wp:attachment":[{"href":"https:\/\/ahnbk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1738"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ahnbk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1738"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ahnbk.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1738"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}