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/
Home Products Support Community News


[Xen-devel] Problem booting guest VM over NFS

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Problem booting guest VM over NFS
From: "sanjay kushwaha" <sanjay.kushwaha@xxxxxxxxx>
Date: Fri, 3 Aug 2007 10:26:33 -0700
Delivery-date: Fri, 03 Aug 2007 10:24:08 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=B60b50SXWy3/tFyQ4Og38AIuw0lRSD8wVR35R91dncfoGJw1tsRcUBZmlFCn77if3ydBzWenaOjZus3gGBLUzW3cMJQ+RV2EI2wmxkZgVlnGGNs7qi7HDm31MvzBg+/9bl7Al6K/8gOgfcasGlfF/zgIM+vPrpc/rAw3mY+mOI0=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=EIRcpjUMsBZlD7xYbCZIAi1hzHYL+c2oQPXi7OBdWMaoedDvV5yhp+R9qfTZ7k+c2DLqSAPGL+nJggb5pYQtgGCrgzazS3bN5K0yake/DwXO4GjxNqH1QUjoN2orpifqmLATGHahKfKnBvvBDA3CXEWzLFxP8QftzUIov/vhAkY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi Folks,
I am trying to boot a FC 6 guest VM over latest unstable xen. The boot fails giving me the following error.

md: bitmap version 4.39
NET: Registered protocol family 1
NET: Registered protocol family 17
netfront: device eth0 has copying receive path.
mgmt mgmt-0: 16 Could not register device
XENBUS: Device with no driver: device/console/0
Sending DHCP requests .., OK
IP-Config: Got DHCP answer from, my address is
IP-Config: Complete:
device=eth0, addr=, mask= , gw=,
host=, domain=hpl.hp.com, nis-domain=(none),
bootserver=, rootserver=, rootpath=
Freeing unused kernel memory: 184k freed
Red Hat nash version starting
Mounting proc filesystem
Mounting sysfs filesystem
Creating /dev
Creating initial device nodes
Setting up hotplug.
Creating block device nodes.
Loading usbcore.ko module
usbcore: registered new driver usbfs
usbcore: registered new driver hub
Loading uhci-hcd.ko module
USB Universal Host Controller Interface driver v3.0
Loading ohci-hcd.ko module
Loading ehci-hcd.ko module
Loading jbd.ko module
Loading ext3.ko module
Loading scsi_mod.ko module
SCSI subsystem initialized
Loading sd_mod.ko module
Loading cciss.ko module
HP CISS Driver (v 3.6.10)
Loading scsi_transport_fc.ko module
Loading firmware_class.ko module
Loading qla2xxx.ko module
QLogic Fibre Channel HBA Driver
Loading ide-disk.ko module
Creating root device.
Mounting root filesystem.
mount: could not find filesystem '/dev/root'
Setting up other filesystems.
Setting up new root fs
setuproot: moving /dev failed: No such file or directory
no fstab.sys, mounting internal defaults
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
Switching to new root and running init.
unmounting old /dev
unmounting old /proc
unmounting old /sys
switchroot: mount failed: No such file or directory
Kernel panic - not syncing: Attempted to kill init!

here is my guest config file.

# Kernel image file.
kernel = "/boot/vmlinuz-2.6-xen"

# Optional ramdisk.
ramdisk = "/boot/initrd-2.6-xen.img"

name = "WebServer"

vif = [ '' ]

#disk = [ 'phy:/dev/cciss/c0d0p5,sda1,w', 'file:/swap/swap_vm1,sda2,w']
#disk = [ 'phy:sda1,sda1,w']

# Set if you want dhcp to allocate the IP address.
# Set netmask.
# Set default gateway.
# Set the hostname.
#hostname= "vm1"

# Set root device.
#root = "/dev/sda1 ro"

# Root device for nfs.
root = "/dev/nfs"
# The nfs server.
nfs_server = ""
# Root directory on the nfs server.
nfs_root = "/mnt/VM1"

# Sets runlevel 4.
extra = "4"

I have setup the nfs server correctly because I am able to mount the root NFS directory from another machine using the mount command.
#mount /mnt/

I have compiled all NFS related modules inside the guest kernel (i.e. they are not compiled as modules)

here is what my fstab entry for the guest VM says

#/dev/sda1 / ext3 defaults 1 1 / nfs defaults 1 1
#/dev/nfs / nfs defaults 1 1
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0

I have tried all the first 3 options in the above list as root device but everytime it fails with the same error.

One thing I don't understand is that when I have specified  root = "/dev/nfs"  in the guest config file, why does it fail trying to mount /dev/root  device

Has anyone seen this problem? Could anyone please help me with this?


PhD Candidate, Georgia Tech
Xen-devel mailing list
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Problem booting guest VM over NFS, sanjay kushwaha <=