disable-shiftfs-on-fuse?

Hello, I am experiencing some issues in mounting a gcs-fuse volume in the inner container. I am using coder on Kubernetes with envbox While on the outer__container the mount works just fine and it it correctly mounted as
total 0
drwxr-xr-x 1 coder coder 0 Mar 3 17:11 home-shared
drwxr-xr-x 1 coder coder 0 Mar 3 17:11 research
total 0
drwxr-xr-x 1 coder coder 0 Mar 3 17:11 home-shared
drwxr-xr-x 1 coder coder 0 Mar 3 17:11 research
In theinner__container I see the mount being mounted with
total 0
drwxr-xr-x 1 nobody nogroup 0 Mar 3 17:11 research
drwxr-xr-x 1 nobody nogroup 0 Mar 3 17:11 home-shared
total 0
drwxr-xr-x 1 nobody nogroup 0 Mar 3 17:11 research
drwxr-xr-x 1 nobody nogroup 0 Mar 3 17:11 home-shared
this flag in sysbox caught my attention: https://github.com/nestybox/sysbox/blob/46ba726e8e894aa22e20465a32d22dfa2863ec12/scr/sysbox#L411 How can I pass that flag?
GitHub
sysbox/scr/sysbox at 46ba726e8e894aa22e20465a32d22dfa2863ec12 · nes...
An open-source, next-generation "runc" that empowers rootless containers to run workloads such as Systemd, Docker, Kubernetes, just like VMs. - nestybox/sysbox
5 Replies
Codercord
Codercord2mo ago
<#1346174440072806492>
Category
Bug report
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Phorcys
Phorcys2mo ago
could you share how you're trying to pass the volume to the container?
Alessandro De Maria
sure I am mounting the volume like this
volume {
name = "home-shared-volume"
csi {
driver = "gcsfuse.csi.storage.gke.io"
read_only = false
volume_attributes = {
bucketName = local.user_home_bucket_name
mountOptions = "uid=1000,gid=1000,implicit-dirs,dir-mode=0755,file-mode=0644"
}
}
}
volume {
name = "home-shared-volume"
csi {
driver = "gcsfuse.csi.storage.gke.io"
read_only = false
volume_attributes = {
bucketName = local.user_home_bucket_name
mountOptions = "uid=1000,gid=1000,implicit-dirs,dir-mode=0755,file-mode=0644"
}
}
}
and then passing
env {
name = "CODER_MOUNTS"
value = "/home/coder:/home/coder,${local.research_mount_path}:${local.research_mount_path},${local.user_home_mount_path}:${local.user_home_mount_path}"
}
env {
name = "CODER_MOUNTS"
value = "/home/coder:/home/coder,${local.research_mount_path}:${local.research_mount_path},${local.user_home_mount_path}:${local.user_home_mount_path}"
}
bpmct
bpmct2mo ago
Hey, I'm not sure if envbox supports this setting. You could either A) directly run sysbox on the host or B) submit a PR to envbox or take a look. If you must use envbox and can't create a PR, an issue with your steps would be really helpful
Phorcys
Phorcys4w ago
hey @Alessandro De Maria any luck?

Did you find this page helpful?