SlideShare a Scribd company logo
1 of 37
twitter: @MithunShanbhag
blog: mithunshanbhag.github.io
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
Image attribution: Microsoft (WSL Documentation)
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
Image attribution: Microsoft (WSL Documentation)
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
Image attribution: Microsoft (WSL Blog)
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
Image attribution: Microsoft (WSL Blog)
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
Image attribution: Microsoft (WSL Blog)
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
Image attribution: Microsoft (WSL Blog)
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
Image attribution: Microsoft (WSL Blog)
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
Image attribution: Microsoft (Build 2019)
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
Image attribution: Microsoft (Build 2019)
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
Image attribution: Microsoft (Build 2019)
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
Image attribution: Microsoft (Build 2019)
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
Image attribution: Microsoft (Build 2019)
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
Image attribution: Microsoft (Build 2019)
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
Image attribution: Microsoft (VSCode Documentation)
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
Image attribution: Microsoft (Docker Documentation)
twitter: @MithunShanbhagblog: mithunshanbhag.github.io
twitter: @MithunShanbhagblog: mithunshanbhag.github.io

More Related Content

What's hot

What's hot (20)

GitHub Actions in action
GitHub Actions in actionGitHub Actions in action
GitHub Actions in action
 
Bitbucket Devops PPT.pptx
Bitbucket Devops PPT.pptxBitbucket Devops PPT.pptx
Bitbucket Devops PPT.pptx
 
Vault
VaultVault
Vault
 
CI/CD with GitHub Actions
CI/CD with GitHub ActionsCI/CD with GitHub Actions
CI/CD with GitHub Actions
 
웨일브라우저 성능 및 메모리 최적화
웨일브라우저 성능 및 메모리 최적화웨일브라우저 성능 및 메모리 최적화
웨일브라우저 성능 및 메모리 최적화
 
TLS_SSL-with-cert-manager
TLS_SSL-with-cert-managerTLS_SSL-with-cert-manager
TLS_SSL-with-cert-manager
 
Cloud run - Serverless Containers Done Right
Cloud run - Serverless Containers Done RightCloud run - Serverless Containers Done Right
Cloud run - Serverless Containers Done Right
 
Using GitHub Actions to Deploy your Workloads to Azure
Using GitHub Actions to Deploy your Workloads to AzureUsing GitHub Actions to Deploy your Workloads to Azure
Using GitHub Actions to Deploy your Workloads to Azure
 
GitHub Actions (Nakov at RuseConf, Sept 2022)
GitHub Actions (Nakov at RuseConf, Sept 2022)GitHub Actions (Nakov at RuseConf, Sept 2022)
GitHub Actions (Nakov at RuseConf, Sept 2022)
 
Red Team Tactics for Cracking the GSuite Perimeter
Red Team Tactics for Cracking the GSuite PerimeterRed Team Tactics for Cracking the GSuite Perimeter
Red Team Tactics for Cracking the GSuite Perimeter
 
마크다운 소개
마크다운 소개마크다운 소개
마크다운 소개
 
Introduction to Vault
Introduction to VaultIntroduction to Vault
Introduction to Vault
 
Container based CI/CD on GitHub Actions
Container based CI/CD on GitHub ActionsContainer based CI/CD on GitHub Actions
Container based CI/CD on GitHub Actions
 
Git and GitHub
Git and GitHubGit and GitHub
Git and GitHub
 
Building A CICD Pipeline for Deploying to Containers
Building A CICD Pipeline for Deploying to ContainersBuilding A CICD Pipeline for Deploying to Containers
Building A CICD Pipeline for Deploying to Containers
 
Security Process in DevSecOps
Security Process in DevSecOpsSecurity Process in DevSecOps
Security Process in DevSecOps
 
Devops and git basics
Devops and git basicsDevops and git basics
Devops and git basics
 
CI CD Basics
CI CD BasicsCI CD Basics
CI CD Basics
 
BitBucket presentation
BitBucket presentationBitBucket presentation
BitBucket presentation
 
DevOps and Application Security
DevOps and Application SecurityDevOps and Application Security
DevOps and Application Security
 

