Claude Desktop 会启动一个虚拟机,且无法将其停止。
Claude Desktop spawns 1.8 GB Hyper-V VM on every launch, even for chat-only use

原始链接: https://github.com/anthropics/claude-code/issues/29045

**摘要:Claude Desktop 内存占用漏洞** Windows 版 Claude Desktop 应用程序存在严重的资源占用漏洞,即在启动时会无条件启动一个 Hyper-V 虚拟机 (Vmmem),占用约 1.8 GB 内存。即便用户仅进行简单的聊天操作,且无需使用 Agent 或“Cowork”功能时,该虚拟机依然会运行。 **主要问题:** * **资源效率低下:** 在 16 GB 内存的系统中,该开销会占用超过 11% 的可用内存,导致整个系统运行缓慢。 * **持续运行的虚拟机:** 即使在清理了数千个陈旧的会话文件后,该虚拟机仍会通过 `vmcompute` 服务自动启动。 * **初始化错误:** 日志显示,由于应用程序尝试初始化虚拟基础架构,导致了重复的 JSON 文档错误 (`0xC037010D`)。 **请求修复:** * **按需初始化:** 应仅在用户明确触发 Agent 或 Cowork 会话时,才启动虚拟机基础架构。 * **清理机制:** 实现陈旧会话文件的自动删除,以防止目录臃肿。 * **平稳降级:** 应用程序应在无需活动虚拟化服务的情况下,支持聊天功能。 **当前临时解决方案:** 用户必须彻底禁用 `VirtualMachinePlatform` 功能,或者在每次启动应用程序后手动终止 `vmwp` 和 `vmcompute` 进程。

Hacker News | 最新 | 过往 | 评论 | 提问 | 展示 | 招聘 | 提交 | 登录 Claude Desktop 会自动启动一个无法停止的虚拟机 (github.com/anthropics) 12 点 | tonyrice 50 分钟前 | 隐藏 | 过往 | 收藏 | 3 条评论 tom1337 2 分钟前 | 下一条 [-] 我不明白为什么 Cowork 不能简单地设置为选配。它还会安装一个你无法移除的约 10GB 的虚拟机包 https://www.reddit.com/r/ClaudeAI/comments/1rlc71n/claude_de... 回复 JanSolo 8 分钟前 | 上一条 | 下一条 [-] 它开始有自我意识了!快,锁住核代码! 回复 Rastonbury 5 分钟前 | 上一条 | 下一条 [-] 它占用了我 12GB 的空间 回复 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索:
相关文章

原文

Preflight Checklist

What's Wrong?

[BUG] Claude Desktop spawns 1.8 GB Hyper-V VM on every launch, even for chat-only use
Environment

Note: This issue is specific to the Claude Desktop app (Windows), not Claude Code CLI.

OS: Windows 11 Pro 25H2, Build 26200.7840
Hardware: Razer Blade 15 Base Model (Late 2020), i7-10750H, 16 GB RAM
Claude Desktop: Latest version as of 2/26/2026
Windows Features: VirtualMachinePlatform enabled; Hyper-V, WSL, Docker, and Windows Sandbox are all disabled
Core Isolation / Memory Integrity: Off

Summary
The Claude Desktop app launches a Hyper-V virtual machine (Vmmem) consuming approximately 1.8 GB of RAM every time it starts — even when the user only needs chat functionality and has no intention of using Cowork or agent mode. On a 16 GB laptop, this represents over 11% of total memory consumed by infrastructure that isn't being used.
Steps to Reproduce

Install Claude Desktop on Windows 11 with VirtualMachinePlatform enabled
Use Cowork/agent mode at least once (this creates session files)
Close and reopen Claude Desktop — or simply reboot the machine
Open Task Manager and observe Vmmem consuming ~1,800 MB

