Skip to content

/usr/sbin/incus-agent should be statically linked #3728

Description

@breml

bluefin-dx ships with Incus, but by default the incus-agent binary is not fully working, in particular with VMs.

Entering a VM with incus exec gives the following error:

Error: websocket: bad handshake

The reason for this is, that the incus-agent binary, which is shipped with bluefin linux is not statically linked:

❯ file /usr/sbin/incus-agent
/usr/sbin/incus-agent: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=957004a18c107c93
a8e7252d0c563c03d4131721, for GNU/Linux 3.2.0, stripped

My current workaround is to apply a hotfix for /usr/sbin/incus-agent after every update:

ostree admin unlock --hotfix 
wget https://github.com/lxc/incus/releases/download/v6.18.0/bin.linux.incus-agent.x86_64 -O /usr/sbin/incus-agent 
chmod +x /usr/sbin/incus-agent 

But this is not really a sustainable solution.

References:

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/upstreamTracking upstream issueshelp wantedExtra attention is neededkind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions