VM agent / on alpine vm

Hi Floks,

I’m trying to start a alpine VM

incus launch images:alpine/edge alpine -c security.secureboot=false --vm --profile localdhcp

No error on booting Vm:

udhcpc: broadcasting discover
udhcpc: broadcasting select for 192.168.2.117, server 192.168.2.1
udhcpc: lease of 192.168.2.117 obtained from 192.168.2.1, lease time 7200 [ ok ]
 * Starting busybox syslog ... [ ok ]
 * Starting incus-agent-setup ... [ ok ]
 * Starting incus-agent ... [ ok ]

and impossible to use agent

$# incus exec alpine sh
Error: VM agent isn't currently running

ps. no issue on “debian/12/cloud”…
Tks for help

stgraber@dakara:~$ incus launch images:alpine/edge alpine -c security.secureboot=false --vm
Launching alpine
stgraber@dakara:~$ incus exec alpine sh
~ # 

What distribution are you running Incus on?
My guess is that for some reason your version of the incus-agent binary isn’t statically linked and so fails to run inside of the Alpine VM. Normally all distros are expected to statically link incus-agent to avoid this kind of issue.

Hi @stgraber

I rebuild incus (#gentoo).
check incus-agent : is now static
It works :wink:

1 Like