[BUG] [Cowork] Windows: sessiondata.vhdx not created + network diagnostics uses macOS commands
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Cowork on Windows fails to start with two distinct issues:
Issue 1: sessiondata.vhdx is never created during VM setup
The VM bundle downloads successfully (100% progress bar), but the sessiondata.vhdx file is never created. The VM then fails to start with:
HCS operation failed: failed to start VM: HcsWaitForOperationResult failed with HRESULT 0x80070002
"Die Anlage C:\Users\<user>\AppData\Roaming\Claude\vm_bundles\claudevm.bundle\sessiondata.vhdx wurde aufgrund eines Fehlers nicht gefunden"
The VM bundle directory contains:
initrd (175 MB)
rootfs.vhdx (9.4 GB)
smol-bin.vhdx (37 MB)
vmlinuz (14 MB)
.initrd.origin
.rootfs.vhdx.origin
.vmlinuz.origin
sessiondata.vhdx is missing. It is never generated during the setup process.
Manually creating the VHD via New-VHD -Path "...\sessiondata.vhdx" -SizeBytes 2GB -Dynamic resolves the missing file error but leads to Issue 2.
Issue 2: Network diagnostics uses macOS commands on Windows
After manually creating the sessiondata.vhdx, the VM boots but times out after 60 seconds. The cowork_vm_node.log reveals that the network diagnostics module is calling macOS-specific binaries on Windows:
[networkDiagnostics] === Comprehensive macOS Diagnostics ===
[networkDiagnostics] Failed to run /sbin/ifconfig: spawn /sbin/ifconfig ENOENT
[networkDiagnostics] Failed to run /usr/sbin/scutil: spawn /usr/sbin/scutil ENOENT
[networkDiagnostics] Failed to run /usr/bin/pgrep: spawn /usr/bin/pgrep ENOENT
[networkDiagnostics] Failed to run /usr/sbin/kextstat: spawn /usr/sbin/kextstat ENOENT
[networkDiagnostics] Failed to run /usr/bin/log: spawn /usr/bin/log ENOENT
The log literally says "Comprehensive macOS Diagnostics" while running on Windows. It appears the macOS network initialization code was shipped to Windows without platform-specific adaptation, which likely causes the VM networking to fail entirely.
What Should Happen?
sessiondata.vhdxshould be automatically created during the VM bundle setup on Windows (similar tosessiondata.imgon macOS).- Network diagnostics should use Windows commands (
ipconfig,Get-VpnConnection,Get-NetAdapter, etc.) instead of macOS commands (/sbin/ifconfig,/usr/sbin/scutil,/usr/sbin/kextstat). - The VM should successfully boot and establish a connection on Windows.
Error Messages/Logs
### Missing sessiondata.vhdx error:
HCS operation failed: failed to start VM: HcsWaitForOperationResult failed with HRESULT 0x80070002:
{"Error":-2147024894,"ErrorMessage":"Das System kann die angegebene Datei nicht finden.",
"ErrorEvents":[{"Message":"Die Anlage C:\Users\Mustafa\AppData\Roaming\Claude\vm_bundles\claudevm.bundle\sessiondata.vhdx wurde aufgrund eines Fehlers nicht gefunden"}]}
### macOS commands on Windows (from cowork_vm_node.log):
2026-02-11 12:42:27 [warn] [networkDiagnostics] Failed to detect VPN interfaces: Error: Failed to spawn /sbin/ifconfig: spawn /sbin/ifconfig ENOENT
2026-02-11 12:42:27 [warn] [networkDiagnostics] Failed to detect connected VPNs via scutil: Error: Failed to spawn /usr/sbin/scutil: spawn /usr/sbin/scutil ENOENT
2026-02-11 12:42:27 [info] [networkDiagnostics] === Comprehensive macOS Diagnostics ===
2026-02-11 12:42:27 [error] [VM:start] Startup failed: Error: VM connection timeout after 60 seconds
Steps to Reproduce
- Install Claude Desktop for Windows (v1.1.2685.0) with Cowork enabled
- Ensure Hyper-V is enabled and SVM Mode is active in BIOS
- Open Claude Desktop and switch to the Cowork tab
- Observe the VM bundle downloading to 100%
- VM fails to start —
sessiondata.vhdxis missing from the bundle directory - If
sessiondata.vhdxis manually created, VM boots but times out after 60 seconds due to failed network initialization
Claude Model
Opus
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
latest
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Other
Additional Information
Troubleshooting steps already performed:
- Deleted and re-downloaded
vm_bundlesdirectory multiple times - Reinstalled Claude Desktop
- Rebooted PC after enabling SVM Mode in BIOS
- Verified Hyper-V is enabled (
Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V→ State: Enabled) - Confirmed
systeminfoshows "Virtualisierung in Firmware aktiviert: Ja" (after BIOS change) - Installed Docker Desktop (no effect)
- Manually created
sessiondata.vhdxviaNew-VHD(resolved file-not-found error but led to connection timeout) - Verified no VPN or proxy interfering
The root cause appears to be that the Windows port of Cowork is incomplete — the VM setup pipeline doesn't create sessiondata.vhdx, and the network diagnostics module still references macOS-only binaries.
9 Comments
Found 1 possible duplicate issue:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
Can confirm this on Windows 11 Pro 25H2 (Build 26200), Claude Desktop 1.1.2685.0.
Same two issues as described here, plus an additional finding:
Issue 3: sandbox-helper mount failure after manual sessiondata.vhdx fix
After manually creating
sessiondata.vhdxviadiskpart, the VM boots and connects, but the Claude Code process inside the VM crashes immediately (~399ms) with:This suggests the sandbox mount layer also needs Windows-specific handling, not just the diagnostics module.
Full reproduction details and logs in #25275.
Confirming both issues on Windows 10 Pro
Environment:
---
Issue 1: Missing
sessiondata.vhdx— CONFIRMED & manually fixedSame error as OP:
The
sessiondata.vhdxfile was never created during bundle setup. Fixed manually with:Issue 2: macOS network diagnostics on Windows — CONFIRMED
After fixing
sessiondata.vhdx, the VM boots but times out after 60 seconds. Fromcowork_vm_node.log:The network diagnostics module is running macOS-only commands (
/sbin/ifconfig,/usr/sbin/scutil,/usr/sbin/kextstat) on Windows, all failing withENOENT. This confirms the macOS network initialization code was shipped to Windows without platform-specific adaptation.Summary
This is a third independent confirmation (after OP on Windows 11 and @Voider1337 on Windows 11 Pro 25H2) — now also reproduced on Windows 10 Pro. The Cowork VM on Windows is fundamentally broken due to missing
sessiondata.vhdxcreation and macOS-only network diagnostics code.Issue 3: EFS encryption on
claudevm.bundlefolder preventssmol-bin.vhdxcopy and VM bootEnvironment: Windows 11, Claude Desktop 1.1.2685.0 (Microsoft Store), Max plan
The app creates the
claudevm.bundlefolder with the EFS encryption attribute set. Runningcipheron the folder shows: "New files added to this directory will be encrypted" — even though the parent folders (Claude\,vm_bundles\) do not have this attribute. The app itself is setting it.This causes two failures:
copyfilefromWindowsApps\...\smol-bin.vhdxinto the bundle folder fails with "unknown error" because the destination inherits the encryption attribute, and the MSIX-sandboxed copy operation can't encrypt the file.smol-bin.vhdxinto the folder viarobocopy /COPY:D, Hyper-V cannot open it because it gets encrypted on arrival. HCS fails withHRESULT 0x80071772: "The specified file is encrypted and the user does not have the ability to decrypt it."Workaround (partial): After each failed setup attempt, without restarting Claude:
Plus manually creating
sessiondata.vhdxviadiskpart. However the app deletessmol-bin.vhdxon restart and re-applies the encryption attribute to the folder on each retry, making this unsustainable.Root cause: The app is creating the bundle directory with the EFS encryption flag. This may not reproduce on all systems — it likely depends on a Windows policy or user profile configuration that triggers EFS inheritance for new folders created by MSIX-packaged apps.
Same issue here — Windows 11 Pro, Claude 1.1.2998
Confirming the sessiondata.vhdx not created issue. After manually creating it via diskpart, the VM boots but cannot reach the API.
Steps tried:
Enabled full Hyper-V stack (Microsoft-Hyper-V-All)
Manually created sessiondata.vhdx via diskpart
Created NAT: New-NetNat -Name "CoworkNAT" -InternalIPInterfaceAddressPrefix "172.16.0.0/24"
Enabled IP forwarding on vEthernet (cowork-vm-nat)
Set DNS to 8.8.8.8/8.8.4.4 on the vEthernet interface
Disabled Windows Firewall and Avira antivirus
Reset HNS networks multiple times
Result: VM boots, SDK installs, but API reachability goes PROBABLY_UNREACHABLE → UNREACHABLE. Logs confirm macOS diagnostics commands (/sbin/ifconfig, /usr/sbin/scutil) being run on Windows. Forwarding and DNS settings do not persist across reboots.
confirm this issue on
Win 11 Home
version 25H2
OS Build 26200.7840
Merging into #24962
Update #3: SOLVED — 192.168.100.0/24 subnet workaround
After four days of troubleshooting, Cowork is now working on Windows 11 Pro (Surface Laptop 4). Sharing the full fix for others hitting this issue.
What Finally Worked
The root cause on my system was that the default 172.16.0.0/24 subnet used by Cowork is ghost-claimed by Windows internally when Hyper-V is enabled. It doesn't show up in
Get-NetNatbut still blocks NAT creation (returns "duplicate name exists on the network" error). Using an alternate subnet (192.168.100.0/24) avoids the conflict entirely.Credit to a Reddit post for this insight.
The Fix (Step by Step)
Prerequisites: Windows 11 Pro with Hyper-V enabled. If on Windows 11 Home, upgrade to Pro first ($130 CAD via Settings > System > Activation) and enable Hyper-V via
optionalfeatures.Step 1 — Shut down WSL if installed:
Step 2 — Restart your PC. Open PowerShell as Administrator before opening Claude or anything else.
Step 3 — Find the Cowork network adapter:
Note the
ifIndexvalue for thevEthernet (cowork-vm-vnet)adapter (not the CoworkNAT one if you have it).Step 4 — Assign an IP to the adapter:
Replace
YOUR_IFINDEXwith your actual ifIndex number.Step 5 — Create the NAT:
Should return
Active: True.Step 6 — Open Claude and go to the Cowork tab. It should connect.
Optional: Clean Rebuild Before Applying Fix
If you've been troubleshooting and have corrupted VM state, do a clean rebuild first:
Note on Persistence
The NAT rule is stored as
Store: Localand may not persist across reboots. If Cowork stops working after a restart, re-run Steps 4 and 5. Alternatively, create a scheduled task to run these commands at startup automatically.What Didn't Work (For Reference)
Over four days, the following were attempted and did NOT resolve the issue on their own:
Why 172.16.0.0/24 Doesn't Work
Claude creates its
cowork-vm-vnetHNS network as Type: ICS (Internet Connection Sharing) on the 172.16.0.0/24 subnet. On Windows 11 with Hyper-V enabled, this subnet is internally claimed in a ghost state.Get-NetNatreturns empty, butNew-NetNatthrows a duplicate error. The ICS network type cannot route to api.anthropic.com. Switching to 192.168.100.0/24 avoids the ghost claim and allows proper NAT routing.Environment
Underlying Bugs (Still Present in Claude Desktop)
These should be fixed in Claude Desktop so users don't need manual NAT workarounds.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.