-
Notifications
You must be signed in to change notification settings - Fork 823
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please support mounting NBD disks #5968
Comments
Please enable it. I use BUSE for testing block corruption, and this would be very helpful. CONFIG_BLK_DEV_NBD=y needs to be set, so that needs to go in for nbd-client and nbd-server to work. I've manually put together a kernel so I can do this, but would really appreciate this to be out of the box. |
I second this. Docker now uses WSL2 by default, and tools such as alpimager start to fail on Docker for Windows because nbd support is lacking. |
This was going to be my way to get around
I want to access my dual-boot linux /home partition Am I now going to have to somehow map the partition as a file under windows and then use that via 9p + losetup? |
Work-around in the meantime; build your own kernel: https://blog.dan.drown.org/replacing-the-wsl-kernel/ |
I've been building my own for a while now. This is about really enabling NBD out of the box; Same with EBPF; Would like both out of the box. |
It ought the be practically the same as the Ubuntu kernel right out of the box. I'm now stuck on accessing the windows NBD server from Ubuntu. |
Any progress on this? Would be great to have CONFIG_BLK_DEV_NBD set to "y" by default! |
You can compile and use your own Linux kernel in WSL2 with that config enabled. |
Building a custom kernel has been mentioned multiple times in this issue, and people asking for this know that that's an option. It would be helpful to have NBD work out of the box. |
Slightly (very?) off topic, but I found it much simpler to switch to native
linux. With outlook and office being online anyway, it wasn't too hard a
switch. It's much faster too. It's not the answer you want, and it's not
the one I wanted, but it's a lot less faff all round.
|
Why is this not yet supported? Today i had to quickly verify a qcow2 image on a WD Passport disk (which only supports windows or mac), which is only mountable via nbd, and I couldn't do this, because WSL2 doesn't support this. |
Just adding the annual +1 :) |
I came here hoping to find, well, some movement of any kind on this since it's been open for 2 years 😞 I guess it's back to dual-booting or running Linux in a VM until Microsoft add some basic features that most Linux admins would love to see in WSL to prevent said dual booting &/or VMs. It was nice knowing ya WSL, but you ain't quite what I'm looking for in a partner. ¯\_(ツ)_/¯ |
Why does changing the default config file for building the wsl2 kernel take that long? That setting works and it is handy for mounting qcow2 images quickly. |
If only the world 😒 worked this way, we'd all be in the year 3000 🚀 |
If you are interested in having the latest kernel with nbd enabled and always updated to the latest release, you can get it from https://github.com/okibcn/WSL2-linux-kernel/releases/latest I have added another configuration for enabling settings to run Anbox. The Zip includes all the 3 kernels and an installer/uninstaller. I created this for myself so I didn't have to manually build it after each update. I also created a scoop manifest to help me get it updated easily. Just search for wsl2kernel in scoop.sh. It is sad Microsoft didn't have it enabled and I had to do this. |
We really just wish this is out of the box. I've tested this before. There is another chance we could |
This is it, it's absolutely doable - I presume this is your own from your GitHub repo linked above? Ideally this should be implemented in the standard one so we don't have to go adding basic features into the kernel and then be responsible for manually upgrading every time a new one rolls out. Microsoft could easily enable this for use but for some reason, don't.
|
@drew-viles yes, it is my repo. I automated a workflow to build a new nbd version of the kernel as soon as official sources are released by Microsoft. I have been doing it manually before. It is just a setting, nothing complicated. Really, MS could enable this as it works with WSL without any side effects. |
Anual Bump to this |
The Linux kernel supports Network Block Device (NBD) disks. I'd like to be able to mount such disks, containing any filesystem Linux supports, and access them from both Linux and Windows.
This is a capability easily available on a native Linux system, and it would be helpful to have the same capability on WSL2.
The text was updated successfully, but these errors were encountered: