Ferro's Gitbook
  • README
  • DevOps
    • Grafana_Cloud
  • OpenWrt
    • DHCP_DNS
    • GLiNet
    • boot
    • captive_portal
    • luci
    • mwan3
    • radius
    • theme
    • wireless
  • apps
    • web
  • BSD
    • Mac
  • Cloud
    • aws
    • azure
    • cf
    • gcp
    • github
    • ibm_bluemix
    • Pricing
  • container
    • docker
    • Kubernetes
    • podman
  • db
    • InfluxDB
    • loki
    • MySQL & MariaDB
    • Oracle
    • PostgreSQL
  • dev
    • AHK
    • BI
    • LBS
    • ML
    • android
    • editor
    • flutter_web
    • git
    • go
    • HTML5/BS
    • j2ee
    • js
    • js_grid
    • js_vue
    • jupyter
    • ocaml
    • powershell
    • py
    • py_GUI
    • Django
    • shell
    • snippets
    • uni
    • vba
    • wechat.zh
    • wechat_mp.zh
  • elec
    • 3D Printing
    • AC
    • MOSFET
    • battery
    • boost
    • bulk
    • metal
    • simulator
  • hw
    • GPU
    • PCI
    • arduino
    • Bluetooth
    • ent
    • Pinout
    • x86_AMD
    • x86_intel
  • linux
    • Test System
    • X
    • arch
    • fs
    • kernel
    • Memory
    • nw
    • Linux Services
    • Systemd
    • text
  • ms
    • vscode
    • windows
    • wsl
  • multimedia
    • Blender
    • audio
    • blender
    • graphics
    • home
  • nw
    • L3
    • L3_IPv6
    • SDN
    • VPN
    • dns
    • hw
    • Low Level
    • mikrotik
    • mwan
    • Openflow
    • OVS
    • pfsense
    • ppp
    • proxy
    • tsocks
    • pxe
    • Security
    • TCP
  • phone
    • Mi
    • android
  • Storage(SW)
  • vt
    • Intel GVT-g
    • PVE
    • QEMU
    • VDI
    • hyper-v
    • kube
    • libvirt
    • OpenStack
  • Web
    • IBM_MQ
    • IBM_Websphere
    • SSL
    • Apache/IBM_IHS
    • blockchain
    • caddy
    • j2ee
    • nginx
    • static_site
Powered by GitBook
On this page
  • Install
  • Mount Linux Partitions
  • network - bridged to host

Was this helpful?

Edit on Git
  1. ms

wsl

PreviouswindowsNextmultimedia

Last updated 2 years ago

Was this helpful?

Install

Windows 10 version 2004 and higher (Build 19041 and higher) or Windows 11: https://learn.microsoft.com/en-us/windows/wsl/install

wsl --list --online
wsl --install -d Debian # default: Ubuntu
wsl -l -v    # check installed Distributions
wsl --status # check wsl kernel
wsl --shutdown

https://learn.microsoft.com/en-us/windows/wsl/wsl-config

# WSL2   global: C:\Users\<UserName>\.wslconfig
# WSL1/2 per-distribution: /etc/wsl.conf  => automount, network, interop, user

[boot]
systemd=true

[automount]

Mount Linux Partitions

wsl -v # Windows 11 Build 22000 or higher
GET-CimInstance -query "SELECT * from Win32_DiskDrive"
wsl --mount \\.\PHYSICALDRIVE0 --bare # attach but don't mount
wsl --mount \\.\PHYSICALDRIVE2 --partition 2 --type  btrfs

network - bridged to host

install hyper-v + manager, start WSL linux, change vSwitch type

ip addr flush dev eth0
dhclient eth0
Install
Mount Linux Partitions
network - bridged to host