Skip to content

the virtual machine or container JSON document is invalid #2714

@ningmingxiao

Description

@ningmingxiao

Description
I'm trying to bump up containerd from v2.3.0-beta.1 to v2.3.0-beta.2 for nerdctl, but CI keeps failing

containerd/nerdctl#4853
=== FAIL: cmd/nerdctl/container TestListHyperVContainer (4.90s)
container_list_windows_test.go:77: assertion failed: res.ExitCode is not exitCode:
Command: C:\Users\runneradmin\go\bin\nerdctl.exe --namespace=nerdctl-test run --isolation hyperv -d --name nerdctl-testlisthypervcontainerlist --label nerdctl-testlisthypervcontainerlist=nerdctl-testlisthypervcontainerlist registry.k8s.io/e2e-test-images/nginx:1.14-2
ExitCode: 1
Error: exit status 1
Stdout:
Stderr: time="2026-04-19T16:32:00Z" level=warning msg="default network named "nat" does not have an internal nerdctl ID or nerdctl-managed config file, it was most likely NOT created by nerdctl"
time="2026-04-19T16:32:01Z" level=warning msg="default network named "nat" does not have an internal nerdctl ID or nerdctl-managed config file, it was most likely NOT created by nerdctl"
time="2026-04-19T16:32:04Z" level=fatal msg="failed to create shim task: failed to mount container storage: guest modify: guest RPC failure: The virtual machine or container JSON document is invalid."
https://github.com/containerd/nerdctl/actions/runs/24609842512/job/72025096572?pr=4853

Steps to reproduce the issue
Update containerd from v2.3.0-beta.1 to v2.3.0-beta.2
Run the Windows CI
TestListHyperVContainer fails
Describe the results you received and expected
Received: time="2026-04-19T16:32:04Z" level=fatal msg="failed to create shim task: failed to mount container storage: guest modify: guest RPC failure: The virtual machine or container JSON document is invalid."
Expected: no error

What version of containerd are you using?
v2.3.0-beta.2

Any other relevant information
No response

Show configuration if it is related to CRI plugin.
No response

see:containerd/containerd#13254

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions