Mount NFS filesystems from WSL2 (Windows 10 Home guest)

Discussions about using Windows guests in VirtualBox.
Post Reply
ajgringo
Posts: 31
Joined: 11. Aug 2022, 01:45
Primary OS: Linux other
VBox Version: OSE other
Guest OSses: Arch, Debian, Fedora, Gentoo, openSUSE, Ubuntu, Windows

Mount NFS filesystems from WSL2 (Windows 10 Home guest)

Post by ajgringo »

Is this even possible? I enabled HyperV Paravirtualization in VB, installed Ubuntu 20.04 WSL2 (after enabling all of the required settings on the guest), then installed the nfs-common package within Ubuntu. I can see the NFS shares (via showmount), but I can't get the mount to work.

Am I missing something? Is the version of Windows the problem - do I need W10 Pro?
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Mount NFS filesystems from WSL2 (Windows 10 Home guest)

Post by mpack »

No, I don't think it's possible. WSL2 creates a VMDK (or was it vhdx?) tucked away in an appdata folder, but that vhdx doesn't contain a complete filesystem. I suspect it's just a partition image which gets mounted by their modified kernel.

I also don't really see the point. You can download Ubuntu from Ubuntu and run all Linux tools directly in a VM. Why do you need Linux nested inside WSL2?

As to whether Hyper-v paravirtualization is a full substitute for Hyper-v: I don't know, but I rather doubt it.
ajgringo
Posts: 31
Joined: 11. Aug 2022, 01:45
Primary OS: Linux other
VBox Version: OSE other
Guest OSses: Arch, Debian, Fedora, Gentoo, openSUSE, Ubuntu, Windows

Re: Mount NFS filesystems from WSL2 (Windows 10 Home guest)

Post by ajgringo »

I was just curious if I could get an NFS mount to work on Windows 10 Home. I guess I can try with a real-hardware W10 system, but it's not a big deal.

Thanks for the reply.
[host: EndeavourOS, VB 7.0.2, Ryzen 7 2700x, GTX 1070, 32 GB RAM]
Post Reply