Incus-agent in OpenWRT VM

Today I find time to investigate the problem deeply and I have great progress:

  1. I built OpenWRT 24.04 image (x86_64) image with static vsock, vmw_vsock_virtio_transport_common and vmw_vsock_virtio_transport modules, and loadable 9p, 9pnet_virtio and netfs modules.
  2. Imported this image to the incus test server and deploy the VM instance
  3. Made /sys/class/virtio-ports/ devices
  4. Installed incus-agent and required files (certificates, configs, templates, etc. from 9p agent and config mounts
  5. 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.