664 Commits

Author SHA1 Message Date
Blue
a592bed469 Format 2025-12-04 13:01:30 -08:00
Blue
c3b561c35c Fix logic error in poll 2025-12-04 13:00:04 -08:00
Blue
5091458e0f Format 2025-12-04 00:59:48 -08:00
Blue
4fd4685243 Handle nerdctl inspect failures 2025-12-04 00:58:52 -08:00
Blue
51abec24ec Merge remote-tracking branch 'origin/feature/wsl-for-apps' into user/oneblue/container-state 2025-12-04 00:54:33 -08: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
Blue
f0c5ddfa94 Format 2025-12-03 19:07:27 -08:00
Blue
1650cfe127 Implement Delete() and proper sync logic 2025-12-03 19:06:52 -08:00
Blue
f7c8778c83 Implement open 2025-12-03 17:13:41 -08:00
Blue
02abdcd90e Format 2025-12-03 16:08:48 -08:00
Blue
b64ec8a8c1 Merge remote-tracking branch 'origin/feature/wsl-for-apps' into user/oneblue/container-state 2025-12-03 16:08:37 -08:00
Blue
49462adfb9 Implement container state management 2025-12-03 16:07:06 -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
Blue
c826c20c8d Save state 2025-12-03 15:12:48 -08:00
Blue
c69c83b0ab Use early return 2025-12-03 12:58:34 -08:00
Blue
f8e2119aa6 Apply PR feedback 2025-12-03 12:05:09 -08:00
Blue
7284d8e988 Prepare for review 2025-12-02 15:10:58 -08:00
Blue
251a5bba8b Merge 2025-12-02 15:04:32 -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
Blue
b7ff00b73b Refactor the session creation logic to match the new WSLA API 2025-12-01 18:35:42 -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
Blue
dcc0f5f2bd Merge branch 'user/oneblue/create-container' of https://github.com/microsoft/WSL into user/oneblue/create-container 2025-12-01 14:23:03 -08:00
Blue
70ac182edb Format 2025-12-01 14:20:09 -08:00
Blue
0760be6bec Update the stdin test 2025-12-01 14:19:57 -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
Blue
e786943e88
Merge branch 'feature/wsl-for-apps' into user/oneblue/create-container 2025-12-01 20:07:40 +00: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
8d9e9cb2d1 Install the test .vhd in the MSI 2025-12-01 11:49:35 -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
Blue
9c5ed51502 ifdef ARM64 2025-11-26 16:07:53 -08:00
Blue
52aa7f8759 Format 2025-11-26 16:06:24 -08:00
Blue
2c28e536b7 Use ifdefs 2025-11-26 16:06:11 -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
08d5929e06 Update cmakelists.txt 2025-11-26 15:42:58 -08:00
Blue
ee948d514a Add copyright header 2025-11-26 15:28:41 -08:00
Blue
a4ed4b28c6 Fix ARM build 2025-11-26 15:12:32 -08:00
Blue
987b1b73f4 Prepare for PR 2025-11-26 14:52:37 -08:00
Blue
e4822ba4fe Merge remote-tracking branch 'origin/feature/wsl-for-apps' into user/ptrivedi/create-cont 2025-11-26 13:59:42 -08:00
Blue
0eda07f0ef Test cleanup 2025-11-26 12:31:42 -08:00
Blue
292707e3ac Test cleanup 2025-11-26 12:29:11 -08:00
Blue
9dd34f230d Add new files 2025-11-26 11:36:46 -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
Blue
2a4f8d0bdd Fix various issues 2025-11-25 16:57:45 -08:00