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 --export failed #5460

Closed
cool-delete opened this issue Jun 22, 2020 · 2 comments
Closed

wsl --export failed #5460

cool-delete opened this issue Jun 22, 2020 · 2 comments

Comments

@cool-delete
Copy link

cool-delete commented Jun 22, 2020

Environment

Windows build number:Platform ServicePack Version      VersionString
-------- ----------- -------      -------------
 Win32NT             10.0.19041.0 Microsoft Windows NT 10.0.19041.0

Distribution version: [Ubuntu Release:        20.04]
wsl2

Steps to reproduce

after run LxRunOffline move -n Ubuntu-20.04 -d F:\wsl\docker
i type wsl --export Ubuntu20.04 F:\wsl
return access Deni

Expected behavior

removed to other computer

@licanhua
Copy link
Collaborator

I guess F:\wsl is a directory, but --export requires file name, so the correct command should be like this:

wsl --export Ubuntu-20.04 F:\wsl\abc.tar

Another possible reason is that you don't have permission to create F:\wsl file

@cool-delete
Copy link
Author

I guess F:\wsl is a directory, but --export requires file name, so the correct command should be like this:

wsl --export Ubuntu-20.04 F:\wsl\abc.tar

Another possible reason is that you don't have permission to create F:\wsl file

yes! I forgot the suffix,Thanks for the trick!

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

No branches or pull requests

3 participants