WSL and EFLOW for IoT Edge Development

Published Aug 04 2021 09:00 AM 2,101 Views
Microsoft

Since Microsoft CEO Satya Nadella proclaimed that “Microsoft ♥ Linux” in 2014, Microsoft has accelerated its investment in Linux and Open Source. Now, Linux amounts to a sizable commitment seen across on-premises datacenters, Azure public cloud, and edge devices. We recognize that the world is heterogenous, and aim to meet customers where they are, whether it means running workloads in Windows or Linux.

A result of this investment, Microsoft has released two offerings that make it easier for Windows customers to run Linux workloads: Windows Subsystem for Linux (WSL), and more recently, Azure IoT Edge for Linux on Windows (EFLOW).

 

The Windows Subsystem for Linux lets developers run a GNU/Linux environment -- including most command-line tools, utilities, and applications -- directly on Windows, unmodified, without the overhead of a traditional virtual machine or dualboot setup. WSL was introduced in 2016 and WSL 2, which introduces a full Linux kernel and additional features, was introduced in 2019.

 

Similarly, Azure IoT Edge for Linux on Windows allows you to run containerized Linux workloads by running a curated Linux virtual machine on a Windows device. EFLOW was made generally available earlier this year. So what are the key differences between the two? WSL and EFLOW target different audiences and use cases.

 

In general, WSL is designed to enable Linux tools on Windows. This for developers to run Bash and core Linux command-line tools, which may be used for running short-cycle processes as part of an inner development loop. Developers may, for example, be executing code on a PC using WSL to program something else. EFLOW is meant for running production services, primarily in the context of an IoT deployment. This may include 24/7 processes running on devices with multi-year lifespans.

 

As a result, WSL and EFLOW provide vastly different approaches to flexibility and supportability. As a flexible and general-purpose tool for developer use, WSL allows users to select their own user-space. In other words, developers can select their favorite GNU/Linux distributions, such as Ubuntu, from the Microsoft Store and customize their OS by adding packages with a package manager. In contrast, the EFLOW Linux environment has a fixed user-space composition provided by Microsoft and uses Azure IoT Edge, exclusively, as its deployment mechanism. This means that software must be containerized as an Azure IoT Edge module to run on EFLOW.

 

EFLOW's approach prioritizes supportability, especially as a platform for IoT. The EFLOW Linux virtual machine comes pre-installed with the Azure IoT Edge runtime with moby-engine, and is validated as a for Azure IoT Edge workloads. Furthermore, because EFLOW’s Linux VM is based on Microsoft’s first party CBL-Mariner operating system, Microsoft is able to keep both the Linux environment and the Azure IoT Edge up-to-date for you through Windows Update and aligns the maintenance of the OS with the cadence of Azure IoT Edge for curated compatibility. Lastly, EFLOW is supported on , with industry-leading long-term servicing. Thus, with EFLOW the entire solution stack is supported by Microsoft.

 

WSL may be used in early development where greater flexibility in user-space is needed. A user may, then, transition to EFLOW when deploying Azure IoT Edge modules to devices for commercial or productized purposes. This transition is possible because they both use the same underlying technology and type of containerized workloads.

 

95twr_23-1627433774417.png

 

Overall, WSL and EFLOW give customers greater flexibility to run their Linux workloads, covering the full-range of target audiences and use cases. WSL has proven to be an extremely valuable tool for developers to access Linux tools on a Windows device, while EFLOW is a fully Microsoft supported IoT production solution for Azure IoT Edge Linux Modules.

 

IoT Show Video

 

To learn more visit:

What is Windows Subsystem for Linux | Microsoft Docs

What is Azure IoT Edge for Linux on Windows | Microsoft Docs

