644 Commits

Author SHA1 Message Date
Blue
e9b5cc46f5 Apply PR feedback 2025-12-09 15:04:35 -08:00
Blue
7cf58493ee Apply PR feedback 2025-12-09 11:36:24 -08:00
Blue
52e020f8a4 Apply PR feedback 2025-12-08 17:08:14 -08:00
Blue
727a71364e Merge branch 'user/oneblue/container-events' of https://github.com/microsoft/WSL into user/oneblue/container-events 2025-12-08 16:44:28 -08:00
Blue
a6ace2008e Merge branch 'feature/wsl-for-apps' of https://github.com/microsoft/WSL into user/oneblue/container-events 2025-12-08 16:42:25 -08:00
Blue
2c88377476 Add headers 2025-12-08 16:40:47 -08:00
Blue
6cb910a3cf
Merge branch 'feature/wsl-for-apps' into user/oneblue/container-events 2025-12-09 00:32:23 +00:00
Blue
cba1f6a687 Prepare for review 2025-12-08 16:32:03 -08:00
Blue
0460b6455a Update tests 2025-12-08 16:25:48 -08:00
Blue
de289f4c83 Disable port tests 2025-12-08 15:34:10 -08:00
beena352
c7f915e0fd
Merge pull request #13817 from beena352/user/beenachauhan/wsladiag-v2
WSLA: Add wsladiag tool and improve session enumeration (ListSessions + display name fix)
2025-12-08 08:17:22 -08:00
beena352
f54b4ef039
Merge branch 'feature/wsl-for-apps' into user/beenachauhan/wsladiag-v2 2025-12-05 23:46:21 -08:00
Beena352
0bdbc3fe55 WSLA session updates and CMake code fix 2025-12-05 23:37:45 -08:00
Blue
22bc01dcb3 Save state 2025-12-05 18:16:45 -08:00
Blue
cdbe1d2204 Save state 2025-12-05 16:44:57 -08:00
Ben Hillis
403215aad5
WSLA: restore console mode when wsl.exe --wsla exits (#13839)
Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
2025-12-05 16:31:09 -08:00
Blue
4c20e2c4e9
Implement container state management (#13821)
* Implement CreateContainer method

* Build fixes

* Implement CreateContainer method

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

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

* Fix nerdctl host networking parameter

* Prototype CreateContainer()

* Format

* Format

* Start writing tests

* Fix various issues

* Add new files

* Test cleanup

* Test cleanup

* Prepare for PR

* Fix ARM build

* Add copyright header

* Update cmakelists.txt

* Use ifdefs

* Format

* ifdef ARM64

* Install the test .vhd in the MSI

* Update the stdin test

* Format

* Refactor the session creation logic to match the new WSLA API

* Prepare for review

* Apply PR feedback

* Use early return

* Save state

* Implement container state management

* Format

* Implement open

* Implement Delete() and proper sync logic

* Format

* Handle nerdctl inspect failures

* Format

* Fix logic error in poll

* Format

---------

Co-authored-by: Pooja Trivedi <trivedipooja@microsoft.com>
Co-authored-by: Pooja Trivedi <poojatrivedi@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-05 15:33:44 -08:00
Beena352
12f12c41c2 Update WSLASession header 2025-12-05 11:39:12 -08:00
Beena352
692faed78e Merge upstream WSLA changes and restore session ID support 2025-12-05 10:26:40 -08:00
beena352
b46de5880d
Merge branch 'feature/wsl-for-apps' into user/beenachauhan/wsladiag-v2 2025-12-05 02:45:07 -08:00
Pooja Trivedi
2e8479a552
Add a utility Wait() method with timeout to WSLAProcessLauncher (#13831)
Co-authored-by: Pooja Trivedi <trivedipooja@microsoft.com>
2025-12-04 21:18:29 -05:00
Blue
844acd07d5
Refactor the session creation logic to match the new API (#13814)
* Implement CreateContainer method

* Build fixes

* Implement CreateContainer method

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

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

* Fix nerdctl host networking parameter

* Prototype CreateContainer()

* Format

* Format

* Start writing tests

* Fix various issues

* Add new files

* Test cleanup

* Test cleanup

* Prepare for PR

* Fix ARM build

* Add copyright header

* Update cmakelists.txt

* Use ifdefs

* Format

* ifdef ARM64

* Install the test .vhd in the MSI

* Update the stdin test

* Format

* Refactor the session creation logic to match the new WSLA API

* Prepare for review

* Apply PR feedback

* Use early return

---------

Co-authored-by: Pooja Trivedi <trivedipooja@microsoft.com>
Co-authored-by: Pooja Trivedi <poojatrivedi@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-04 03:17:15 +00:00
Beena352
4d0492ae58 Fix formatting and whitespace issues in WSLA and wsladiag sources 2025-12-03 18:54:48 -08:00
Blue
1266d8b56a
Enable the CreateContainer stdin test (#13818)
* Enable the CreateContainer stdin test

* Prepare for review
2025-12-03 16:01:00 -08:00
Ben Hillis
1ef0c45e3f
WSLA: Add WSLA-specific class registration for virtio networking (#13819)
Update wsldevicehost nuget package with new version that contains the new class ID

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
2025-12-03 15:59:37 -08:00
Beena352
650e460d4a Apply review feedback: remove empty-name block and use THROW_HR_IF 2025-12-02 17:43:25 -08:00
Beena352
02dc0e21c8 Add wsladiag tool and WSLA improvements 2025-12-02 17:24:58 -08:00
Blue
2a41fe20e3
Initial implementation for CreateContainer() (#13791)
* Implement CreateContainer method

* Build fixes

* Implement CreateContainer method

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

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

* Fix nerdctl host networking parameter

* Prototype CreateContainer()

* Format

* Format

* Start writing tests

* Fix various issues

* Add new files

* Test cleanup

* Test cleanup

* Prepare for PR

* Fix ARM build

* Add copyright header

* Update cmakelists.txt

* Use ifdefs

* Format

* ifdef ARM64

* Install the test .vhd in the MSI

* Update the stdin test

* Format

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

Co-authored-by: Pooja Trivedi <poojatrivedi@gmail.com>

* Update src/windows/wslaservice/inc/wslaservice.idl

Co-authored-by: Pooja Trivedi <poojatrivedi@gmail.com>

* Update test/windows/WSLATests.cpp

Co-authored-by: Pooja Trivedi <poojatrivedi@gmail.com>

* Update src/windows/common/WSLAContainerLauncher.cpp

Co-authored-by: Pooja Trivedi <poojatrivedi@gmail.com>

* Apply PR feedback

* Format

---------

Co-authored-by: Pooja Trivedi <trivedipooja@microsoft.com>
Co-authored-by: Pooja Trivedi <poojatrivedi@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-02 14:40:16 -08:00
Ben Hillis
2ab516edf4
Merge pull request #13764 from microsoft/user/benhill/wsla_virtio_proxy
WSLA: Implement virtioproxy networking mode
2025-12-01 16:10:09 -08:00
Ben Hillis
60a91b1ac3 pr feedback 2025-12-01 13:19:27 -08:00
Ben Hillis
03dae7bf8a WSLA: Implement viritoproxy networking mode
This change implements the VirtioProxy networking mode for WSLA.
This required moving the VirtioProxy and GnsChannel classes into the common library (with NatNetworking).

DNS tunneling is currently not supported with this networking mode, so an error is returned.
With this change I have updated the default networking move of 'wsl.exe --wsla' to also use
VirtioProxy networking mode.
2025-12-01 12:58:40 -08:00
Ben Hillis
3a176eddf8
Merge pull request #13807 from microsoft/user/benhill/merge_master
merge master -> feature/wsl-for-apps
2025-12-01 12:01:49 -08:00
Blue
8aab7bdc09
wsla: Fix incorrect call to EqualSid causing WSLAUserSession to always be created (#13789) 2025-12-01 11:19:32 -08:00
Ben Hillis
e8a0d62839 Remove duplicate GuestDeviceManager files. 2025-12-01 09:17:02 -08:00
Ben Hillis
3ef44d8027 Merge remote-tracking branch 'origin/master' into HEAD 2025-12-01 09:00:30 -08:00
Blue
71c87c211f
Localization change from build: 134886165 (#13802)
Co-authored-by: WSL localization <noreply@microsoft.com>
2025-12-01 08:33:25 -08:00
Ben Hillis
be82716c40
cleanup: move common functonality out of service exe (#13788)
Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
2025-11-26 15:50:42 -08:00
Blue
315cc27a5a
User/oneblue/initial tty size (#13786)
* Save state

* Pass in the terminal size when creating a WSLA process
2025-11-26 11:33:17 -08:00
Ben Hillis
ba90ee11fa
cleanup: remove invalid m_deviceHostSupport checks (#13787)
Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
2025-11-26 07:59:33 -08:00
Ben Hillis
256e637795
merge master -> feature/wsl-for-apps (#13785)
* wslsettings: allow OOBE window to close with escape key (#13686)

* wslsettings: allow OOBE windows to close with escape key

* fix memory leak

---------

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>

* Localization change from build: 133610492 (#13704)

Co-authored-by: WSL localization <noreply@microsoft.com>

* wslsettings: fix OOBE text truncation at 200% text scaling (#13693)

* wslsettings: fix OOBE text truncation at 200% text scaling

Add text scaling factor to window resize calculation and make hero image height responsive to text scaling. Increase minimum window size for better accessibility. Fix MAS 1.4.4 compliance for OOBE dialog.

* pr feedback

---------

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>

* wslsettings: add underlines to links in about page (#13703)

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>

* .clang-format: add InsertBraces: true and minor fix to FormatSource.ps1 (#13712)

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>

* Localization change from build: 134015316 (#13731)

Co-authored-by: WSL localization <noreply@microsoft.com>

* wslsettings: ensure selected setting is auto-expanded and selected (#13689)

* wslsettings: ensure selected setting is auto-selected

Implement keyboard focus management for SettingsExpander controls across settings pages. This resolves an accessibility issue reported internally.

* add asserts

---------

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>

* build: fix minor compiler errors when building with VS2026 (#13744)

* build: fix minor compiler errors when building with VS2026

* s

* use VS2022 for clang format and cross compiling

---------

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>

* chore(distributions): Almalinux auto-update - 20251119 12:04:35 (#13743)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Mask systemd-networkd-wait-online.service during boot (#13611)

* deps: update a number of NuGet packages to the latest available versions (#13728)

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>

* Notice change from build: 134267142 (#13751)

Co-authored-by: WSL notice <noreply@microsoft.com>

* Add *.slnx to .gitignore (#13754)

* Fix service crash when collecting a linux crash dump when maxCrashDumpCount is set to 0 (#13755)

* Fix service crash when collecting a linux crash dump when maxCrashDumpCount is set to 0

* Move the check inside the function

* cleanup: VirtioNetworking refactoring (#13760)

* cleanup: update VirtioNetworking class to not rely on the WslCoreConfig struct

* cleanup: simplify VirtioNetworking construction

* remove old constructor and other cleanup

* more minor cleanup

* string cleanup in HandleVirtioModifyOpenPorts

---------

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>

* cleanup: switch from Microsoft::WRL::ComPtr to wil::com_ptr (#13767)

* cleanup: switch from Microsoft::WRL::ComPtr to wil::com_ptr

* reformat

---------

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>

* chore(distributions): Almalinux auto-update - 20251124 17:13:02 (#13780)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Notice change from build: 134527933 (#13782)

Co-authored-by: WSL notice <noreply@microsoft.com>

* cleanup: VirtioNetworking refactoring to be more portable (#13783)

* cleanup: VirtioNetworking refactoring to be more portable

* more refactoring

* make m_guestDeviceManager private

---------

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>

---------

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
Co-authored-by: Blue <OneBlue@users.noreply.github.com>
Co-authored-by: WSL localization <noreply@microsoft.com>
Co-authored-by: AlmaLinux Autobot <107999298+almalinuxautobot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-26 02:19:42 +00:00
Ben Hillis
4207cc80bd
cleanup: VirtioNetworking refactoring to be more portable (#13783)
* cleanup: VirtioNetworking refactoring to be more portable

* more refactoring

* make m_guestDeviceManager private

---------

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
2025-11-25 16:40:36 -08:00
Blue
b0df225c51
Notice change from build: 134527933 (#13782)
Co-authored-by: WSL notice <noreply@microsoft.com>
2025-11-24 14:33:51 -08:00
AlmaLinux Autobot
722eecafba
chore(distributions): Almalinux auto-update - 20251124 17:13:02 (#13780)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-24 13:01:54 -08:00
Ben Hillis
66904342a5
cleanup: switch from Microsoft::WRL::ComPtr to wil::com_ptr (#13767)
* cleanup: switch from Microsoft::WRL::ComPtr to wil::com_ptr

* reformat

---------

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
2025-11-24 12:47:22 -08:00
Blue
47117005db
Return ERROR_INVALID_STATE if CreateLinuxProcess is invoked while m_processExitThread is not running (#13765) 2025-11-24 11:32:34 -08:00
Ben Hillis
955cb899ea
cleanup: remove old WSLA* files from the WSL service folder (#13763)
Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
2025-11-22 01:07:00 +00:00
Ben Hillis
4017d23ac9
wsla: add support for ARM64 (#13762)
Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
2025-11-21 17:01:41 -08:00
Ben Hillis
d9c69a50ab
cleanup: VirtioNetworking refactoring (#13760)
* cleanup: update VirtioNetworking class to not rely on the WslCoreConfig struct

* cleanup: simplify VirtioNetworking construction

* remove old constructor and other cleanup

* more minor cleanup

* string cleanup in HandleVirtioModifyOpenPorts

---------

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
2025-11-21 16:50:26 -08:00
Ben Hillis
e702db9d5c
Fix midl warning around WSLA_CONTAINER strings being const (#13759)
Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
2025-11-21 13:34:05 -08:00
Blue
9a0f8251b8
Implement WSLASession::FormatVirtualDisk (#13753)
* Implement WSLASession::FormatVirtualDisk

* Require absolute paths

* Merge
2025-11-21 11:15:45 -08:00