Today I find time to investigate the problem deeply and I have great progress:
- I built OpenWRT 24.04 image (x86_64) image with static
vsock
,vmw_vsock_virtio_transport_common
andvmw_vsock_virtio_transport
modules, and loadable9p
,9pnet_virtio
andnetfs
modules. - Imported this image to the
incus
test server and deploy the VM instance - Made
/sys/class/virtio-ports/
devices - Installed
incus-agent
and required files (certificates
,configs
,templates
,etc.
from9p
agent
andconfig
mounts - Run
incus-agent
with verbose debugging
After these steps communication between incusd
and incus-agent
in the OpneWRT
VM started.
Important NOTE: modules vmw_vsock_virtio_transport_common
and vmw_vsock_virtio_transport
must be loaded to allow vsock
communication between host
and guest
.
I’m going to verify this solution for aarch64
architecture soon.
P.S.
Next step is prepare incus-agent
deployments script. Alpine Linux
VM is a good example how to inject it into non-systemd
OS.