Similar to WSL - Windows SubSytem For Linux

Similar to WSL - Windows SubSytem For Linux (9)

عبقرية خالد بن الوليد العسكرية
عبقرية خالد بن الوليد العسكريةعبقرية خالد بن الوليد العسكرية
عبقرية خالد بن الوليد العسكرية
 
60 دقيقه هزت العالم
60 دقيقه هزت العالم60 دقيقه هزت العالم
60 دقيقه هزت العالم
 
A digital strategy for Lindsay Lohan
A digital strategy for Lindsay LohanA digital strategy for Lindsay Lohan
A digital strategy for Lindsay Lohan
 
ديوان سيد قطب
ديوان سيد قطبديوان سيد قطب
ديوان سيد قطب
 
ديوان سيد قطب
ديوان سيد قطبديوان سيد قطب
ديوان سيد قطب
 
التنمية وجهًا لوجه
التنمية وجهًا لوجه   التنمية وجهًا لوجه
التنمية وجهًا لوجه
 
phong thủy tử vi https://iphongthuy.net/
phong thủy tử vi https://iphongthuy.net/phong thủy tử vi https://iphongthuy.net/
phong thủy tử vi https://iphongthuy.net/
 
iphongthuynet
iphongthuynetiphongthuynet
iphongthuynet
 
السر-www.newt3ch.net
السر-www.newt3ch.netالسر-www.newt3ch.net
السر-www.newt3ch.net
 

More from Mithun Shanbhag

More from Mithun Shanbhag (8)

CloudSkew Architecture
CloudSkew ArchitectureCloudSkew Architecture
CloudSkew Architecture
 
Azure Pipelines
Azure PipelinesAzure Pipelines
Azure Pipelines
 
Terraform on Azure
Terraform on AzureTerraform on Azure
Terraform on Azure
 
Identity, authentication and authorization
Identity, authentication and authorizationIdentity, authentication and authorization
Identity, authentication and authorization
 
Design Patterns for Data Management and Consistency
Design Patterns for Data Management and ConsistencyDesign Patterns for Data Management and Consistency
Design Patterns for Data Management and Consistency
 
Creating user-mode debuggers for Windows
Creating user-mode debuggers for WindowsCreating user-mode debuggers for Windows
Creating user-mode debuggers for Windows
 
Crash course in sql
Crash course in sqlCrash course in sql
Crash course in sql
 
Crash course in git and github
Crash course in git and githubCrash course in git and github
Crash course in git and github
 

Recently uploaded

%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
masabamasaba
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
masabamasaba
 
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
Abortion Pill Prices Boksburg [(+27832195400*)] 🏥 Women's Abortion Clinic in ...
Abortion Pill Prices Boksburg [(+27832195400*)] 🏥 Women's Abortion Clinic in ...Abortion Pill Prices Boksburg [(+27832195400*)] 🏥 Women's Abortion Clinic in ...
Abortion Pill Prices Boksburg [(+27832195400*)] 🏥 Women's Abortion Clinic in ...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
masabamasaba
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
chiefasafspells
 

Recently uploaded (20)

Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...
WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...
WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
BUS PASS MANGEMENT SYSTEM USING PHP.pptx
BUS PASS MANGEMENT SYSTEM USING PHP.pptxBUS PASS MANGEMENT SYSTEM USING PHP.pptx
BUS PASS MANGEMENT SYSTEM USING PHP.pptx
 
WSO2CON 2024 Slides - Unlocking Value with AI
WSO2CON 2024 Slides - Unlocking Value with AIWSO2CON 2024 Slides - Unlocking Value with AI
WSO2CON 2024 Slides - Unlocking Value with AI
 
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationWhat Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the Situation
 
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
 
