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_commonandvmw_vsock_virtio_transportmodules, and loadable9p,9pnet_virtioandnetfsmodules. - Imported this image to the
incustest server and deploy the VM instance - Made
/sys/class/virtio-ports/devices - Installed
incus-agentand required files (certificates,configs,templates,etc.from9pagentandconfigmounts - Run
incus-agentwith 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.