Skip to content

Ship multiple VM agent binaries #263

@stgraber

Description

@stgraber

Currently incus looks for the incus-agent binary in the host PATH and copies that into the VM config drive. That works well enough but has quite a few drawbacks:

  • As it's a copy, the guest cannot refresh its agent without a reboot
  • Only a single OS and architecture can be made available (that of the host)
  • Space and time is wasted as the binary is copied for every VM

Instead I believe we should:

  • Ship a directory containing a variety of agent builds, likely named after OS.ARCH (e.g. linux.x86_64).
  • That directory should be bind-mounted into the config drive
  • The guest should be made to compare its agent with the one in the drive any time it gets reconnected with the host, if the two differ, the agent should exit so it can be restarted and get the new version loaded.

Metadata

Metadata

Assignees

Labels

EasyGood for new contributors

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions