Skip to content

Unable to stop instance on Windows #3736

@unsuman

Description

@unsuman

Description

On Windows, wsl2 external driver works perfect but with a caveat. While stopping the instance I get this:

time="2025-07-11T19:54:27+05:30" level=info msg="[hostagent] time="2025-07-11T19:54:27+05:30" level=error msg="Failed to check guest agent forwarding: rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: dial unix C:\\\\Users\\\\Ritik\\\\AppData\\\\Local\\\\Temp\\\\lima-driver-wsl2-2044.sock: connect: No connection could be made because the target machine actively refused it.\"""

And while removing forcefully it returns:

time="2025-07-11T19:54:53+05:30" level=fatal msg="failed to delete instance "wsl2": failed to remove "C:\\Users\\Ritik\\.lima\\wsl2": remove C:\Users\Ritik\.lima\wsl2\driver.stderr.log: The process cannot access the file because it is being used by another process."

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions