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] DomU image file on NFS Storage

To: <admin@xxxxxxxxxxx>, Xen Users List <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-users] DomU image file on NFS Storage
From: Antonio Colin <dftonywhite@xxxxxxxxxxx>
Date: Sat, 8 Oct 2011 12:07:32 -0500
Cc:
Delivery-date: Sat, 08 Oct 2011 10:08:43 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
Importance: Normal
In-reply-to: <82CD2354ADF84CDB81A769EABB714F19@maindesk>
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: <SNT114-W5557D74526111B7398717BA6FF0@xxxxxxx>, <82CD2354ADF84CDB81A769EABB714F19@maindesk>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

Yes, but I think that is only for Xen Server isn't it? I am using Xen hypervisor 4.0.0 + Debian Lenny as Dom0. 
Is there a way to achieve NFS SR on Xen 4 ?? I have been looing for that on Google but nothing yet.

Thank you in advance,

Tony.


From: admin@xxxxxxxxxxx
To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: RE: [Xen-users] DomU image file on NFS Storage
Date: Sat, 8 Oct 2011 08:54:54 -0500

In Xen, you need to create a Storage Repository for the NFS share instead of trying to manually make the connection to the NFS share.  Then Xen will be able to use the NFS share for storing DomU images.

 

-----Original Message-----
From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Antonio Colin
Sent:
Saturday, October 08, 2011 12:03 AM
To: Xen Users List
Subject: [Xen-users] DomU image file on NFS Storage

 

Hi everyone,

 

I have created a CentOS4 PV on a Xen host contained in a *.img file. Now I want to store that image file

on a NFS server. Does anyone have a config.sxp file example and want to share it on a pastebin service?

 

I have put the *.img on an NFS server, then mounted the img using #mount -o loop image.img /mnt/centos

and then exported it to the xen host but it does not work since the DomU kernel does not have Root NFS support.

 

How can I do instead to read directly from the xen host the *.img file stored in the NFS server, I think it would

look like: nfs_root = "/mnt/images/centos/image.img".

 

** This does not work at all, it ends up with a kernel panic on console.

 

kernel = "/mnt/images/centos/boot/vmlinuz-2.6.9-89.ELxenU"

ramdisk = "/mnt/images/centos/boot/initrd-2.6.9-89.ELxenU.img"

memory = 512

name = "centos4"

vcpus = 1

vif = ['']

dhcp = "dhcp"

ip = "192.168.1.100"

netmask  = "255.255.255.0"

gateway  = "192.168.1.254"

hostname = "centos4"

nfs_root = "/mnt/images/centos/"

nfs_server = "192.168.1.98"

root = "/dev/root"

on_reboot   = 'restart'

on_crash    = 'restart'

 

 

I would really appreciate one example or config option.

Regards,

Tony.

 


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