Moreover, what makes this immensely useful in professional setting is that you can now use Windows+WSL2 in data rescue scenarios where you're working with MD RAID, LVM, partitions within partitions, XFS, ext* whatnots you're good to go without any dualbooting. I rescued data from within a ext4 filesystem in a logical volume (LVM) in a volume group stored inside a partition stored inside a LVM volume stored in a volume group that was in an MD RAID volume stored on a physical disk. And under WSL2 it worked flawlessly. Perhaps I should make a video of it as it does sound like a fairytale...
Exited to try this! It's a lot easier to work with the esp32 in Linux compared to windows. Now I should be able to flash my esp32 projects from Linux. Thanks Scott!
Hey Scott, It would be great if you could put together a tutorial for setting this up on Windows 10, as I hear the process is considerably more complex, requiring users to build a custom kernel.
Scott: Instead of sharing the com port from Windows to WSL, couldn't you share the virtual UART USB device into WSL and let Linux enumerate it as a USB to serial adapter?
Hyper-V on Windows 2022 how in the video does t know what Linux distro to connect to? I never saw you tell it what Linux VM(?) to connect to. So if I have 5 Linux VMs running on Hyper-V how does it know which one I want it to "tunnel" to?
I still use windows 10 instead of the recommended windows 11. Can my wsl2 still connect to usb? And how? For many developers,out of IT internal policy, no freedom to upgrade OS as we would like.
I did this but nothing happens. I do the attach procedure but I still get Not attached. I don't get any errors or anything. Do you know what could be wrong or what am I missing?
Greetings. I am attempting to install WSL on my Windows machine that has Windows 10 Pro installed Version 20H2 (OS Build 19042.1415) and I cannot get the Microsoft App store to download Ubuntu. Ive enabled the Windows/Linux connection. The App Store says "The thing that you are looking for isn't here." What gives? I can find this app on the store with my slightly newer laptop
Any1 get PTP (photo transfer protocol) working via gphoto2? I get PTP transfer errors though the device does show with gphoto2 --auto-detect when mounted with usbipd
WSL2 is nice, there are problems though, and nobody seems to fix them from MS side. For example, the wsl2 VM suddenly eats the whole RAM without anything stopping it OR the shell becomes laggy, believe me, that happens without an obvious reason. My point is that apart from tutorials like this one, WSL2 just does not seem to be capable of covering a Linux system 24/7, which makes it just a convenient replacement of Linux only in specific simple cases.
Moreover, what makes this immensely useful in professional setting is that you can now use Windows+WSL2 in data rescue scenarios where you're working with MD RAID, LVM, partitions within partitions, XFS, ext* whatnots you're good to go without any dualbooting.
I rescued data from within a ext4 filesystem in a logical volume (LVM) in a volume group stored inside a partition stored inside a LVM volume stored in a volume group that was in an MD RAID volume stored on a physical disk. And under WSL2 it worked flawlessly.
Perhaps I should make a video of it as it does sound like a fairytale...
Please do make a video on this.
I might not understand everything but this nerdy stuff is so exicting scott. This is what I love about your channel. Keep it nerdy ✌️
WSL is a game-changer. Good job guys!
All this WSL stuff is just so awesome
This helps a lot thank you everyone who made this work.
That is so awesome! Now I can flash QMK firmware updates to my keyboards right from WSL where I build it.
Exited to try this! It's a lot easier to work with the esp32 in Linux compared to windows. Now I should be able to flash my esp32 projects from Linux. Thanks Scott!
Craig Loewen is a very good engineer.
Its crazy how young pms our in microsoft well done on wsl
btw very good presentation story and real world applications was great
Hey Scott, It would be great if you could put together a tutorial for setting this up on Windows 10, as I hear the process is considerably more complex, requiring users to build a custom kernel.
I second this. I tried following these steps being on Windows 10 and everything looks like it's working until I try to actually access the usb device
Great stuff am new to wsl with kali linux usb are working 💪.
this is very cool, i might need this to develop a small printer service voor a zebra compatible printer that needs to run on a RPi. Thanks!
Scott: Instead of sharing the com port from Windows to WSL, couldn't you share the virtual UART USB device into WSL and let Linux enumerate it as a USB to serial adapter?
Good idea! Lemme try that.
It would be great if the Linux password worked with Windows Hello.
How about USB wireless adapter.
Hyper-V on Windows 2022 how in the video does t know what Linux distro to connect to? I never saw you tell it what Linux VM(?) to connect to. So if I have 5 Linux VMs running on Hyper-V how does it know which one I want it to "tunnel" to?
when i try to run usbipd wsl --busid , i get an error saying : usbipd: error: The specified WSL distribution is not running.what do i do
I still use windows 10 instead of the recommended windows 11. Can my wsl2 still connect to usb? And how? For many developers,out of IT internal policy, no freedom to upgrade OS as we would like.
I did this but nothing happens. I do the attach procedure but I still get Not attached. I don't get any errors or anything. Do you know what could be wrong or what am I missing?
Greetings. I am attempting to install WSL on my Windows machine that has Windows 10 Pro installed Version 20H2 (OS Build 19042.1415) and I cannot get the Microsoft App store to download Ubuntu. Ive enabled the Windows/Linux connection. The App Store says "The thing that you are looking for isn't here." What gives? I can find this app on the store with my slightly newer laptop
I tried connecting raspberry pi pico (micropython) but it didn't work.
Do you need Windows 11 to make use of this feature?
nope, wsl is available on windows 10 as well
Any1 get PTP (photo transfer protocol) working via gphoto2? I get PTP transfer errors though the device does show with gphoto2 --auto-detect when mounted with usbipd
Will this work with dedicated Network adapters?
so that I can use Wireshark or airmon-ng etc...
Sadly doesn't work on Windows 10 :(
why not just make it a exe all contained in window and have a simple GUI to select the USB device to transfer or maybe anchor is a better term.
How about Ethernet connector?
can we forward a usb hub this way?
Scott, we are at home, we dont use USBs
Friend can you share the template of that awesome Terminal? looks sick
Yes details on my blog and in earlier videos here
@@shanselman checking them right now, thanks!
Nice, but this should not be done via 3rd party.
WSL2 is nice, there are problems though, and nobody seems to fix them from MS side. For example, the wsl2 VM suddenly eats the whole RAM without anything stopping it OR the shell becomes laggy, believe me, that happens without an obvious reason. My point is that apart from tutorials like this one, WSL2 just does not seem to be capable of covering a Linux system 24/7, which makes it just a convenient replacement of Linux only in specific simple cases.