How to get vscode working with a python virtualenv inside a LXD container

Are OK, so ZFS doesn’t support idmapped mounts (yet), try enabling shiftfs (which is the non-mainlined precursor to idmapped mounts):

sudo snap set lxd shiftfs.enable=true
sudo systemctl reload snap.lxd.daemon

See Trying out `shiftfs`