NFS with nearby host, VM clients?

Richard W.M. Jones rjones at redhat.com
Thu Apr 21 09:05:40 UTC 2022


On Wed, Apr 20, 2022 at 11:28:32PM -0500, Michael Jinks wrote:
> Much thanks.  Any of these would (will) be just fine.  I have at least one
> question.
> 
> ssh port forwarding would be the easiest, it was one way I tried, but I'm
> missing something.  In your example:
> 
> >   ssh -R 10809:nbd-server:10809 vm
> 
> ...is that to say that 10809 is the only port we need to handle?  Or, is it
> just an example showing one of the necessary ports?

That would enable you to access an outside NBD server from inside the
guest, allowing you to mount up a block device from outside.

You can use multiple -R options to reverse-forward multiple ports.

> NFS+RPC is one of my holdups; 10809, Linux Network Block Devices, is
> in /etc/ services on some, not all, of my Linux hosts, so, please
> educate me: does that process fix the "RPC problem"?

If you want NFS and can use NFSv4, then you should only need to
forward port 2049.  NFSv3 needed a whole lot of ports forwarded.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html


More information about the virt-tools-list mailing list