Sharing directories between 2 Linux machines

I am running 3 Virtual Machines VM1, VM2 and VM3 (all three have Suse 11.2 installed).

VM3:-
VM3 has got a directory (shared between VM1 and VM2) called /var/xyz

VM1 and VM2:-
An application running on VM1 and VM2 both write to the same shared folder /var/xyz (sitting on VM3).

So my question here is, can I create such a folder called /var/xyz on VM3 which can be shared by both VM1 and VM2 for writing data?

NOTE:- The user (uid), group (gid), name of the user and group on VM1 and VM2 exactly match. It is an exact replica on both VM1 and VM2. So, how can I make /var/xyz folder on VM3 sharable and writable between VM1 and VM2?

If so, can you please give me the command (using mount cifs (or) whatever is applicable to this case) to perform such an action?

Thank you Sir and I really appreciate each and everyone’s advise in getting me up and running on this task.

I appreciate anybody who answers this question and shed some light on how to perform this activity.

I hope I did not offend anybody by asking such a basic question but please understand my position as a newbie into Linux world.

You can use NFS to mount it under multiple machines. However, make sure that you use nosharecache option while mounting.

I would use that too. Mind, who has to write to the share, a user or root?

Thank you all for your wonderful replies… I appreciate that…