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] can not start guest domain exported from NFS

To: Steven <wangwangkang@xxxxxxxxx>
Subject: Re: [Xen-users] can not start guest domain exported from NFS
From: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Date: Fri, 17 Apr 2009 21:13:19 +0700
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 17 Apr 2009 07:14:01 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <5040ecc60904170628i6ec7c769h91c336eb66b97b3@xxxxxxxxxxxxxx>
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: <5040ecc60904170628i6ec7c769h91c336eb66b97b3@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Fri, Apr 17, 2009 at 8:28 PM, Steven <wangwangkang@xxxxxxxxx> wrote:
> Then I changes the xen config file as follows.
> kernel="/boot/vmlinuz"
> ramdisk="/boot/initrd...."
> root="/dev/root"
> nfs_server="192.168.1.1"
> nfs_root=/xen/guest
>
> When I boot the guest domain, the error is it can not file the
> /dev/root, ie., the root file system. Anyone can help me. Thanks.

Short answer, nfs root needs a special setup, more than just editing
xen config file.

In the old days (last time I use nfs root was many years ago) the
kernel needs to be able to configure IP address by itself without
tools like "ifconfig". Then it needs nfs client support built in, not
as a module. Those requirements may not be there anymore if you have a
specialized initrd, but again it requires special setup. I'm not sure
such functionality is enabled by default in "normal" kernels (like
Centos or xen.org kernel).

These link might give you some info
http://www.virtuatopia.com/index.php/CentOS_5_-_Build_a_Custom_Xen_Kernel_with_NFS_Root_Filesystem_%28CONFIG_ROOT_NFS%29_Support
http://www.itp.uzh.ch/~dpotter/howto/diskless

You didn't say what your primary purpose for nfs root is. If it's only
to have centralized storage (to ease live migration, for example),
it's MUCH easier to either :
- use iscsi on domU and setup domU to have iscsi root.
- use iscsi on dom0, setup domU normally on iscsi-imported block device
- store domU image on nfs

Regards,

Fajar

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

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