Unable to stop instance on Windows
- Dominant language
- Go
- Stars
- 21.9k
- Forks
- 957
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 53
Description
### 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."
```
Contributor guide
Assessment
This issue has not been assessed yet.