[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] How do I share a folder with xen guests on Linux?


  • To: Rudi Ahlers <Rudi@xxxxxxxxxxx>
  • From: Nico Kadel-Garcia <nkadel@xxxxxxxxx>
  • Date: Thu, 06 Mar 2008 08:42:19 +0000
  • Cc: Tomasz Chmielewski <mangoo@xxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Thu, 06 Mar 2008 00:43:03 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=oy2jxXhu/3A574LwfLD8UW9/YqCd65reCidrq6Bc7j1qcF3Wsvfhsq/4DefxZlVhZRX6fgj5KIzt3eUszAOML9fkYZwu+MJNxcoXRZwX+wdD//ewjNlM6yep66Dl6No/UTpD28rBveszRmSV0FlA9l+txkfc5O6z239VFJ+lAk0=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Rudi Ahlers wrote:
Nico Kadel-Garcia wrote:
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.

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

This is what I am looking for, but the purpose of the exercise is to allow the VM's to backup their data to the extra block device. /dev/hdd1 is basically an extra empty HDD that I want to use for backups, so it's imperative for them to write to them. Currently it's mounted on /bck on the dom0, so I think I'll just create a seperate folder for each vm, like /bck/vm01, /bck/vm02, etc

But, how do I share that block device with the domU's? I'm very new to Xen

Only do it to one guest at a time: allowing multiple guests to mount and write at the same time is deadly.

But there are plenty of published walk throughs, look up "block-attach" in the manual page for xm, which has a good example.



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.