3 ms·
Here’s the issue with your issue: if you are using WSL2 (or other various win10 configurations involving hyper-v), then windows is not running on bare metal any
by xnyan 6y ago
Here’s the issue with your issue: if you are using WSL2 (or other various win10 configurations involving hyper-v), then windows is not running on bare metal anymore. In this scenario, windows is just another guest operating system subject to a hypervisor. Windows is a VM, and your in-VM firewall applies to the VM in which its running.
This is how you get real linux “on” windows - the on part is an illusion, trickery to make using linux transparent and integrated. By comparison, WSL1, which is still supported, is “just” (it’s actually pretty impressive in its own right) syscalls translated to the NT kernel.
Microsoft could do a better job communicating this, but I don’t think any of their design decisions are bad in this regard.
- im3w1l 6y agoSo WSL1 is reverse wine basically?
- apetresc 6y agoNot _exactly_, but it's a pretty close analogy. Certainly moreso than WSL2 is.
- pjmlp 6y agoNope, WSL 1 uses pico processes, a technology based on Drawbridge research. https://www.microsoft.com/en-us/research/project/drawbridge/ https://www.microsoft.com/en-us/research/project/drawbridge/ https://docs.microsoft.com/en-us/archive/blogs/wsl/windows-subsystem-for-linux-overview https://docs.microsoft.com/en-us/archive/blogs/wsl/windows-s... https://channel9.msdn.com/Blogs/Seth-Juarez/Windows-Subsystem-for-Linux-Architectural-Overview https://channel9.msdn.com/Blogs/Seth-Juarez/Windows-Subsyste... It is a bit more advanced than Wine, with first class support from NT kernel. Whereas WSL 2 uses Hyper-V, which is a type 1 hypervisor, all OSes run as guest, including Windows itself.
- OJFord 6y agoSo this is also an issue (by which I mean something to be aware of, that I think most aren't) with Linux docker containers on Windows/macOS? It makes perfect sense now you say it - I knew hyper-v was a hypervisor, I knew in basic broad strokes what a hypervisor is and where it sits, but for some reason this didn't occur to me. It could be very alarming to people running containers 'on a Windows' server, but then such people are probably more familiar with hypervisors anyway. Is hyper-v networking still somehow configurable from the 'host', or is it undesirable for containers unless you don't want to do anything to the network (in software on that machine)?
- buran77 6y agoAs far as I know this is how Hyper-V worked since at least Windows 8(.1?). Installing the role would relegate the Windows OS to guest VM status, albeit with more privileges than any other VM. Microsoft should make it more obvious since most Windows 10 users shouldn't be expected to make this distinction by themselves.
- yencabulator 6y agoIn which case it sounds like the Windows tools for configuring things should configure HyperV's networking too. You know, just like the software inside the Windows VM can launch a separate Linux VM; you're already controlling HyperV from inside that VM.