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

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



Forwarding to Xen-users list


---------- Forwarded message ----------
From: wang bo <wbeaglewatcher@xxxxxxxxx>
Date: Thu, Apr 12, 2012 at 5:06 AM
Subject: Anyone use xen 4.x root on nfsv4
To: xen-users-owner@xxxxxxxxxxxxx


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




-- 
Todd Deshane
http://www.linkedin.com/in/deshantm
http://blog.xen.org/
http://wiki.xen.org/

_______________________________________________
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®.