%3CLINGO-SUB%20id%3D%22lingo-sub-2593485%22%20slang%3D%22en-US%22%3EWSL%20and%20EFLOW%20for%20IoT%20Edge%20Development%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2593485%22%20slang%3D%22en-US%22%3E%3CP%3ESince%20Microsoft%20CEO%20%3CA%20href%3D%22https%3A%2F%2Fcloudblogs.microsoft.com%2Fwindowsserver%2F2015%2F05%2F06%2Fmicrosoft-loves-linux%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ESatya%20Nadella%20proclaimed%3C%2FA%3E%20that%20%E2%80%9CMicrosoft%20%E2%99%A5%20Linux%E2%80%9D%20in%202014%2C%20Microsoft%20has%20accelerated%20its%20investment%20in%20Linux%20and%20Open%20Source.%20Now%2C%20Linux%20amounts%20to%20a%20sizable%20commitment%20seen%20across%20on-premises%20datacenters%2C%20Azure%20public%20cloud%2C%20and%20edge%20devices.%20We%20recognize%20that%20the%20wor%3CSPAN%3El%3C%2FSPAN%3Ed%20is%20heterogenous%2C%20and%20aim%20to%20meet%20customers%20where%20they%20are%2C%20whether%20it%20means%20running%20workloads%20in%20Windows%20or%20Linux.%3CBR%20%2F%3E%3CBR%20%2F%3EA%20result%20of%20this%20investment%2C%20Microsoft%20has%20released%20two%20offerings%20that%20make%20it%20easier%20for%20Windows%20customers%20to%20run%20Linux%20workloads%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fwsl%2Fabout%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EWindows%20Subsystem%20for%20Linux%3C%2FA%3E%20(WSL)%2C%20and%20more%20recently%2C%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fiot-edge%2Fiot-edge-for-linux-on-windows%3Fview%3Diotedge-2018-06%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20IoT%20Edge%20for%20Linux%20on%20Windows%3C%2FA%3E%20(EFLOW).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20Windows%20Subsystem%20for%20Linux%20lets%20developers%20run%20a%20GNU%2FLinux%20environment%20--%20including%20most%20command-line%20tools%2C%20utilities%2C%20and%20applications%20--%20directly%20on%20Windows%2C%20unmodified%2C%20without%20the%20overhead%20of%20a%20traditional%20virtual%20machine%20or%20dualboot%20setup.%20WSL%20was%20introduced%20in%202016%20and%20WSL%202%2C%20which%20introduces%20a%20full%20Linux%20kernel%20and%20additional%20features%2C%20was%20introduced%20in%202019.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESimilarly%2C%20Azure%20IoT%20Edge%20for%20Linux%20on%20Windows%20allows%20you%20to%20run%20containerized%20Linux%20workloads%20by%20running%20a%20curated%20Linux%20virtual%20machine%20on%20a%20Windows%20device.%20EFLOW%20was%20made%20generally%20available%20earlier%20this%20year.%26nbsp%3BSo%20what%20are%20the%20key%20differences%20between%20the%20two%3F%20WSL%20and%20EFLOW%20target%20different%20audiences%20and%20use%20cases.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20general%2C%20WSL%20is%20designed%20to%20enable%20Linux%20tools%20on%20Windows.%20This%20for%20developers%20to%20run%20Bash%20and%20core%20Linux%20command-line%20tools%2C%20which%20may%20be%20used%20for%20running%20short-cycle%20processes%20as%20part%20of%20an%20inner%20development%20loop.%20Developers%20may%2C%20for%20example%2C%20be%20executing%20code%20on%20a%20PC%20using%20WSL%20to%20program%20something%20else.%20EFLOW%20is%20meant%20for%20running%20production%20services%2C%20primarily%20in%20the%20context%20of%20an%20IoT%20deployment.%20This%20may%20include%2024%2F7%20processes%20running%20on%20devices%20with%20multi-year%20lifespans.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20a%20result%2C%20WSL%20and%20EFLOW%20provide%20vastly%20different%20approaches%20to%20flexibility%20and%20supportability.%20As%20a%20flexible%20and%20general-purpose%20tool%20for%20developer%20use%2C%20WSL%20allows%20users%20to%20select%20their%20own%20user-space.%20In%20other%20words%2C%20developers%20can%20select%20their%20favorite%20GNU%2FLinux%20distributions%2C%20such%20as%20Ubuntu%2C%20from%20the%20Microsoft%20Store%20and%20customize%20their%20OS%20by%20adding%20packages%20with%20a%20package%20manager.%20In%20contrast%2C%20the%20EFLOW%20Linux%20environment%20has%20a%20fixed%20user-space%20composition%20provided%20by%20Microsoft%20and%20uses%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fservices%2Fiot-edge%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20IoT%20Edge%3C%2FA%3E%2C%20exclusively%2C%20as%20its%20deployment%20mechanism.%20This%20means%20that%20software%20must%20be%20containerized%20as%20an%20Azure%20IoT%20Edge%20module%20to%20run%20on%20EFLOW.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EEFLOW's%20approach%20prioritizes%20supportability%2C%20especially%20as%20a%20platform%20for%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Foverview%2Fiot%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EIoT%3C%2FA%3E.%20The%20EFLOW%20Linux%20virtual%20machine%20comes%20pre-installed%20with%20the%20Azure%20IoT%20Edge%20runtime%20with%20moby-engine%2C%20and%20is%20validated%20as%20a%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fiot-fundamentals%2Fiot-support-help%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ET%26nbsp%3B%3C%2FA%3E%20for%20Azure%20IoT%20Edge%20workloads.%20Furthermore%2C%20because%20EFLOW%E2%80%99s%20Linux%20VM%20is%20based%20on%20Microsoft%E2%80%99s%20first%20party%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2FCBL-Mariner%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ECBL-Mariner%3C%2FA%3E%20operating%20system%2C%20Microsoft%20is%20able%20to%20keep%20both%20the%20Linux%20environment%20and%20the%20Azure%20IoT%20Edge%20up-to-date%20for%20you%20through%20Windows%20Update%20and%20aligns%20the%20maintenance%20of%20the%20OS%20with%20the%20cadence%20of%20Azure%20IoT%20Edge%20for%20curated%20compatibility.%20Lastly%2C%20EFLOW%20is%20supported%20on%20%2C%20with%20industry-leading%20long-term%20servicing.%20Thus%2C%20with%20EFLOW%20the%20entire%20solution%20stack%20is%20supported%20by%20Microsoft.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWSL%20may%20be%20used%20in%20early%20development%20where%20greater%20flexibility%20in%20user-space%20is%20needed.%20A%20user%20may%2C%20then%2C%20transition%20to%20EFLOW%20when%20deploying%20Azure%20IoT%20Edge%20modules%20to%20devices%20for%20commercial%20or%20productized%20purposes.%20This%20transition%20is%20possible%20because%20they%20both%20use%20the%20same%20underlying%20technology%20and%20type%20of%20containerized%20workloads.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20align%3D%22center%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%2295twr_23-1627433774417.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F298852iC6DEE39B18B74324%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%2295twr_23-1627433774417.png%22%20alt%3D%2295twr_23-1627433774417.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOverall%2C%20WSL%20and%20EFLOW%20give%20customers%20greater%20flexibility%20to%20run%20their%20Linux%20workloads%2C%20covering%20the%20full-range%20of%20target%20audiences%20and%20use%20cases.%20WSL%20has%20proven%20to%20be%20an%20extremely%20valuable%20tool%20for%20developers%20to%20access%20Linux%20tools%20on%20a%20Windows%20device%2C%20while%20EFLOW%20is%20a%20fully%20Microsoft%20supported%20IoT%20production%20solution%20for%20Azure%20IoT%20Edge%20Linux%20Modules.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIoT%20Show%20Video%3C%2FP%3E%0A%3CDIV%20style%3D%22position%3A%20relative%3B%20left%3A%2012.5%25%3B%20padding-bottom%3A%2042.3%25%3B%20padding-top%3A%200px%3B%20height%3A%200%3B%20overflow%3A%20hidden%3B%20min-width%3A%20320px%3B%20max-width%3A%2075%25%3B%22%3E%3CIFRAME%20src%3D%22https%3A%2F%2Fwww.youtube-nocookie.com%2Fembed%2FGylJBrLAEN4%3Fcontrols%3D0%26amp%3Bautoplay%3Dfalse%26amp%3BWT.mc_id%3Diot-c9-niner%22%20frameborder%3D%220%22%20allowfullscreen%3D%22allowfullscreen%22%20style%3D%22position%3A%20absolute%3B%20top%3A%200%3B%20left%3A%200%3B%20width%3A%20100%25%3B%20height%3A%20100%25%3B%22%20class%3D%22video-iframe%22%20title%3D%22IoT%20Show%20episode%20about%20when%20to%20use%20WSL%20and%20EFLOW%20when%20developing%20for%20IoT%20Edge%22%3E%3C%2FIFRAME%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20learn%20more%20visit%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fwsl%2Fabout%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EWhat%20is%20Windows%20Subsystem%20for%20Linux%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fiot-edge%2Fiot-edge-for-linux-on-windows%3Fview%3Diotedge-2018-06%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EWhat%20is%20Azure%20IoT%20Edge%20for%20Linux%20on%20Windows%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2593485%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20recognize%20that%20the%20wor%3CSPAN%3El%3C%2FSPAN%3Ed%20is%20heterogenous%2C%20and%20aim%20to%20meet%20customers%20where%20they%20are%2C%20whether%20it%20means%20running%20workloads%20in%20Windows%20or%20Linux.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22OlivierBloch_0-1627489735867.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F299051iA42DDC55C398D4E0%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22OlivierBloch_0-1627489735867.png%22%20alt%3D%22OlivierBloch_0-1627489735867.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2593485%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20IoT%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20IoT%20Edge%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EEFLOW%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWindows%20IoT%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWSL%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Version history
Last update:
‎Jul 28 2021 11:30 AM
Updated by:
www.000webhost.com