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

How to pass host devices into kata-containers raw, without virtio-fs? #578

Open
gerhard opened this issue Jan 8, 2025 · 0 comments
Open

Comments

@gerhard
Copy link

gerhard commented Jan 8, 2025

This branches off:

All config - including the Talos v1.9.1 cluster managed by Omni - is captured in that issue.

I am opening this issue here instead of https://github.com/kata-containers/kata-containers since this is specific to the kata-containers extension as configured in Talos (i.e. containerd v2 runtime handler).

I have a bunch of host devices which I want to pass into various kata containers. I think that I need to change the privileged_without_host_devices = false setting in some way, but I am not sure.

My starting point is a loopback host device - /dev/loop4: [3145894]:2 (/dev/tmpfs/10G/data.img) - which I need to pass into a container as is, no virtio-fs (it clashes with overlayfs in my case).

How could I do this @fidencio @smira @frezbo ?


FWIW, I am working towards having a few more devices like this one, but backed by different storage implementations (local NVMe, Regatta Storage, etc.). Ideally, these would be host mount points that I just pass through - e.g. /dev/loop4 on /var/lib/dagger/10G.ramdisk type ext4 (rw,noatime,nodiratime,nobarrier) - but I think that solving that problem is more involved. WDYT?

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