Hi all, and thanks for LXC/LXD.
I’m playing locally with LXD using Multipass.
I can’t mount a device in a container.
From mount
, I see that my disk is /dev/disk1s1s1
⚡ mount
/dev/disk1s1s1 on / (apfs, sealed, local, read-only, journaled)
devfs on /dev (devfs, local, nobrowse)
/dev/disk1s5 on /System/Volumes/VM (apfs, local, noexec, journaled, noatime, nobrowse)
/dev/disk1s3 on /System/Volumes/Preboot (apfs, local, journaled, nobrowse)
/dev/disk1s6 on /System/Volumes/Update (apfs, local, journaled, nobrowse)
/dev/disk1s2 on /System/Volumes/Data (apfs, local, journaled, nobrowse)
map auto_home on /System/Volumes/Data/home (autofs, automounted, nobrowse)
From the directory where I created the container, I want to mount the directory itself.
⚡ lxc config device add app /dev/disk1s1s1 disk source=$(pwd) path=/app
Error: Failed add validation for device "/dev/disk1s1s1": Missing source path "/Users/jodosha/Code/jodosha/star_wars" for disk "/dev/disk1s1s1"
I also tried only with disk1s1s1
, but it still doesn’t work:
⚡ lxc config device add app disk1s1s1 disk source=$(pwd) path=/app
Error: Failed add validation for device "disk1s1s1": Missing source path "/Users/jodosha/Code/jodosha/star_wars" for disk "disk1s1s1"
What am I doing wrong?