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] How do I share a folder with xen guests on Linux?

To: Nico Kadel-Garcia <nkadel@xxxxxxxxx>
Subject: Re: [Xen-users] How do I share a folder with xen guests on Linux?
From: Rudi Ahlers <Rudi@xxxxxxxxxxx>
Date: Thu, 06 Mar 2008 14:40:33 +0200
Cc: Tomasz Chmielewski <mangoo@xxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 06 Mar 2008 04:41:56 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <47CFAF63.4090109@xxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Organization: SoftDux
References: <47CEBE6E.9080801@xxxxxxxxxxx> <47CEBF90.7030600@xxxxxxxx> <47CEC1C2.6080509@xxxxxxxxxxx> <47CEC49D.7040405@xxxxxxxx> <47CF53F6.1080804@xxxxxxxxx> <47CFA31C.7070202@xxxxxxxx> <47CFAF63.4090109@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.9 (Windows/20071031)
Nico Kadel-Garcia wrote:
Tomasz Chmielewski wrote:
Nico Kadel-Garcia schrieb:
Tomasz Chmielewski wrote:
Rudi Ahlers schrieb:
Tomasz Chmielewski wrote:
Rudi Ahlers schrieb:
Hi

How do I share a folder, say /bkp with xen hosts? I'm using CentOS 5.1 as host

NFS?


Sorry, I should have said, I'd like to the folder to be visible to the guests, and not NFS / FTP, as it will interfere with the network statistics on the NIC

I don't think there are any other options to share data between the host and guest other than using network.

Certainly, using a serial connection or VNC are not an option.

Why not create a separate interface just for this kind of traffic?


Yes, there is. Once you've booted the Xen domaiin, you can add hte block device or ISO or other file system image to the list of block devices of the guest domain with the "xm" command, and then log into the Xen guest and mount it there. I recommend this only for read-only block devices, to avoid becoming confused about what is writing to the partition and how too manage it.

Yeah, but it's not really a "shared" device then.
Well, yes. If you have multiple systems able to write to the device, you're begging for disaster. That requires network-style mountable file systems, because each OS makes the working system that it owns its own block devices and no one else is mucking with them. It's as bad as having two infants and only one breast for them. They have to take turns.....

_______________________________________________
ok, I didn't know that's how it works. With VirtualBox one can just share a folder between the host & guest (or multiple guests for that matter) without any problems, so I thought this was the case with Xen as well. But I'll use NFS then between them, thank you :)

--

Kind Regards
Rudi Ahlers
CEO, SoftDux

Web:   http://www.SoftDux.com
Check out my technical blog, http://blog.softdux.com for Linux or other 
technical stuff, or visit http://www.WebHostingTalk.co.za for Web Hosting stugg


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