WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Sharing file/folder

To: Simon Hobson <linux@xxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Sharing file/folder
From: Erwan RENIER <erwan.renier@xxxxxxxxxxx>
Date: Mon, 14 Feb 2011 20:25:24 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 14 Feb 2011 11:26:39 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <p0624080ec97f2c03be32@xxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTimvqmWz5F7mGBHBZtjRP2tVX38t0j=rnvSHfbJ=@xxxxxxxxxxxxxx> <p0624080ec97f2c03be32@xxxxxxxxxxxxxxxxxxxxxx>
Reply-to: erwan.renier@xxxxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; fr; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7
Le 14/02/2011 20:05, Simon Hobson a écrit :
I need to share some files between VMs. This files will be used to transfer some information (read/write). But I need do it without any network resource (NFS or others). I've tried to do it sharing a partition just for test proposes, but i see that when i create a file on one VM another can't see it and there isnt any concurrence in this approach.
Anyone can help me??

Do it via networking. Think of each virtual machine guest as though it was running on a separate bare metal computer and that's about what you get with Xen in terms of inter-system communications.

It might be possible to do it by sharing a virtual disk, but you will NEED to run a cluster file system on it with appropriate software on each machine that accesses it. Without a cluster filesystem, then you are absolutely guaranteed to get terminal filesystem corruption. This would in effect be very similar to running a cluster FS on a network volume.

For networking there are many options depending on your needs. Clearly you could set up a share via NFS (or any other file sharing service you like), via tools like RCP or SCP, via something like rsync (which works very well as a service), or several other options.

Maybe you can make it by avoiding cache with directio or raw device,
But you will have to implement a locking system, unless you're sure the different VM's don't modify data at the same time
I never tried however, and , is there really a point ?

I 'd like to listen to your purpose here, i think it could be interresting.

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>