Skip to content

MicroVMs with QEMU can conflict in vsock port space on the host side #311

Description

@vikanezrimaya

While implementing the QEMU version of the notify-over-vsock feature, I seem to have overlooked the fact that the vsock port space is shared between units, and unsharing it would require a network namespace. In contrast, it looks like cloud-hypervisor doesn't actually use vsock and somehow fakes it with a UNIX socket. QEMU cannot do that. Therefore we need to choose a unique port on the host side of the vsock for every single VM, and communicate that port via the systemd credential we pass to the VM.

Because of this, it is impossible to launch more than one MicroVM that use notify sockets with QEMU.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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