Abortion Pill Prices Boksburg [(+27832195400*)] 🏥 Women's Abortion Clinic in ...
Abortion Pill Prices Boksburg [(+27832195400*)] 🏥 Women's Abortion Clinic in ...Abortion Pill Prices Boksburg [(+27832195400*)] 🏥 Women's Abortion Clinic in ...
Abortion Pill Prices Boksburg [(+27832195400*)] 🏥 Women's Abortion Clinic in ...
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
WSO2Con2024 - Hello Choreo Presentation - Kanchana
WSO2Con2024 - Hello Choreo Presentation - KanchanaWSO2Con2024 - Hello Choreo Presentation - Kanchana
WSO2Con2024 - Hello Choreo Presentation - Kanchana
 

WSL - Windows SubSytem For Linux

Editor's Notes

  1. WSL is mainly for development scenarios. NOT for production scenarios. Major adv is Windows <-> Linux interop
  2. 1. WSL2 requires windows insider build 18917 or higher. 2. You can install multiple linux distros (only one will be default). 2. Can be installed in one of the following ways: Download & install from Microsoft store. Download & install APPX. 2. Installation on Win Server has additional steps (unzip appx file & run installer).
  3. 7. Run “ls -l /usr/bin/wsl*“ to see list of wsl utilities wslsys wslfetch –splash (takes a bit of time) wslvar –getsys 8. Run “sudo /etc/init.d/docker start” to start docker Docker ps Docker images Docker run –it alpine /bin/sh
  4. 1. WSL2 requires windows insider build 18917 or higher. 2. You can install multiple linux distros (only one will be default). 2. Can be installed in one of the following ways: Download & install from Microsoft store. Download & install APPX. 2. Installation on Win Server has additional steps (unzip appx file & run installer).
  5. @todo: Show examples with “--set-version” and “--unregister”.
  6. 1. The \\WSL$ is facilitated by 9P server (running inside /init)
  7. 5.1. To clarify: - If linux command prompt is under /mnt/xyz, then the windows command gets the same as its current directory. - If linux command prompt is elsewhere, then the windows command gets %WINDIR% as its current directory.
  8. - /etc/fstab is processed on WSL start. /etc/fstab is a file where you can declare other filesystems, like an SMB share. Thus, you can mount these filesystems automatically in WSL on start up. - /etc/hosts file, contains hostname <-> ip mapping - /etc/resolv.conf file, contains list of DNS resolution servers
  9. 1.2. Not really a limitation. More like a blessing. 3.1. We’ll explore more in detail in WSL2 architecture.
  10. @todo: wslpath
  11. NTDLL, PEB, TEB etc are the standard interfaces between user-mode processes and the NT kernel. 3. Pico processes do not interact with NT Kernel directly. 3. When NT Kernel detect a process without PEB/TEB/NTDLL, it asks LXSS/LXCore to interact with it instead. 3. @todo: The pico providers (LXSS/LXCore) provide POSIX compliance for NT Kernel?
  12. 1. VFS abstracts all file system operations. 1. Various ile systems are mounted on different directories in the VFS namespace.   1. VFS utilizes a number of data structures - inodes - directory entries - file objects - file descriptors, - special files (device files, FIFOs, sockets, symbolic links).
  13. 2. The first time an NT process requests launching a Linux binary an instance is created. Once the last NT client closes, the Linux instance is terminated. Notes on /init: /init is a multi-purpose binary that was written by Microsoft and is shipped as a binary resource contained in LxssManager.dll. When /init is launched, it first checks its PID. If the PID is 1, /init will run in "daemon mode" where it essentially the Lxss Manger service’s endpoint inside a WSL instance. If the PID is not 1, /init runs as "binfmt_misc interpreter mode" which allows launching NT binaries.
  14. Advantages of WSL2 over WSL - Faster file access - Full kernel implementation 7. Key thing to remember is that linux is running side-by-side with windows (and not inside it).
  15. 4. The EXT4 VHD is mapped in. Then the /init process is run.
  16. Important to note that: In WSL1, both Windows & Linux were running on same machine. In WSL2, they are running in “separate” machines. The P9 server facilitates Windows <-> Linux file sharing. - In the scenario above, P9 allows Linux VM access to windows file share
  17. 9P facilitates \\WSL$ share
  18. P9 here facilitates mounting of windows file share
  19. Single linux kernel serves multiple distros