WSL: WSL Export Failure. Error code: Wsl/Service/WSL_E_EXPORT_FAILED
Version
Microsoft Windows [Version 10.0.22621.963]
WSL Version
- WSL 2
- WSL 1
Kernel Version
5.15.79.1
Distro Version
Ubuntu 22.04
Other Software
No response
Repro Steps
wsl --shutdown
wsl --export Ubuntu D:\Extra\wsl\20221220
Expected Behavior
WSL Exports a backup of itself into 20221220 file.
Actual Behavior
Export fails within 10s of seconds.
Output file is created but the size does not change during this time.
Different output file names were tested including 20221220.tar and 20221220.tar.gz.
Export in progress, this may take a few minutes. Exporting the distribution failed. Error code: Wsl/Service/WSL_E_EXPORT_FAILED
Diagnostic Logs
No response
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 23
For anyone finding this via a search machineā¦
In my case, I experienced this error, when the temporary directory was on a drive with insufficient space for the exported tarball.