I'm fairly new to WSL2 and building stuff from git clone or other sources; although I have been using ZFS for many years.Following the instructions from https://wsl.dev/wsl2-kernel-zfs/ I attempted to build zfs-2.1.2 into linux-5.15.25 using microsofts wsl-config on Ubuntu-22.04 (in WSL2) but now all my windows partitions fail to mount in Ubuntu on WSL2. Some general info:
PS C:\WINDOWS\system32> lxrunoffline sm -n Jammy-v2 Name: Jammy-v2 WSL version: 2 Filesystem version: 2 Installation directory: H:\Shared\WSL2\Jammy-v2 UID of the default user: 0 Configuration flags: 7 Default kernel command line: BOOT_IMAGE=/kernel init=/init ro Environment variables: HOSTTYPE=x86_64 LANG=en_US.UTF-8 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games TERM=xterm-256colorPS C:\WINDOWS\system32> cat \Users\mikex\.wslconfig[wsl2]kernel=h:\\Shared\\WSL2\\wsl-zfs-kernel\\bzImagelocalhostFowarding=trueswap=0PS C:\WINDOWS\system32> wsl -d Jammy-v2Failed to mount C:\, see dmesg for more details.Failed to mount D:\, see dmesg for more details.Failed to mount H:\, see dmesg for more details.Failed to mount Y:\, see dmesg for more details.root@Pro470G34:~# zfs versionzfs-2.1.2-1ubuntu3zfs-kmod-2.1.2-1root@Pro470G34:~# dmesg (abridged only errors in red pasted)[ 1.457385] PCI: Fatal: No config space access function found[ 5.955524] hv_utils: cannot register PTP clock: 0[ 6.662987] FS-Cache: Duplicate cookie detected[ 6.674179] FS-Cache: O-cookie c=00000006 [p=00000002 fl=222 nc=0 na=1][ 6.676881] FS-Cache: O-cookie d=00000000082f79ff{9P.session} n=000000004b37c6d0[ 6.682575] FS-Cache: O-key=[10] '34323934393337383430'[ 6.683916] FS-Cache: N-cookie c=00000007 [p=00000002 fl=2 nc=0 na=1][ 6.689561] FS-Cache: N-cookie d=00000000082f79ff{9P.session} n=0000000078360345[ 6.691322] FS-Cache: N-key=[10] '34323934393337383430'[ 8.917936] 9pnet: Could not find request transport: virtio[ 8.919576] init: (1) ERROR: MountPlan9WithRetry:237: mount drvfs on /mnt/c (cache=mmap,noatime,msize=262144,trans=virtio,aname=drvfs;path=C:\;uid=0;gid=0;symlinkroot=/mnt/[ 8.919590] ) failed: 22[ 8.924555] 9pnet: Could not find request transport: virtio[ 8.925893] init: (1) ERROR: MountPlan9WithRetry:237: mount drvfs on /mnt/d (cache=mmap,noatime,msize=262144,trans=virtio,aname=drvfs;path=D:\;uid=0;gid=0;symlinkroot=/mnt/[ 8.925895] ) failed: 22[ 8.930216] 9pnet: Could not find request transport: virtio[ 8.931125] init: (1) ERROR: MountPlan9WithRetry:237: mount drvfs on /mnt/h (cache=mmap,noatime,msize=262144,trans=virtio,aname=drvfs;path=H:\;uid=0;gid=0;symlinkroot=/mnt/[ 8.931128] ) failed: 22[ 8.935308] 9pnet: Could not find request transport: virtio[ 8.936610] init: (1) ERROR: MountPlan9WithRetry:237: mount drvfs on /mnt/y (cache=mmap,noatime,msize=262144,trans=virtio,aname=drvfs;path=Y:\;uid=0;gid=0;symlinkroot=/mnt/[ 8.936616] ) failed: 22[ 9.521959] 9pnet: Could not find request transport: virtio[ 9.523934] init: (1) ERROR: MountPlan9WithRetry:237: mount drvfs on /mnt/c (cache=mmap,noatime,msize=262144,trans=virtio,aname=drvfs;path=C:\;uid=0;gid=0;symlinkroot=/mnt/
And etc init failed mounts. I've managed to problem solve simple builds like EDK2 UEFI shell but this is beyond my skills kernel config files are effing huge.Thanks in advance.
PS: Could this be some type of case-sensitivity issue I've read something about that and had a few issues in the past. See for example https://www.reddit.com/r/zfs/comments/lcdxs5/zfs_in_wsl2_raw_disk_access/Which states "Just make sure the base directory is case-sensitive before you start. Otherwise you'll end up with misleading error messages." I didn't do this could this be the cause of above dmesgs?