microvm.nix icon indicating copy to clipboard operation
microvm.nix copied to clipboard

error: chmod not implemented with overlayfs

Open Sohalt opened this issue 3 years ago • 4 comments

When trying to use a writeableStoreOverlay I get errors like: error: chmod '/nix/store/as1xzrm2921pnxx4jvxj39jn4v88wdy1-gcc-11.3.0': Function not implemented.

Any idea why that is happening?

Sohalt avatar Jul 05 '22 09:07 Sohalt

Store is a volume, not a share (which doesn't work), right? What filesystem is the volume?

astro avatar Jul 05 '22 20:07 astro

Yes, store is a volume with ext4 (defaults).

Sohalt avatar Jul 06 '22 08:07 Sohalt

The error shows up with cloud-hypervisor using virtiofsd to share the host store. Using a different hypervisor and 9p works. The issue is probably due to https://lore.kernel.org/lkml/[email protected]/

Sohalt avatar Jul 06 '22 09:07 Sohalt

Thanks for doing the research!

To close this and #43 we have to document which hypervisor/virtiofs/9p combinations are usable for the store overlay.

astro avatar Jul 08 '22 12:07 astro