Objlab
← News
Linguaggi e compilatori

Claude Desktop avvia una macchina virtuale senza che sia possibile arrestarla

Sintesi redazionale: URL dell'articolo: https://github.com/anthropics/claude-code/issues/29045 URL dei commenti: https://news.ycombinator.com/item?id=48479452 Punteggio: 94 # Commenti: 61. Fonte originale: https://github.com/anthropics/claude-code/issues/29045

<p>### Preflight Checklist</p><p>### What&#x27;s Wrong?</p><p>[BUG] Claude Desktop spawns 1.8 GB Hyper-V VM on every launch, even for chat-only use</p><p>Environment</p><p>Note: This issue is specific to the Claude Desktop app (Windows), not Claude Code CLI.</p><p>OS: Windows 11 Pro 25H2, Build 26200.7840</p><p>Hardware: Razer Blade 15 Base Model (Late 2020), i7-10750H, 16 GB RAM</p><p>Claude Desktop: Latest version as of 2/26/2026</p><p>Windows Features: VirtualMachinePlatform enabled; Hyper-V, WSL, Docker, and Windows Sandbox are all disabled</p><p>Core Isolation / Memory Integrity: Off</p><p>Summary</p><p>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&#x27;t being used.</p><p>Steps to Reproduce</p><p>Install Claude Desktop on Windows 11 with VirtualMachinePlatform enabled</p><p>Use Cowork/agent mode at least once (this creates session files)</p><p>Close and reopen Claude Desktop — or simply reboot the machine</p><p>Open Task Manager and observe Vmmem consuming ~1,800 MB</p><p>What Happens</p><p>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 &quot;Vmmem&quot; in Task Manager at approximately 1,796–1,846 MB.</p><p>The Hyper-V Compute Admin event log shows repeated errors:</p><p>&quot;The specified property query is invalid: The virtual machine or container JSON document is invalid. (0xC037010D, &#x27;Invalid JSON document &#x27;$&#x27;&#x27;)&quot;</p><p>These errors have been occurring since at least 2/19/2026, triggered on every boot and app launch.</p><p>Root Cause Investigation</p><p>Through extensive PowerShell diagnostics, we confirmed:</p><p>WSL is not installed — wsl --shutdown returns &quot;not installed&quot;</p><p>Hyper-V management tools are not installed — Get-VM fails</p><p>Docker is not installed — no Docker processes found</p><p>Windows Sandbox is disabled</p><p>Core Isolation / Memory Integrity is off (and was off before this issue started)</p><p>VirtualizationBasedSecurityStatus shows 2 (running), likely due to LSA Protection being enabled — but this alone doesn&#x27;t explain the 1.8 GB VM</p><p>The only enabled virtualization feature is VirtualMachinePlatform</p><p>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&#x27;s a service trigger, not a user-initiated launch.</p><p>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., &quot;nifty-dreamy-volta&quot;, &quot;tender-vigilant-goodall&quot;, &quot;admiring-elegant-johnson&quot;). 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.</p><p>Impact</p><p>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.</p><p>Expected Behavior</p><p>The Claude Desktop app should not spawn a VM for chat-only sessions</p><p>If Cowork infrastructure is needed, it should initialize on demand — only when the user actually starts a Cowork/agent session</p><p>Stale session files from previous Cowork sessions should be cleaned up automatically, not accumulate indefinitely (2,689 files in our case)</p><p>The app should fall back to chat-only mode if VM initialization fails or is unnecessary, rather than unconditionally starting VM infrastructure</p><p>Current Workaround</p><p>The only reliable workaround is to disable VirtualMachinePlatform entirely:</p><p>powershellDisable-WindowsOptionalFeature -Online -FeatureName &quot;VirtualMachinePlatform&quot; -NoRestart</p><p>This prevents the VM from launching but also disables Cowork functionality. Alternatively, the user can kill the VM processes after every launch:</p><p>powershellStop-Process -Name vmwp -Force</p><p>Stop-Process -Name vmcompute -Force</p><p>Chat functionality continues to work normally after killing these processes.</p><p>Request</p><p>Please modify the Claude Desktop app so that:</p><p>VM/container infrastructure only initializes when Cowork or agent mode is actively requested</p><p>Old session data is cleaned up automatically after sessions end</p><p>The app gracefully handles the absence of VM infrastructure without degraded chat performance</p><p>### What Should Happen?</p><p>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.</p><p>### Error Messages/Logs</p><p>Hyper-V Compute Admin log shows repeated errors on every boot:<br>&quot;The specified property query is invalid: The virtual machine or container JSON document is invalid. (0xC037010D, &#x27;Invalid JSON document &#x27;$&#x27;&#x27;)&quot;</p><p>### Steps to Reproduce</p><p>- Install Claude Desktop on Windows 11 with VirtualMachinePlatform enabled<br>- Use Cowork at least once<br>- Close and reopen Claude Desktop (or reboot)<br>- Observe Vmmem in Task Manager consuming ~1,800 MB at 0% CPU</p><p>### Claude Model</p><p>Not sure / Multiple models</p><p>### Is this a regression?</p><p>I don&#x27;t know</p><p>### Last Working Version</p><p>*No response*</p><p>### Claude Code Version</p><p>Claude Desktop (Windows) latest as of 2/26/2026</p><p>### Platform</p><p>Anthropic API</p><p>### Operating System</p><p>Windows</p><p>### Terminal/Shell</p><p>PowerShell</p><p>### Additional Information</p><p>See detailed bug report in description above.</p><p>## Preflight Checklist</p><p>## What&#x27;s Wrong?</p><p>[BUG] Claude Desktop spawns 1.8 GB Hyper-V VM on every launch, even for chat-only use</p><p>Environment</p><p>Note: This issue is specific to the Claude Desktop app (Windows), not Claude Code CLI.</p><p>OS: Windows 11 Pro 25H2, Build 26200.7840</p><p>Hardware: Razer Blade 15 Base Model (Late 2020), i7-10750H, 16 GB RAM</p><p>Claude Desktop: Latest version as of 2/26/2026</p><p>Windows Features: VirtualMachinePlatform enabled; Hyper-V, WSL, Docker, and Windows Sandbox are all disabled</p><p>Core Isolation / Memory Integrity: Off</p><p>Summary</p><p>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&#x27;t being used.</p><p>Steps to Reproduce</p><p>Install Claude Desktop on Windows 11 with VirtualMachinePlatform enabled</p><p>Use Cowork/agent mode at least once (this creates session files)</p><p>Close and reopen Claude Desktop — or simply reboot the machine</p><p>Open Task Manager and observe Vmmem consuming ~1,800 MB</p><p>What Happens</p><p>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 &quot;Vmmem&quot; in Task Manager at approximately 1,796–1,846 MB.</p><p>The Hyper-V Compute Admin event log shows repeated errors:</p><p>&quot;The specified property query is invalid: The virtual machine or container JSON document is invalid. (0xC037010D, &#x27;Invalid JSON document &#x27;$&#x27;&#x27;)&quot;</p><p>These errors have been occurring since at least 2/19/2026, triggered on every boot and app launch.</p><p>Root Cause Investigation</p><p>Through extensive PowerShell diagnostics, we confirmed:</p><p>WSL is not installed — wsl --shutdown returns &quot;not installed&quot;</p><p>Hyper-V management tools are not installed — Get-VM fails</p><p>Docker is not installed — no Docker processes found</p><p>Windows Sandbox is disabled</p><p>Core Isolation / Memory Integrity is off (and was off before this issue started)</p><p>VirtualizationBasedSecurityStatus shows 2 (running), likely due to LSA Protection being enabled — but this alone doesn&#x27;t explain the 1.8 GB VM</p><p>The only enabled virtualization feature is VirtualMachinePlatform</p><p>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&#x27;s a service trigger, not a user-initiated launch.</p><p>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., &quot;nifty-dreamy-volta&quot;, &quot;tender-vigilant-goodall&quot;, &quot;admiring-elegant-johnson&quot;). 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.</p><p>Impact</p><p>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.</p><p>Expected Behavior</p><p>The Claude Desktop app should not spawn a VM for chat-only sessions</p><p>If Cowork infrastructure is needed, it should initialize on demand — only when the user actually starts a Cowork/agent session</p><p>Stale session files from previous Cowork sessions should be cleaned up automatically, not accumulate indefinitely (2,689 files in our case)</p><p>The app should fall back to chat-only mode if VM initialization fails or is unnecessary, rather than unconditionally starting VM infrastructure</p><p>Current Workaround</p><p>The only reliable workaround is to disable VirtualMachinePlatform entirely:</p><p>powershellDisable-WindowsOptionalFeature -Online -FeatureName &quot;VirtualMachinePlatform&quot; -NoRestart</p><p>This prevents the VM from launching but also disables Cowork functionality. Alternatively, the user can kill the VM processes after every launch:</p><p>powershellStop-Process -Name vmwp -Force</p><p>Stop-Process -Name vmcompute -Force</p><p>Chat functionality continues to work normally after killing these processes.</p><p>Request</p><p>Please modify the Claude Desktop app so that:</p><p>VM/container infrastructure only initializes when Cowork or agent mode is actively requested</p><p>Old session data is cleaned up automatically after sessions end</p><p>The app gracefully handles the absence of VM infrastructure without degraded chat performance</p><p>## What Should Happen?</p><p>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.</p><p>## Error Messages/Logs</p><p>`Hyper-V Compute Admin log shows repeated errors on every boot: &quot;The specified property query is invalid: The virtual machine or container JSON document is invalid. (0xC037010D, &#x27;Invalid JSON document &#x27;$&#x27;&#x27;)&quot;`</p><p>## Steps to Reproduce</p><p>## Claude Model</p><p>Not sure / Multiple models</p><p>## Is this a regression?</p><p>I don&#x27;t know</p><p>## Last Working Version</p><p>No response## Claude Code Version</p><p>Claude Desktop (Windows) latest as of 2/26/2026</p><p>## Platform</p><p>Anthropic API</p><p>## Operating System</p><p>Windows</p><p>## Terminal/Shell</p><p>PowerShell</p><p>## Additional Information</p><p>See detailed bug report in description above.</p>