What Happens
On every launch, the Claude Desktop app triggers the Hyper-V Host Compute Service (vmcompute) via an RPC interface event, which spawns a vmwp.exe process hosting a full virtual machine. This VM appears as "Vmmem" in Task Manager at approximately 1,796–1,846 MB.
The Hyper-V Compute Admin event log shows repeated errors:
"The specified property query is invalid: The virtual machine or container JSON document is invalid. (0xC037010D, 'Invalid JSON document '$'')"
These errors have been occurring since at least 2/19/2026, triggered on every boot and app launch.
Root Cause Investigation
Through extensive PowerShell diagnostics, we confirmed:

WSL is not installed — wsl --shutdown returns "not installed"
Hyper-V management tools are not installed — Get-VM fails
Docker is not installed — no Docker processes found
Windows Sandbox is disabled
Core Isolation / Memory Integrity is off (and was off before this issue started)
VirtualizationBasedSecurityStatus shows 2 (running), likely due to LSA Protection being enabled — but this alone doesn't explain the 1.8 GB VM
The only enabled virtualization feature is VirtualMachinePlatform

The vmcompute service is set to Manual start but is triggered at boot by an RPC interface event (GUID: bc90d167-9470-4139-a9ba-be0bbbf5b74d). The parent process is services.exe (PID 1400), confirming it's a service trigger, not a user-initiated launch.
We found 2,689 stale session files in %APPDATA%\Claude\local-agent-mode-sessions\ — all from previous Cowork sessions that were never cleaned up. Session names follow Docker-style naming (e.g., "nifty-dreamy-volta", "tender-vigilant-goodall", "admiring-elegant-johnson"). Even after deleting all 2,689 files and killing vmcompute/vmwp, simply reopening the Claude Desktop app immediately respawned the VM and the 1.8 GB Vmmem process.
Impact
On a 16 GB system, this bug causes memory usage to jump from ~50% to ~62% at idle before the user does anything. Combined with normal application load, this pushes total usage to 70–75%, causing system sluggishness and forcing the user to manually kill VM processes after every launch.
Expected Behavior

The Claude Desktop app should not spawn a VM for chat-only sessions
If Cowork infrastructure is needed, it should initialize on demand — only when the user actually starts a Cowork/agent session
Stale session files from previous Cowork sessions should be cleaned up automatically, not accumulate indefinitely (2,689 files in our case)
The app should fall back to chat-only mode if VM initialization fails or is unnecessary, rather than unconditionally starting VM infrastructure

Current Workaround
The only reliable workaround is to disable VirtualMachinePlatform entirely:
powershellDisable-WindowsOptionalFeature -Online -FeatureName "VirtualMachinePlatform" -NoRestart
This prevents the VM from launching but also disables Cowork functionality. Alternatively, the user can kill the VM processes after every launch:
powershellStop-Process -Name vmwp -Force
Stop-Process -Name vmcompute -Force
Chat functionality continues to work normally after killing these processes.
Request
Please modify the Claude Desktop app so that:

VM/container infrastructure only initializes when Cowork or agent mode is actively requested
Old session data is cleaned up automatically after sessions end
The app gracefully handles the absence of VM infrastructure without degraded chat performance

What Should Happen?

The Claude Desktop app should not spawn a Hyper-V VM (Vmmem, ~1.8 GB RAM) when launching for chat-only use. VM/container infrastructure should only initialize when the user actively starts a Cowork or agent session. Stale session files should be cleaned up automatically after sessions end.

Error Messages/Logs

Hyper-V Compute Admin log shows repeated errors on every boot:
"The specified property query is invalid: The virtual machine or container JSON document is invalid. (0xC037010D, 'Invalid JSON document '$'')"

Steps to Reproduce

  1. Install Claude Desktop on Windows 11 with VirtualMachinePlatform enabled
  2. Use Cowork at least once
  3. Close and reopen Claude Desktop (or reboot)
  4. Observe Vmmem in Task Manager consuming ~1,800 MB at 0% CPU

Claude Model

Not sure / Multiple models

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

Claude Desktop (Windows) latest as of 2/26/2026

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

See detailed bug report in description above.

Image
联系我们 contact @ memedata.com