cloudkernels / vaccel

A meta repo for gathering all the necessary components for running (and releasing) a vaccel environment
10 stars 2 forks source link

vsock-plugin: default vsock CID is wrong #39

Closed bchalios closed 2 years ago

bchalios commented 2 years ago

Describe the bug The well known address (CID) for contacting the host from inside the VM is VMADDR_CID_HOST (2). Currently, the plugin has this hardcoded to 1 and we need to set the environment variable in order to get everything working.

Working environment All possible setups

To Reproduce Steps to reproduce the behavior:

  1. Launch a Firecracker VM with a vAccel rootfs using a config that enables vsock
  2. Launch an agent on the host listening to the correct Unix socket.
  3. set export VACCEL_BACKENDS=/opt/vaccel/lib/libvaccel-vsock.so
  4. Run any vAccel application

Execution will fail because the application will not be able to communicate with the host

Expected behavior Communication with host should succeed