778 Commits

Author SHA1 Message Date
David Bennett
5c16ff5d36 Add missing resources. 2026-01-16 14:22:04 -08:00
David Bennett
de74cd0e2c PR feedback 2026-01-16 14:08:28 -08:00
David Bennett
cf98d0668d Merge branch 'feature/wsl-for-apps' into user/dkbennett/cli 2026-01-16 13:51:24 -08:00
David Bennett
e2f730e087 Initial creation of wslc.exe 2026-01-16 13:09:46 -08:00
Blue
515b481110
Update UserConfig.cmake.sample to make VHDs readable by everyone (#14068)
* Update UserConfig.cmake.sample to make VHDs readable by everyone

* Apply PR feedback
2026-01-16 11:25:14 -08:00
Ben Hillis
fafb09c53d
Merge pull request #14065 from microsoft/user/benhill/merge_master
merge master -> feature/wsl-for-apps
2026-01-14 14:26:32 -08:00
Ben Hillis
2ef54e99f9
Merge branch 'feature/wsl-for-apps' into user/benhill/merge_master 2026-01-14 12:28:27 -08:00
Ben Hillis
e2a7b1d168
cleanup: refactor svccommio class (#13843)
* cleanup: refactor svccommio class

* add logging if setting code page fails

* pr feedback

* remove unneeded if

* remove unneeded if

* pr feedbacK'

---------

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
2026-01-14 12:24:04 -08:00
Blue
5cde0550c2
Followup fixes from the persistent sessions change (#14061)
* Followup fixes from the persistent sessions change

* Fix inverted condition
2026-01-14 09:37:12 -08:00
Ben Hillis
87ed36a1e4
diagnostics: combine wprp files in a single one with profiles (#14048)
* diagnostics: combine wprp files in a single one with profiles

---------

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
2026-01-14 09:26:46 -08:00
Blue
f90c8e8e52
Add experimental implementation for pull & run with related API changes (#14050)
* Add API flags for creating & opening persistent sessions

* Properly handle session name conflicts

* Format

* Format

* Save state

* Working end to end pull

* Clean up console cursor logic

* Save state

* Save state

* Implement run

* Merge

* Correctly handle error messages

* Improve error handling

* Add test coverage
2026-01-14 08:47:23 -08:00
Blue
21e60dcfb2
Localization change from build: 137534777 (#14059)
Co-authored-by: WSL localization <noreply@microsoft.com>
2026-01-13 15:46:54 -08:00
rfu-cn
2a84749f91
Update eLxr distribution name (#14032)
Keep command-line install/unregister eLxr operations consistent
2026-01-13 17:09:24 -05:00
Blue
0a2f80d2cd
Localization change from build: 137487010 (#14057)
Co-authored-by: WSL localization <noreply@microsoft.com>
2026-01-13 10:56:13 -08:00
Kevin Vega
23bda7c6d6
Fix dmesg warning from enable crash dump collection (#14035)
* Do not write write to core_pattern after chroot
* Recreate symlink
2026-01-13 10:43:41 -08:00
Ben Hillis
d27b648830
Update to Azure Linux 3 (#14049)
* Update StartDhcpClient to use dhcpcd which is the Azure Linux 3 equivalent
* Update Microsoft.WSLg to version 1.0.72 which moves to Azure Linux 3
2026-01-13 09:15:15 -08:00
Blue
0491cb6d54
Add API flags for creating & opening persistent sessions (#14047)
* Add API flags for creating & opening persistent sessions

* Properly handle session name conflicts

* Format

* Format

* Fix broken port mapping logic

* PR feedback

* Remove last message reference
2026-01-12 16:18:55 -08:00
beena352
6bce95978e
Merge pull request #13965 from beena352/user/beenachauhan/wsladiag-verb-parsing
Refactor wsladiag CLI parsing and fix shell PTY handling
2026-01-12 12:40:34 -08:00
Beena352
f276156705 Remove LOG_CAUGHT_EXCEPTION 2026-01-12 05:41:27 -08:00
Beena352
3a436d25c7 fix --verbose for shell 2026-01-10 13:05:33 -08:00
Beena352
c60e0034f4 Refine localized error handling 2026-01-09 16:27:53 -08:00
Beena352
57a66542fc Handle --verbose per command and restore support for list 2026-01-09 16:23:08 -08:00
Beena352
58c7e4f72c initialize ExecutionContext in main to capture user-visible errors 2026-01-09 16:23:08 -08:00
Beena352
9aaf850955 Remove E_INVALIDARG special-casing in wmain error handling 2026-01-09 16:23:08 -08:00
Beena352
62443ea20a Rename ArgumentParser constructor flag to stopOnUnknownArgs 2026-01-09 16:23:08 -08:00
Beena352
08a6f990fe Rename ArgumentParser flag to stopOnUnknownArgs 2026-01-09 16:23:07 -08:00
Beena352
4dda2c3068 Refactor wsladiag CLI parsing and fix shell PTY handling 2026-01-09 16:23:07 -08:00
Ben Hillis
15df370478
WSLA: Resolve issue preventing boot from pmem vhds (#14036)
Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
2026-01-09 13:56:39 -08:00
Ben Hillis
5e09668fb7
TEST: Add testcases to validated bridged networking connectivity (#14042)
* TEST: Add testcases to validated bridged networking connectivity

* minor bridged test updates

---------

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
2026-01-09 13:56:01 -08:00
Blue
b83dd65056
Use a weak COM reference to keep track of WSLASession to fix a race condition (#14041)
* Use a weak COM reference to keep track of WSLASession to fix a race condition

* Prepare for review

* PR feedback

* PR feedback

* PR feedback

* PR feedback

* Update src/windows/wslaservice/exe/WSLASession.cpp

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Apply PR feedback

* Format

* Remove redundant locks

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-09 11:49:36 -08:00
Blue
933ec2a6fa
Separate the process control & IO logic from its COM class (#14038)
* Save state

* Format

* Save state

* Save state

* Fix OnEvent logic

* Cleanup process helpers

* Format

* Merge

* PR feedback

* PR feedback
2026-01-08 17:31:49 -08:00
beena352
0665546bb9
Merge pull request #13997 from beena352/user/beenachauhan/wsladiag-localization-support
User/beenachauhan/wsladiag localization support
2026-01-07 18:46:27 -08:00
Beena352
bd7b792fd1 localization: fix indentation and placeholder comments for wsladiag resources 2026-01-07 16:26:05 -08:00
Beena352
c17bf82e5a wsladiag: localize output messages, implement pluralization, remove unused lambda 2026-01-07 15:14:51 -08:00
Beena352
ec16460646 Restore correct locked token for wsladiag usage localization 2026-01-07 14:41:05 -08:00
Beena352
7978c7f220 Apply Copilot suggestions 2026-01-07 14:41:05 -08:00
Beena352
abf097a616 Fix undefined variable 2026-01-07 14:41:05 -08:00
Beena352
817b02959c Localize wsladiag messages and fix list output formatting 2026-01-07 14:41:05 -08:00
Beena352
a270160f40 Localize wsladiag user-facing messages 2026-01-07 14:41:05 -08:00
Blue
318ade6021
Switch from nerdctl to dockerd (#13978)
* Save state

* Save state

* Save state

* Save state

* Interactive shell POC

* Save state

* New process class

* Wire event tracker

* Save state

* Implement non interactive IO relay

* Implement cmd & entrypoint

* CreateContainer passing

* ContainerState passing

* Format

* PortBindings test passing

* ContainerNetwork passing

* Move test logic to Inspect()

* PullImage passing

* Format

* ImportImage passing

* Save state

* Properly implement Import

* LoadImage passing

* Add docker_schema

* Implement exec

* Format

* Exec passing

* Save state

* Prepare for review

* Add copyright headers

* Format

* Apply PR feedback

* Apply PR feedback

* Cleanup diff

* Apply PR feedback

* Skip pmem test

* Revert to cgroupv2
2026-01-07 13:33:32 -08:00
Ben Hillis
de9b955030
WSLA: Update logging infra to only log to hvc1 if available (#14029)
* WSLA: Update logging infra to only log to hvc1 if available

* pr feedback

---------

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
2026-01-07 09:49:23 -08:00
rfu-cn
94df1253b2
Add eLxr official WSL image to the distribution manifest (#14022)
Update DistributionInfo.json to add "eLxr" section to "ModenDistributions".
This commit adds eLxr to the Microsoft WSL's official distribution manifest,
allowing users to pull and install it in an automated way (`wsl --install eLxr`).
2026-01-06 14:31:16 -08:00
Scott Bradnick
e31c701ce9
Update openSUSE Tumbleweed v20260106.0 (#14024)
Updating .appx and .wsl offerings.
2026-01-06 14:30:26 -08:00
Ben Hillis
cca05d4c57
Merge pull request #14027 from microsoft/user/benhill/merge_master
merge master -> feature/wsl-for-apps
2026-01-06 14:00:03 -08:00
Ben Hillis
75963f78e4
Update src/windows/common/hcs.cpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-06 12:30:46 -08:00
Ben Hillis
469ba769db Merge remote-tracking branch 'origin/master' into HEAD 2026-01-06 12:11:30 -08:00
Ben Hillis
da05ceaced
WSLA: Switch VHD boot disk approach and support PMEM for VHD disks (#13943)
* WSLA: Switch to using PMEM for readonly VHDs that are added at boot

* enum -> enum class

* add support for SCSI and PMEM at boot

* switch to std::variant

* add tests for pmem vhds

---------

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
2026-01-06 11:55:50 -08:00
Ben Hillis
c6b69a1ac0
WSLA: Add back virtio proxy networking test that was accidentally deleted (#14025)
Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
2026-01-06 18:29:20 +00:00
Ben Hillis
6f47fa9b20
diagnostics: improve logging of hcs helper utilities on debug builds (#13971)
* diagnostics: improve logging of hcs helper utilities on debug builds

* implement pr feedback

---------

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
2026-01-06 10:07:02 -08:00
Ben Hillis
749f304806
WSlA: Adjust default CONTAINER_PORT_RANGE to avoid dmesg warning around port range parity (#13974)
* WSlA: Adjust default CONTAINER_PORT_RANGE to avoid dmesg warning around port range parity

* Fix ephemeral port range parity to eliminate kernel warning (#13976)

* Initial plan

* Fix port range parity warning by adjusting ephemeral range

- Changed c_ephemeralPortRange from (10000, 20000) to (10000, 20001) to fix parity
  - 10000 is even, 20001 is odd - different parity eliminates dmesg warning
- Changed CONTAINER_PORT_RANGE from (20000, 65535) to (20002, 65535)
  - Ensures non-overlapping ranges and static_assert passes (20001 < 20002)
  - Reverts incorrect change from previous commit that set it to 20000

Co-authored-by: benhillis <17727402+benhillis@users.noreply.github.com>

* Final progress update

Co-authored-by: benhillis <17727402+benhillis@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: benhillis <17727402+benhillis@users.noreply.github.com>

* Delete _codeql_detected_source_root

* add static assert

---------

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: benhillis <17727402+benhillis@users.noreply.github.com>
2026-01-05 14:14:37 -08:00