|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] can not start guest domain exported from NFS
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
|
|
|
|
|