I want to chroot into my Kali Linux WSL from my Ubuntu WSL. I'm running WSL2. In Windows, I mapped my Kali Linux WSL installation (\\wsl$\kali-linux
) to the drive K
:. In Ubuntu WSL, I mounted the K:
drive to /mnt/k
bu running sudo mount -t drvfs K: /mnt/k
. It was mounted successfully, but I can't chroot into /mnt/k
. It seems that there is a problem with symbolic links. When I try to run chroot /mnt/k
, I get the following error:
chroot: failed to run command ‘/bin/bash’: Function not implemented
I get a similar error with ls when I run ls /mnt/k
:
ls: cannot read symbolic link '/mnt/k/bin': Function not implemented
ls: cannot read symbolic link '/mnt/k/lib': Function not implemented
ls: cannot read symbolic link '/mnt/k/lib32': Function not implemented
ls: cannot read symbolic link '/mnt/k/lib64': Function not implemented
ls: cannot read symbolic link '/mnt/k/libx32': Function not implemented
ls: cannot read symbolic link '/mnt/k/sbin': Function not implemented
I can't cd into any of the symbolic link directories in /mnt/k
either.
How can I achieve chrooting into my Kali Linux WSL install?