Repository navigation
Description
Describe the bug
On Windows Server 2022, process-isolated containers on CimFS layers fail to start once the ReFS driver (ReFS.sys) has been loaded, for example because the host has any ReFS-formatted volume. hcsshim gets ERROR_INVALID_FUNCTION from HcsAttachOverlayFilter:
failed to attach overlay filter: Incorrect function. (0x1)
The cause appears to be Filter Manager not attaching to CimFS volumes after ReFS registers:
- ReFS registers at the head of the disk file system queue (
nt!IopDiskFileSystemQueueHead). After that, newly mounted CimFS volumes get no FltMgr attachment. A CIM mounted withCimMountImagedoes not appear infltmc volumes, andfltmc instances -v \\?\Volume{<guid>}returns0x801f0014. Without ReFS loaded, the same mount appears infltmc volumeswith file systemCIMFS. - Because FltMgr is not attached to the CIM volume, UnionFS cannot instantiate on it.
CreateFileSystemUnionfails atonecore\base\fs\unionfs\lib\unionfslib.cpp(169)with0x80070001. computestorage.dll surfaces this fromHcsAttachOverlayFilter(onecore\vm\compute\dll\storage\src\layer.cpp:345). - In a live kernel dump of an affected host,
\FileSystem\CimFS's control device is in the disk FS queue and has\FileSystem\FltMgrattached, as on a working host. However, the volume device objects CimFS creates for mounted CIMs have no FltMgr device above them, and the CIM volumes are absent from!fltkd.volumes. ReFSdoes not support stop (sc stop ReFSreturns 1052). Once ReFS has loaded, CimFS containers fail until the host reboots without any ReFS volume.
To Reproduce
On a Windows Server 2022 host where CimFS containers work and ReFS.sys is not loaded (Get-CimInstance Win32_SystemDriver -Filter "Name='ReFS'" shows Stopped):
- Mount any CIM with
CimMountImage(cimfs.dll). Confirm it is listed byfltmc volumesasCIMFS, then dismount it. - Create and attach a small VHDX and format it ReFS, which loads
ReFS.sys:create vdisk file=C:\refs-test.vhdx maximum=4096 type=expandable select vdisk file=C:\refs-test.vhdx attach vdisk convert gpt create partition primary format fs=refs quick - Mount the same CIM again with
CimMountImage. Mounting succeeds (S_OK), but the volume is not listed byfltmc volumes. Bothfltmc instances -v \\?\Volume{<guid>}andfltmc attach UnionFS \\?\Volume{<guid>}fail. - Detaching the VHDX does not help, because ReFS stays registered. Running any process-isolated container with containerd's
cimfssnapshotter now fails withfailed to attach overlay filter: Incorrect function.
Expected behavior
Filter Manager attaches to CimFS volumes whether or not ReFS (or any other disk file system) is loaded, so CimFS containers work on hosts that also have ReFS data volumes.
Configuration:
- Edition: Windows Server 2022 Datacenter, build 20348.5622 (ReFS.sys 10.0.20348.2849, CimFS.sys 10.0.20348.5386, UnionFS.sys 10.0.20348.5020)
- Base Image being used: Nano Server (
mcr.microsoft.com/windows/nanoserver:ltsc2022) - Container engine: containerd with the
cimfssnapshotter and the runhcs runtime - Container Engine version: containerd 2.3
Additional context
- Ruled out: the affected and working hosts have identical
CimFS.sys(same hash), identical registry for CimFS, UnionFS, FltMgr, wcifs and bindflt, and the same loaded minifilters at the same altitudes. Rebooting does not help while a ReFS volume is present. Disabling Defender real-time protection does not help. - The only difference between the working and failing hosts was a ReFS data volume. Reformatting it as NTFS (plus a reboot) is the workaround.
- Diagnosed with UnionFS TraceLogging (
{68D6FFD0-365A-579D-6D26-76B2A0AF1DDC}), Microsoft.Windows.HyperV.Compute ETW, and a live kernel dump (!devstack,!fltkd.volumes, and walkingnt!IopDiskFileSystemQueueHead).
Activity
github-actions commentedon Dec 4, 2026
Thank you for creating an Issue. Please note that GitHub is not an official channel for Microsoft support requests. To create an official support request, please open a ticket here. Microsoft and the GitHub Community strive to provide a best effort in answering questions and supporting Issues on GitHub.