Skip to content

Pre-check: destination is not compressed #23

Open
@Kage-Yami

Description

@Kage-Yami

Describe the bug
If the destination import directory is marked as "compressed", the import stage will fail due to .vhdx files not being compressable.

Please add terminal output if possible:

jdsmi@YAMI ❯ ~\dev\scripts ❯
❯ .\Move-WSL.ps1
Getting distros...
Select distro to move:
1: docker-desktop
2: Arch
3: docker-desktop-data
1
Enter WSL target directory:
F:\docker\
Move docker-desktop to "F:\docker"? (Y|n): Y
Exporting VHDX to "F:\docker\docker-desktop.tar" ...
Unregistering WSL ...
Importing docker-desktop from F:\docker...
The requested operation could not be completed due to a virtual disk system limitation.  Virtual hard disk files must be uncompressed and unencrypted and must not be sparse.
Write-Error: Import failed. Distro not found. Export file at F:\docker\docker-desktop.tar

Disabled compression on the destination folder.

⨯ jdsmi@YAMI ❯ ~\dev\scripts ❯
❯ wsl --import docker-desktop F:\docker F:\docker\docker-desktop.tar
jdsmi@YAMI ❯ ~\dev\scripts ❯
❯

Script version:

  • Bash
  • Powershell
  • Batch

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions