Date: Sun, 20 Jul 2008 19:10:39 +0200 From: Thierry Herbelot <thierry.herbelot@laposte.net> To: freebsd-hackers@freebsd.org Subject: Re: NFS locking from a qemu machine ? Message-ID: <200807201910.40171.thierry.herbelot@laposte.net> In-Reply-To: <200807190723.47208.thierry.herbelot@laposte.net> References: <200807190723.47208.thierry.herbelot@laposte.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Le Saturday 19 July 2008, Thierry Herbelot a écrit : > Hello, > > I'm trying to use NFS locking from an NFS client running in a qemu virtual > PC to an NFS server running on the host machine, but with no success so far > : > > configuration for the host PC (server) : > operating system : FreeBSD 7.0-Stable > > % cat /etc/exports > /shared/ 127.0.0.1 > > and in /etc/rc.conf : > nfs_server_enable="YES" > weak_mountd_authentication="YES" # Allow non-root mount requests to be > served. rpcbind_enable="YES" # Run the portmapper service > (YES/NO). rpc_lockd_enable="YES" # Run NFS rpc.lockd needed for > client/server. rpc_statd_enable="YES" # Run NFS rpc.statd needed > for client/server. > > configuration for the qemu machine (client) : > operating system : FreeBSD 7.0-Stable > > in /etc/fstab : > 10.0.2.2:/shared /shared nfs rw 0 0 > > in /etc/rc.conf : > nfs_client_enable="YES" # This host is an NFS client (or NO). > rpcbind_enable="YES" # Run the portmapper service (YES/NO). > rpc_lockd_enable="YES" # Run NFS rpc.lockd needed for > client/server. rpc_statd_enable="YES" # Run NFS rpc.statd needed > for client/server. > > > I'm using tools/regression/file/flock to check the correct file locking : > $ ./flock ../../shared > > and the client machine seems locked > > the ethernet traffic between the client and the server when the client is > blocked is the following : > > (the "tunnel" port is the one used by the lockmanager according to rpcinfo) this is most likely due to misconfiguration, as the nat-ed configuration used for the qemu client does not allow back communication from the server lockd to the client rpcbind. TfH
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807201910.40171.thierry.herbelot>