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

[Xen-users] Anyone use xen 4.x root on nfsv4?





åää: wang bo <snak-707@xxxxxxx>
ææ: Thu, 12 Apr 2012 19:50:11 +0800
è: <xen-users@xxxxxxxxxxxxxxxxxxx>
äé: 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_squash)

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
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

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