Open kbroch-rivosinc opened 5 days ago
Can you try outside your home directory (/Users/kbroch)? I suspect it's related to that. If moving it works, then I'll try to think through a fix.
Thanks for quick response. My problem was I hadn't set the location: "~"
to writable: true
(just tmp).
actually now it's trying to fetch an amd64 image instead of arm64, so trying to work thru this:
kbroch@lima-apptainer:/Users/kbroch/rvi/repos/riscv-software-src/riscv-unified-db$ ./do
Fetching container...
INFO: Downloading oras image
401.7MiB / 401.7MiB [===========================================================================================================================================================================================================] 100 % 12.9 MiB/s 0s
FATAL: While pulling image from oci registry: error fetching image to cache: unable to Download Image: could not open image /home/kbroch.linux/.apptainer/cache/oras/tmp_1864917339 for verification: the image's architecture (amd64) could not run on the host's (arm64)
Try to build it locally (./bin/build_container) rather than fetching it.
Try to build it locally (./bin/build_container) rather than fetching it.
This then takes me down the fakeroot
mode, which relies on linux kernel >= 3.8 https://apptainer.org/admin-docs/master/user_namespace.html?highlight=fakeroot#user-namespace-requirements
and both doc's hint this won't work:
Seems like I should either be running containers with root priv's or get off a mac.
Yes, unfortunately you'll need either root or fakeroot to build the singularity container.
One more option to consider:
There is also a Dockerfile under .devcontainer
that builds the same image. If you know how to build a docker image without root (I don't...) then that could be an option. If you do that, let me know and we can get the container type an enviornment setting so the scripts under ./bin
pick the right one.
apptainer read-only error
followed direction here: https://apptainer.org/docs/admin/main/installation.html#mac. basically:
install:
run:
any time I try to run something it starts with trying to download something and fails with read-only:
debug
cfg says dir is "writable" and dir is user writable:
singularity error stream ID 1; PROTOCOL_ERROR; received from peer
didn't even get as far with some, downloaded the yaml config file: https://raw.githubusercontent.com/sylabs/singularity/main/examples/lima/singularity-ce.yml
but got this: