Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ttrpc: cannot marshal unknown type: *proto.CreateVMRequest when using socket #780

Open
ST-Apps opened this issue Jan 23, 2024 · 1 comment

Comments

@ST-Apps
Copy link

ST-Apps commented Jan 23, 2024

Hi everyone,
I'm trying to build a custom utility to start VMs and containers using firecracker-containerd and your SDK.

As a first test I tried to replicate one of the tests in your code to see if I could properly connect to my firecracker-containerd socket and start a VM, however I'm getting the error that you can see in the title.

My guess is that there is some kind of version mismatch between the proto version that is published on this repo and the actual one used by my socket, even if I'm on latest version for both (by latest I mean that I cloned the repo and build from source).

Here are some details on my environment and code:

$ firecracker-containerd --version
containerd github.com/containerd/containerd 1.6.20+unknown 3fae0bdd0f592581a2e0519fd6c307b8549569f8

go imports

require (
	github.com/containerd/containerd v1.6.23
	github.com/firecracker-microvm/firecracker-containerd v0.0.0-20230901203207-fc5e81ef584b
	github.com/gogo/protobuf v1.3.2
)

go code

	fmt.Println("Creating VM")
	_, err = fcClient.CreateVM(ctx, &proto.CreateVMRequest{
		VMID: vmID,
		NetworkInterfaces: []*proto.FirecrackerNetworkInterface{{
			AllowMMDS: true,
			// This assumes the demo CNI network has been installed
			CNIConfig: &proto.CNIConfiguration{
				NetworkName:   "fcnet",
				InterfaceName: "veth0",
			},
		}},
	})

Any idea on what could be going wrong?

@alanpjohn
Copy link

Hi @ST-Apps,
I recently came across the same issue, were you able to mitigate it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants