587 Commits

Author SHA1 Message Date
Blue
5fe8aaa6f5 Pass in the terminal size when creating a WSLA process 2025-11-25 18:20:41 -08:00
Blue
6d388c19eb Save state 2025-11-25 17:52:02 -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
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
yao-msft
02e0e3b341
Add test wsla rootfs initialization in wsl client (#13723) 2025-11-21 09:19:47 -08:00
Blue
83be69040e
Fix minor build issues with VS 2026 (#13750)
* Merge latest master into feature/wsl-for-apps

* Fix minor build issues with VS 2026
2025-11-20 18:32:13 -08:00
Blue
dde52d075d
Merge latest master into feature/wsl-for-apps (#13749)
* Merge latest master into feature/wsl-for-apps

* Fix test failure

* Fix test failure

* Fix test failure

* Fix test failure
2025-11-20 16:51:08 -08:00
Blue
50bfffa09d
Add termination callback support and rethink ownership model to match the new API (#13747)
* Move TerminationCallback to the new API

* Remove support for UserSession level VirtualMachines and rework reference management

* Remove session reference from the VM
2025-11-20 15:17:39 -08:00
Kevin Vega
911a3aa758
Add crash dump collection (#13741) 2025-11-20 09:21:20 -08:00
Blue
f0d257f760
Remove the old API - phase 3: Move remaining flags out of WSLAApi.h (#13736)
* Remove the old API - phase 2

* Format
2025-11-18 15:05:39 -08:00
Blue
f24f9299fe
Remove the old API - phase 2: Remove the GPU methods (#13735)
* Remove the old wslaclient.dll based API and port tests

* Format

* Remove the old API - phase 2
2025-11-18 11:41:23 -08:00
Blue
5bd90738c0
Remove the old API - phase 1 (#13733)
* Remove the old wslaclient.dll based API and port tests

* Format
2025-11-17 15:09:55 -08:00
Blue
cce28f28aa
wsla: Add support for creating processes via WSLAProcessLauncher from the service (#13719)
* wsla: Add support for creating processes via WSLAProcessLauncher from the service

* Add new files

* Prepare for PR

* Remove duplicated method
2025-11-17 15:04:20 -08:00
Blue
966dd9819e
Add 'directory.build.targets' to .gitignore (#13727) 2025-11-17 11:18:55 -08:00
Blue
14257f99de
Move the logic to mount the root VHD & basic filesystems to the service (#13726) 2025-11-14 16:58:58 -08:00
Kevin Vega
d63fee34f2
Add vmrs collection (#13705)
* Add vmrs collection
2025-11-14 14:33:55 -08:00
Flor Chacón
de494011ae
Add targets to nuget package (#13718) 2025-11-14 13:12:02 -08:00
Blue
8eee7439b2
Restore the call to ApplyProcessMitigationPolicies in ServiceMain (#13715) 2025-11-14 12:31:57 -08:00
Blue
c1a3e6174c
Implement WSLAProcess (#13694)
* wsla: Prototype new process waitpid() model

* Save state

* Save state

* Save state

* Save state

* Save state

* Wire everything

* Format

* Save state

* Save state

* Redesign process launcher

* Port tests

* Port tests

* Move shell to new API

* Format

* Port more tests

* Add copyright header

* Prepare for PR

* Fix tests

* PR feedback

* Fix termination issue + add more negative tests

* Fix termination issue + add more negative tests

* Format
2025-11-13 18:10:00 -08:00
Blue
5585e4210b
wsla: Add service API definition and stub methods (#13659)
* wsla: Add service API definition

* Explicitely mark API's to be deleted in the future

* Add TODOs and session storage path

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

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

* Update comments

* PR feedback

* Use an object for containers

* Update API definition

* Add stub methods

---------

Co-authored-by: Pooja Trivedi <poojatrivedi@gmail.com>
2025-11-07 11:46:42 -08:00
Pooja Trivedi
b489a11b69
Add a --new-api temporary flag for WSLA debugging (#13684)
* Add a --new-api flag to WslClient tool
* When the flag is specified, the newly wired
  codepath for WSLASession creation is followed
* Existing mode of WSLAUserSession creating VM
  will temporarily exist parallely until proper
  scaffolding cleanup

Authored-by: Pooja Trivedi <trivedipooja@microsoft.com>
2025-11-06 14:32:38 -05:00
Pooja Trivedi
34e673fc20
WSLAUserSession and WSLASession changes (#13677)
* Add WSLASession creation and tracking in WSLAUserSession
* Wire up WSLASession to contain and create WSLAVirtualMachine

Co-authored-by: Pooja Trivedi <trivedipooja@microsoft.com>
2025-11-06 09:42:48 -05:00
Blue
26ceaa566d
Fix incorrect string formating in SocketChannel.h (#13680) 2025-11-05 17:52:16 -08:00
Pooja Trivedi
36bf9d4127
Add fstype parameter to WslClient tool (#13678)
Used to specify filesystem type for VHD mounting in VM
Default: ext4

Authored-by: Pooja Trivedi <trivedipooja@microsoft.com>
2025-11-05 17:09:03 -05:00
Ben Hillis
1c5afc41a4
Merge pull request #13679 from microsoft/user/benhill/merge_master_to_feature
Merge master -> feature/wsl-for-apps
2025-11-05 13:07:01 -08:00
Blue
a7ee103dc7
wsla: Create a dedicated ETL provider for wslaservice.exe (#13673) 2025-11-05 11:22:43 -08:00
Ben Hillis
14226f750c Merge remote-tracking branch 'origin/master' into feature/wsl-for-apps 2025-11-05 09:38:29 -08:00
Scott Bradnick
09c17eb6c6
Remove SLE15SP6; add SLE16.0 (#13647) 2025-11-04 15:56:49 -08:00
Blue
46db45c39a
Add a temporary flag to wsl.exe to create a WSLA shell (#13664)
* Add a temporary flag to wsl.exe to create a WSLA shell

* Improve some error paths

* Add dependency
2025-11-04 13:09:20 -08:00
Arch Linux Technical User
bafd381aec
archlinux: Release 2025.11.01.150831 (#13661)
This is an automated release [1].

[1] https://gitlab.archlinux.org/archlinux/archlinux-wsl/-/blob/main/.gitlab-ci.yml
2025-11-03 08:15:59 -08:00
Blue
2abbe8baf3
wsla: Update the CreateProcess logic to support allocating file descr… (#13655)
* wsla: Update the CreateProcess logic to support allocating file descriptors from the guest

* PR feedback
2025-11-01 01:49:25 +00:00
Blue
1a6cbe560b
Fix various issues with the interactive shell (#13634)
* Save state

* Save state

* Save state

* Save state

* Save state

* Save state

* Save state

* Save state

* Save state

* Cleanup for review

* Update ServiceMain.cpp comment

* Remove duplicated definitions from wslservice.idl

* poc: Prototype interactive shell improvments

* Format

* Merge

* Save state

* Correctly configure terminal

* Format

* PR feedback
2025-10-31 17:18:34 -07:00
Blue
8b62d5a662
Implement DNS tunelling support for WSLA (#13651) 2025-10-30 15:24:04 -07:00
AlmaLinux Autobot
d48ece45a4
chore(distributions): Almalinux auto-update - 20251030 17:08:25 (#13653)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-10-30 13:29:45 -07:00
Blue
ae4347d9df
Notice change from build: 132846777 (#13654)
Co-authored-by: WSL notice <noreply@microsoft.com>
2025-10-30 11:42:48 -07:00
Blue
64160a40f0
Make the sample WSL_POST_BUILD_COMMAND more resilient (#13652) 2025-10-30 10:25:03 -07:00
Jeremy Cline
fdfe1eb843
fedora: Add Fedora 43 to the distribution list (#13643)
Six months have gone by, so it's time for another Fedora release. In
addition to the general Fedora updates this release, the WSL image is
now properly suffixed.
2025-10-28 14:45:41 -07:00
Blue
cedbb94d36
Create structure for WSLASession COM class & implementation (#13638)
* Create structure for WSLASession COM class & implementation

* Fix COM security pointer

* Add missing files

* Add copyright header

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

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

---------

Co-authored-by: Pooja Trivedi <poojatrivedi@gmail.com>
2025-10-28 14:44:33 -07:00
Blue
296fe805b9
Localization change from build: 132491007 (#13639)
Co-authored-by: WSL localization <noreply@microsoft.com>
2025-10-25 12:09:22 -07:00
Blue
451a7e103a
wsla: Create wslaservice.exe (#13623)
* Save state

* Save state

* Save state

* Save state

* Save state

* Save state

* Save state

* Save state

* Save state

* Cleanup for review

* Update ServiceMain.cpp comment

* Remove duplicated definitions from wslservice.idl
2025-10-23 17:44:57 -07:00
Blue
3f24caaf73
Move wslaclient.dll under the 'Windows folder' (#13628) 2025-10-23 10:57:58 -07:00
Ben Hillis
a231b6b5f9
Fix WslDistributionConfig to not default-initialize FeatureFlags or NetworkingMode optional fields (#13629)
Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
2025-10-23 08:28:13 -07:00
Blue
2715a79fb4
Localization change from build: 132360042 (#13630)
Co-authored-by: WSL localization <noreply@microsoft.com>
2025-10-23 08:27:52 -07:00
Blue
3361736a3a
Localization change from build: 132310101 (#13627)
Co-authored-by: WSL localization <noreply@microsoft.com>
2025-10-22 10:42:21 -07:00
Blue
cccae113d7
Localization change from build: 132289123 (#13625)
Co-authored-by: WSL localization <noreply@microsoft.com>
2025-10-22 08:42:54 -07:00
Ben Hillis
9e9ef6f145
Fix edge cases around .vhd support (#13061)
* Fix edge cases around .vhd support

* PR feedback

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

* pr feedback

* remove unneeded scope exit in unit test

---------

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-21 17:00:47 -07:00
Blue
c6eecd90db
wsla: Add the wsla-team to codeowners (#13622) 2025-10-21 15:47:36 -07:00