Loading...

xen-users@lists.xensource.com

[Prev] Thread [Next]  |  [Prev] Date [Next]

[Xen-users] Anyone use xen 4.x root on nfsv4? wang bo Thu Apr 12 06:00:21 2012


发件人:  wang bo <[EMAIL PROTECTED]>
日期:  Thu, 12 Apr 2012 19:50:11 +0800
至:  <[EMAIL PROTECTED]>
主题:   Anyone use xen 4.x root on nfsv4?

Hi, guys!
I want to use xen 4.1.0 to boot from nfsv4, the config of DomU is:

nfsclient.cfg:

#Common things.
kernel = '/boot/vmlinuz-3.1.0-pnfs'
ramdisk = '/boot/initrd.img-3.1.0-pnfs'
memory = 1064

#Name
name    = 'nfsclient'
hostname= 'nfsclient'

# Networking basics
interface = 'eth0'
vif = [ "mac=00:16:3e:9d:00:01,vifname=vif-nfsclient" ]
netmask   = '255.255.255.0'
gateway   = '10.0.1.254'
ip        = '10.0.1.183'
broadcast = '10.0.1.255'


# NFS option
nfs_server = '10.0.1.198'
nfs_root   = '/,v4,tcp'
root       = '/dev/nfs'

And the /etc/exports file of nfs –server is:
/root/debian    
10.0.1.0/255.255.255.0(rw,sync,fsid=0,insecure,no_subtree_check,no_root_squa
sh)

I do have stab file in /root/debian/etc/fstab, and I can normally mount
nfs-client on Dom0.When I start DomU, I got error message as follows:

[   12.412678] Freeing unused kernel memory: 1100k freed
Loading, please wait...
Begin: Loading essential drivers ... done.
[   12.442670] udevd[81]: starting version 173
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ...
done.
Begin: Running /scripts/local-premount ... done.
mount: can't read '/etc/fstab': No such file or directory
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... mount: mounting /dev on /root/dev
failed: No such file or directory
done.
mount: mounting /sys on /root/sys failed: No such file or directory
mount: mounting /proc on /root/proc failed: No such file or directory
Target filesystem doesn't have requested /sbin/init.
No init found. Try passing init= booting.

Can anyone tell me how to fix this error?
Thanks a lot in advance!

---------
eaglewatcher


_______________________________________________
Xen-users mailing list
[EMAIL PROTECTED]
http://lists.xen.org/xen-users