Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wsl --import reports Access Denied #5379

Closed
vjancik opened this issue Jun 10, 2020 · 3 comments
Closed

wsl --import reports Access Denied #5379

vjancik opened this issue Jun 10, 2020 · 3 comments

Comments

@vjancik
Copy link

vjancik commented Jun 10, 2020

Environment

Windows build number: 10.0.19041.0
Your Distribution version: both Ubuntu 18.04 and latest 20.04
Whether the issue is on WSL 2 and/or WSL 1: WSL2

Steps to reproduce

wsl --export Ubuntu-20.04 E:\Distros\ubuntu2004.tar
wsl --import Ubuntu2004 E:\Distros\ubuntu2004.tar E:\Distros\Ubuntu2004
or
wsl --import Ubuntu2004 .\ubuntu2004.tar C:\WSLTest

Expected behavior

WSL distro installs in specified directory and registers

Actual behavior

Commands reports Access denied.

Previous issues

#4451
MicrosoftDocs/WSL#412

Additional notes

The 18.04 distro has been used and the .tar file size is 12.8GB, in the production of that tar file vmmem process starts up and uses 13GB of memory at peak. 20.04 is only 1GB (empty), but both distros fail to import.

@0xbadfca11
Copy link

The command line arguments are in the wrong order.
https://docs.microsoft.com/en-us/windows/wsl/reference#arguments-for-managing-windows-subsystem-for-linux

@vjancik
Copy link
Author

vjancik commented Jun 10, 2020

That's what I get for copying commands from GitHub issues. Thank you.

@vjancik vjancik closed this as completed Jun 10, 2020
@AgentEnder
Copy link

Could this error messaging be improved? It would not be hard to check if the first arg points to a tar file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants