Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help with getting singularity/apptainer running on arm based Apple macbook running Sequoia 15.1.1 #312

Open
kbroch-rivosinc opened this issue Nov 24, 2024 · 0 comments

Comments

@kbroch-rivosinc
Copy link
Collaborator

apptainer read-only error

followed direction here: https://apptainer.org/docs/admin/main/installation.html#mac. basically:

install:

 brew reinstall qemu lima

run:

limactl start template://apptainer
limactl shell apptainer

any time I try to run something it starts with trying to download something and fails with read-only:

kbroch@lima-apptainer:/Users/kbroch/rvi/repos/riscv-software-src/riscv-unified-db$ ./do
mkdir: cannot create directory ‘/Users/kbroch/rvi/repos/riscv-software-src/riscv-unified-db/.home’: Read-only file system
Fetching container...
mkdir: cannot create directory ‘/Users/kbroch/rvi/repos/riscv-software-src/riscv-unified-db/.singularity’: Read-only file system
INFO:    Downloading oras image
6.7.5MiB / 401.7MiB [==>----------------------------------------------------------------------------------------------------------------------------------------] 2 % 2.8 MiB/s 2m21s

debug

cfg says dir is "writable" and dir is user writable:

/Users/kbroch/.lima/apptainer/lima.yaml
23:  writable: true
~/rvi/repos/riscv-software-src/riscv-unified-db on dev/kbroch/p…-initial-cfg:main ⇣11⇡3 !6                                                                          at 06:09:35 PM
❯ rg -A 2 -B 2 "writable" /Users/kbroch/.lima/apptainer/lima.yaml
21-- location: "~"
22-- location: "/tmp/lima"
23:  writable: true
24-containerd:
25-  system: false
~/rvi/repos/riscv-software-src/riscv-unified-db on dev/kbroch/p…-initial-cfg:main ⇣11⇡3 !6                                                                          at 06:10:04 PM
❯ ls -l /tmp/lima
total 0
~/rvi/repos/riscv-software-src/riscv-unified-db on dev/kbroch/p…-initial-cfg:main ⇣11⇡3 !6                                                                          at 06:10:12 PM
❯ ls -ld /tmp/lima
drwxrwxr-x  2 kbroch  wheel  64 Nov 23 07:28 /tmp/lima

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:

~/rvi/repos/riscv-software-src/riscv-unified-db on dev/kbroch/p…-initial-cfg:main ⇣11⇡3 !6                                                                          at 06:11:20 PM
❯ limactl start ~/singularity-ce.yml

? Creating an instance "singularity-ce" Proceed with the current configuration
INFO[0001] Starting the instance "singularity-ce" with VM driver "vz"
INFO[0001] Attempting to download the image              arch=aarch64 digest= location="https://repo.almalinux.org/almalinux/9/cloud/aarch64/images/AlmaLinux-9-GenericCloud-latest.aarch64.qcow2"
Downloading the image (AlmaLinux-9-GenericCloud-latest.aarch64.qcow2)
19.07 MiB / 516.31 MiB [->___________________________________] 3.69% 12.96 MiB/sFATA[0003] failed to download "https://repo.almalinux.org/almalinux/9/cloud/aarch64/images/AlmaLinux-9-GenericCloud-latest.aarch64.qcow2": stream error: stream ID 1; PROTOCOL_ERROR; received from peer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant