Added --debug to the incus-agent… This is the output:
ot@rockylinux9-cloud-2 incus_agent]# journalctl -u incus-agent --no-pager
Feb 15 12:51:36 rockylinux9-cloud-2 systemd[1]: Starting Incus - agent...
Feb 15 12:51:36 rockylinux9-cloud-2 incus-agent[513]: time="2024-02-15T12:51:36Z" level=info msg=Starting
Feb 15 12:51:36 rockylinux9-cloud-2 incus-agent[513]: time="2024-02-15T12:51:36Z" level=info msg="Started vsock listener"
Feb 15 12:51:36 rockylinux9-cloud-2 systemd[1]: Started Incus - agent.
Feb 15 12:51:36 rockylinux9-cloud-2 incus-agent[513]: time="2024-02-15T12:51:36Z" level=debug msg="Matched trusted cert" fingerprint=0 subject="CN=root@cs9-h1,O=Linux Containers"
Feb 15 12:51:36 rockylinux9-cloud-2 incus-agent[513]: time="2024-02-15T12:51:36Z" level=debug msg="Matched trusted cert" fingerprint=0 subject="CN=root@cs9-h1,O=Linux Containers"
Feb 15 12:51:36 rockylinux9-cloud-2 incus-agent[513]: time="2024-02-15T12:51:36Z" level=debug msg="API Request\n\t{\n\t\t\"cid\": 2,\n\t\t\"port\": 7597,\n\t\t\"certificate\": \"-----BEGIN CERTIFICATE-----\\nMIICBDCCAYqgAwIBAgIRAIaMm8qqroXD0cHLq05KH+owCgYIKoZIzj0EAwMwNDEc\\nMBoGA1UEChMTbGludXhjb250YWluZXJzLm9yZzEUMBIGA1UEAwwLcm9vdEBjczkt\\naDEwHhcNMjMwNjIxMTE0OTAxWhcNMzMwNjE4MTE0OTAxWjA0MRwwGgYDVQQKExNs\\naW51eGNvbnRhaW5lcnMub3JnMRQwEgYDVQQDDAtyb290QGNzOS1oMTB2MBAGByqG\\nSM49AgEGBSuBBAAiA2IABHmxQiQNkIHEIqeii9wz6gkNNLGpyBLh5CWlEBqLMVGt\\nIUOcapcYcfm17epUje3Ob/bX/lritM5KcmrDSTHEkMeYDFuqy8CjFfiZZqNLfZCu\\nxmhL7nfEKlZbSoqg9qR7JqNgMF4wDgYDVR0PAQH/BAQDAgWgMBMGA1UdJQQMMAoG\\nCCsGAQUFBwMBMAwGA1UdEwEB/wQCMAAwKQYDVR0RBCIwIIIGY3M5LWgxhwR/AAAB\\nhxAAAAAAAAAAAAAAAAAAAAABMAoGCCqGSM49BAMDA2gAMGUCMFevv3co+opHhp45\\n9eUz5t0NFOoTi+EjYVXteEWKH1yEvexVNLFO4feDCBANp3kOJQIxAMNYPuZcQwcc\\nUWJG9n62+ecOhYcygL3ah/UXGpiyGeoCDfizN0h6cU0jgdjRlU0ZFw==\\n-----END CERTIFICATE-----\\n\",\n\t\t\"dev_incus\": true\n\t}"
Feb 15 12:51:36 rockylinux9-cloud-2 incus-agent[513]: time="2024-02-15T12:51:36Z" level=debug msg="Connecting to a VM agent over a VM socket"
Feb 15 12:51:36 rockylinux9-cloud-2 incus-agent[513]: time="2024-02-15T12:51:36Z" level=debug msg="Sending request to Incus" etag= method=GET url="https://custom.socket/1.0"
Feb 15 12:51:36 rockylinux9-cloud-2 incus-agent[513]: time="2024-02-15T12:51:36Z" level=debug msg="Got response struct from Incus"
Feb 15 12:51:36 rockylinux9-cloud-2 incus-agent[513]: time="2024-02-15T12:51:36Z" level=debug msg="\n\t{\n\t\t\"config\": null,\n\t\t\"api_extensions\": null,\n\t\t\"api_status\": \"\",\n\t\t\"api_version\": \"1.0\",\n\t\t\"auth\": \"\",\n\t\t\"public\": false,\n\t\t\"auth_methods\": null,\n\t\t\"auth_user_name\": \"\",\n\t\t\"auth_user_method\": \"\",\n\t\t\"environment\": {\n\t\t\t\"addresses\": null,\n\t\t\t\"architectures\": null,\n\t\t\t\"certificate\": \"\",\n\t\t\t\"certificate_fingerprint\": \"\",\n\t\t\t\"driver\": \"\",\n\t\t\t\"driver_version\": \"\",\n\t\t\t\"firewall\": \"\",\n\t\t\t\"kernel\": \"\",\n\t\t\t\"kernel_architecture\": \"\",\n\t\t\t\"kernel_features\": null,\n\t\t\t\"kernel_version\": \"\",\n\t\t\t\"lxc_features\": null,\n\t\t\t\"os_name\": \"\",\n\t\t\t\"os_version\": \"\",\n\t\t\t\"project\": \"\",\n\t\t\t\"server\": \"\",\n\t\t\t\"server_clustered\": false,\n\t\t\t\"server_event_mode\": \"\",\n\t\t\t\"server_name\": \"\",\n\t\t\t\"server_pid\": 0,\n\t\t\t\"server_version\": \"\",\n\t\t\t\"storage\": \"\",\n\t\t\t\"storage_version\": \"\",\n\t\t\t\"storage_supported_drivers\": null\n\t\t}\n\t}"
Feb 15 12:51:41 rockylinux9-cloud-2 incus-agent[513]: time="2024-02-15T12:51:41Z" level=debug msg="Matched trusted cert" fingerprint=0 subject="CN=root@cs9-h1,O=Linux Containers"
Feb 15 12:51:41 rockylinux9-cloud-2 incus-agent[513]: time="2024-02-15T12:51:41Z" level=debug msg="Matched trusted cert" fingerprint=0 subject="CN=root@cs9-h1,O=Linux Containers"
Feb 15 12:51:41 rockylinux9-cloud-2 incus-agent[513]: time="2024-02-15T12:51:41Z" level=debug msg="API Request\n\t{\n\t\t\"command\": [\n\t\t\t\"su\",\n\t\t\t\"-l\"\n\t\t],\n\t\t\"wait-for-websocket\": true,\n\t\t\"interactive\": true,\n\t\t\"environment\": {\n\t\t\t\"HOME\": \"/root\",\n\t\t\t\"LANG\": \"C.UTF-8\",\n\t\t\t\"PATH\": \"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\",\n\t\t\t\"TERM\": \"xterm-256color\",\n\t\t\t\"USER\": \"root\"\n\t\t},\n\t\t\"width\": 141,\n\t\t\"height\": 67,\n\t\t\"record-output\": false,\n\t\t\"user\": 0,\n\t\t\"group\": 0,\n\t\t\"cwd\": \"\"\n\t}"
Feb 15 12:51:41 rockylinux9-cloud-2 incus-agent[513]: time="2024-02-15T12:51:41Z" level=debug msg="New operation" class=websocket description="Executing command" operation=ed866ac3-dddc-4237-a4c8-0d39e495692f project=
Feb 15 12:51:41 rockylinux9-cloud-2 incus-agent[513]: time="2024-02-15T12:51:41Z" level=debug msg="Started operation" class=websocket description="Executing command" operation=ed866ac3-dddc-4237-a4c8-0d39e495692f project=
Feb 15 12:51:41 rockylinux9-cloud-2 incus-agent[513]: time="2024-02-15T12:51:41Z" level=debug msg="Waiting for exec websockets to connect"
Feb 15 12:51:41 rockylinux9-cloud-2 incus-agent[513]: time="2024-02-15T12:51:41Z" level=debug msg="Matched trusted cert" fingerprint=0 subject="CN=root@cs9-h1,O=Linux Containers"
Feb 15 12:51:41 rockylinux9-cloud-2 incus-agent[513]: time="2024-02-15T12:51:41Z" level=debug msg="Connecting to operation" class=websocket description="Executing command" operation=ed866ac3-dddc-4237-a4c8-0d39e495692f project=
Feb 15 12:51:41 rockylinux9-cloud-2 incus-agent[513]: time="2024-02-15T12:51:41Z" level=debug msg="Connected to operation" class=websocket description="Executing command" operation=ed866ac3-dddc-4237-a4c8-0d39e495692f project=
Feb 15 12:51:41 rockylinux9-cloud-2 incus-agent[513]: time="2024-02-15T12:51:41Z" level=debug msg="Matched trusted cert" fingerprint=0 subject="CN=root@cs9-h1,O=Linux Containers"
Feb 15 12:51:41 rockylinux9-cloud-2 incus-agent[513]: time="2024-02-15T12:51:41Z" level=debug msg="Connecting to operation" class=websocket description="Executing command" operation=ed866ac3-dddc-4237-a4c8-0d39e495692f project=
Feb 15 12:51:41 rockylinux9-cloud-2 incus-agent[513]: time="2024-02-15T12:51:41Z" level=debug msg="Connected to operation" class=websocket description="Executing command" operation=ed866ac3-dddc-4237-a4c8-0d39e495692f project=
Feb 15 12:51:41 rockylinux9-cloud-2 incus-agent[513]: time="2024-02-15T12:51:41Z" level=debug msg="Instance process started" PID=590 interactive=true
Feb 15 12:51:41 rockylinux9-cloud-2 incus-agent[513]: time="2024-02-15T12:51:41Z" level=debug msg="Exec mirror websocket started" PID=590 interactive=true number=0
Feb 15 12:51:41 rockylinux9-cloud-2 incus-agent[513]: time="2024-02-15T12:51:41Z" level=debug msg="Websocket: Started read mirror" address="host(2):3820755447"
Feb 15 12:51:41 rockylinux9-cloud-2 incus-agent[513]: time="2024-02-15T12:51:41Z" level=debug msg="Websocket: Started write mirror" address="host(2):3820755447"
Feb 15 12:51:41 rockylinux9-cloud-2 incus-agent[513]: time="2024-02-15T12:51:41Z" level=debug msg="Exec control handler started" PID=590 interactive=true
Feb 15 12:51:41 rockylinux9-cloud-2 incus-agent[513]: time="2024-02-15T12:51:41Z" level=debug msg="Matched trusted cert" fingerprint=0 subject="CN=root@cs9-h1,O=Linux Containers"
Feb 15 12:51:41 rockylinux9-cloud-2 su[590]: (to root) root on pts/0
Feb 15 12:51:41 rockylinux9-cloud-2 su[590]: pam_unix(su-l:session): session opened for user root(uid=0) by (uid=0)
Not sure it this is expected, but I see no output from any of the logger calls in the reconfigureNetworkInterfaces() function. Reading the code, I can only assume that if for some reason does not find the nics/ dir. (Guessing… I don’t know go, and the deviceConfig definition is incomprehensible to me)