Skip to content

--move fails to update Registry #40716

@tusharsnx

Description

@tusharsnx

Windows Version

Microsoft Windows [Version 10.0.26220.8544]

WSL Version

2.7.7.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

6.18.26.1-1

Distro Version

Ubuntu 24.04

Other Software

No response

Repro Steps

Move the distro to a new location:

wsl --manage ubuntu-wp --move 'C:/wsl/ubuntu-wp'

Expected Behavior

The move operation succeeds and the distro is moved.

Actual Behavior

The move operation fails with the following message:

Access is denied.
Error code: Wsl/Service/MoveDistro/E_ACCESSDENIED

The distro's VHD is moved successfully, but the operation fails and the BasePath in Registry still points to the old location. Manually updating the BasePath makes the distro work from the new location.

Diagnostic Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions