I have notes that suggest sharing a directory from the host to a container worked at one time but I can’t replicate it.
I found some related links but neither helps with my problem:
- Basic sharing directories
- https://blog.simos.info/how-to-share-a-folder-between-a-host-and-a-container-in-incus/
Steps to recreate:
$ incus create images:alpine/3.24 test
$ mkdir ~/test-share
$ incus config device add test test-share disk source=~/test-share path=/test-share shift=true
Error: Failed add validation for device "test-share": Missing source path "/home/mkgvt/test-share" for disk "test-share"
I am able to access the source so I don’t think it is a permissions problem:
$ ls -al ~/test-share/
total 10
1 drwxr-xr-x 2 mkgvt mkgvt 2 2026-08-22 10:25 ./
9 drwx------ 50 mkgvt mkgvt 130 2026-08-22 10:25 ../
I am wondering if it is a version mismatch problem. The Incus client is version 7.2 while IncusOS is at 7.3:
$ incus version
Client version: 7.2
Server version: 7.3
More detail about IncusOS:
$ incus admin os show
WARNING: The IncusOS API and configuration is subject to change
environment:
hostname: a3caa480-73cc-11e9-9cd3-5c26ea895600
machine_id: 57b5b5bab80644f9878f202231ebd744
os_name: IncusOS
os_version: "202608201218"
os_version_alternate: "202605281810"
os_version_next: "202608201218"
system_is_ready: true
uptime: 147