Re: NFS Booting - Kernel modification

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

 



Paul Wouters wrote:
On Mon, 26 Feb 2007, Abhishek Gaurav wrote:

If I use a ramdisk, the error log changes (its attached to this mail). Not
sure if I am in the right direction.

Yes you are!

Your logs show:

Bootdata ok (command line is  ip=136.159.8.59:136.159.8.14:136.159.8.14:255.255.255.0::eth0:off root=/dev/nfs nfsroot=136.159.8.14:/home/xen-images/fc4 )

Linux version 2.6.18-1.2798.fc6xen (brewbuilder@xxxxxxxxxxxxxxxxxxxxxxxxxxx) (gcc version 4.1.1 20061011 (Red Hat 4.1.1-30)) #1 SMP Mon Oct 16 14:59:01 EDT 2006

SELinux:  Initializing.

checking if image is initramfs... it is

RAMDISK driver initialized: 16 RAM disks of 16384K size 4096 blocksize

it loads the ramdisk

Xen virtual console successfully installed as xvc0

XENBUS: Device with no driver: device/vif/0

Looks like a missing xenblk or xennet driver...

Write protecting the kernel read-only data: 440k

Red Hat nash version 5.1.19 starting
Mounting proc filesystem
Mounting sysfs filesystem
Creating /dev
Creating initial device nodes
Setting up hotplug.
Creating block device nodes.
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 dm-mod.ko module
device-mapper: ioctl: 4.7.0-ioctl (2006-06-24) initialised: dm-devel@xxxxxxxxxx

Loading dm-mirror.ko module
Loading dm-zero.ko module
Loading dm-snapshot.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!

I am confused that I don't see xenblk being loaded, yet you are
able to get mount the rootfs. Might be a NFS thing.

Try creating a special ramdisk/initrd for this machine on the
dom0 using:

mkinitrd /boot/initrd-2.6.18-1.2798.fc6xenU.img --preload=xenblk --with=xennet 2.6.18-1.2798.fc6xen

and change your config to use the ramdisk /boot/initrd-2.6.18-1.2798.fc6xenU.img instead.

Please let me know if this works.

Paul
Hi Paul,
It ends up in the same error with the following diff in the boot sequence. I have also attached the complete boot sequence.

15,16c15,16
Memory: 1017080k/1056768k available (2323k kernel code, 30784k reserved, 1328k data, 172k init) Calibrating delay using timer specific routine.. 6002.08 BogoMIPS (lpj=12004172)
---
Memory: 1016956k/1056768k available (2323k kernel code, 30912k reserved, 1328k data, 172k init) Calibrating delay using timer specific routine.. 6001.96 BogoMIPS (lpj=12003922)
26c26
CPU: Processor Core ID: 1
---
CPU: Processor Core ID: 0
54c54
audit(1172530246.553:1): initialized
---
audit(1172530185.634:1): initialized
87,88c87,88
Memory: 1017080k/1056768k available (2323k kernel code, 30784k reserved, 1328k data, 172k init) Calibrating delay using timer specific routine.. 6002.08 BogoMIPS (lpj=12004172)
---
Memory: 1016956k/1056768k available (2323k kernel code, 30912k reserved, 1328k data, 172k init) Calibrating delay using timer specific routine.. 6001.96 BogoMIPS (lpj=12003922)
98c98
CPU: Processor Core ID: 1
---
CPU: Processor Core ID: 0
126c126
audit(1172530246.553:1): initialized
---
audit(1172530185.634:1): initialized
170a171
> Loading xenblk.ko module
187c188,191
< Creating root device.
---
> Loading xennet.ko module
> netfront: Initialising virtual ethernet driver.
netfront: Created netdev eth0 with flipping receive path.
Creating root device.


Also, for your reference, the config file for the VM is:

kernel = "/boot/vmlinuz-2.6.18-1.2798.fc6xen"
ramdisk = "/boot/initrd-2.6.18-1.2798.fc6xenU.img"
name = "grc59"
memory = "1024"
vif = [ 'mac=00:16:3e:0e:81:59' ]
root = '/dev/nfs'
nfs_server = '136.159.8.14'
nfs_root = '/home/xen-images/fc4'


Thanks for the help,
Abhishek.
Bootdata ok (command line is  root=/dev/nfs nfsroot=136.159.8.14:/home/xen-images/fc4 )

Linux version 2.6.18-1.2798.fc6xen (brewbuilder@xxxxxxxxxxxxxxxxxxxxxxxxxxx) (gcc version 4.1.1 20061011 (Red Hat 4.1.1-30)) #1 SMP Mon Oct 16 14:59:01 EDT 2006

BIOS-provided physical RAM map:

 Xen: 0000000000000000 - 0000000040800000 (usable)

No mptable found.

Built 1 zonelists.  Total pages: 264192

Kernel command line:  root=/dev/nfs nfsroot=136.159.8.14:/home/xen-images/fc4 

Initializing CPU#0

PID hash table entries: 4096 (order: 12, 32768 bytes)

Xen reported: 2400.084 MHz processor.

Console: colour dummy device 80x25

Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)

Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)

Software IO TLB disabled

Memory: 1016956k/1056768k available (2323k kernel code, 30912k reserved, 1328k data, 172k init)

Calibrating delay using timer specific routine.. 6001.96 BogoMIPS (lpj=12003922)

Security Framework v1.0.0 initialized

SELinux:  Initializing.

SELinux:  Starting in permissive mode

selinux_register_security:  Registering secondary module capability

Capability LSM initialized as secondary

Mount-cache hash table entries: 256

CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)

CPU: L2 Cache: 1024K (64 bytes/line)

CPU: Physical Processor ID: 1

CPU: Processor Core ID: 0

(SMP-)alternatives turned off

Brought up 1 CPUs

checking if image is initramfs... it is

Grant table initialized

NET: Registered protocol family 16

Brought up 1 CPUs

PCI: setting up Xen PCI frontend stub

ACPI: Interpreter disabled.

Linux Plug and Play Support v0.97 (c) Adam Belay

pnp: PnP ACPI: disabled

xen_mem: Initialising balloon driver.

usbcore: registered new driver usbfs

usbcore: registered new driver hub

PCI: System does not support PCI

PCI: System does not support PCI

NetLabel: Initializing

NetLabel:  domain hash size = 128

NetLabel:  protocols = UNLABELED CIPSOv4

NetLabel:  unlabeled traffic allowed by default

NET: Registered protocol family 2

IP route cache hash table entries: 65536 (order: 7, 524288 bytes)

TCP established hash table entries: 131072 (order: 10, 4194304 bytes)

TCP bind hash table entries: 65536 (order: 9, 2097152 bytes)

TCP: Hash tables configured (established 131072 bind 65536)

TCP reno registered

IA-32 Microcode Update Driver: v1.14-xen <tigran@xxxxxxxxxxx>

audit: initializing netlink socket (disabled)

audit(1172530185.634:1): initialized

VFS: Disk quotas dquot_6.5.1

Dquot-cache hash table entries: 512 (order 0, 4096 bytes)

SELinux:  Registering netfilter hooks

Initializing Cryptographic API

ksign: Installing public key data

Loading keyring

- Added public key 4D36EEF71C3A3150

- User ID: Red Hat, Inc. (Kernel Module GPG key)

io scheduler noop registered

io scheduler anticipatory registered

io scheduler deadline registered

io scheduler cfq registered (default)

pci_hotplug: PCI Hot Plug PCI Core version: 0.5

rtc: IRQ 8 is not free.

Non-volatile memory driver v1.2

Linux agpgart interface v0.101 (c) Dave Jones

RAMDISK driver initialized: 16 RAM disks of 16384K size 4096 blocksize

Xen virtual console successfully installed as xvc0

Bootdata ok (command line is  root=/dev/nfs nfsroot=136.159.8.14:/home/xen-images/fc4 )

Linux version 2.6.18-1.2798.fc6xen (brewbuilder@xxxxxxxxxxxxxxxxxxxxxxxxxxx) (gcc version 4.1.1 20061011 (Red Hat 4.1.1-30)) #1 SMP Mon Oct 16 14:59:01 EDT 2006

BIOS-provided physical RAM map:

 Xen: 0000000000000000 - 0000000040800000 (usable)

No mptable found.

Built 1 zonelists.  Total pages: 264192

Kernel command line:  root=/dev/nfs nfsroot=136.159.8.14:/home/xen-images/fc4 

Initializing CPU#0

PID hash table entries: 4096 (order: 12, 32768 bytes)

Xen reported: 2400.084 MHz processor.

Console: colour dummy device 80x25

Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)

Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)

Software IO TLB disabled

Memory: 1016956k/1056768k available (2323k kernel code, 30912k reserved, 1328k data, 172k init)

Calibrating delay using timer specific routine.. 6001.96 BogoMIPS (lpj=12003922)

Security Framework v1.0.0 initialized

SELinux:  Initializing.

SELinux:  Starting in permissive mode

selinux_register_security:  Registering secondary module capability

Capability LSM initialized as secondary

Mount-cache hash table entries: 256

CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)

CPU: L2 Cache: 1024K (64 bytes/line)

CPU: Physical Processor ID: 1

CPU: Processor Core ID: 0

(SMP-)alternatives turned off

Brought up 1 CPUs

checking if image is initramfs... it is

Grant table initialized

NET: Registered protocol family 16

Brought up 1 CPUs

PCI: setting up Xen PCI frontend stub

ACPI: Interpreter disabled.

Linux Plug and Play Support v0.97 (c) Adam Belay

pnp: PnP ACPI: disabled

xen_mem: Initialising balloon driver.

usbcore: registered new driver usbfs

usbcore: registered new driver hub

PCI: System does not support PCI

PCI: System does not support PCI

NetLabel: Initializing

NetLabel:  domain hash size = 128

NetLabel:  protocols = UNLABELED CIPSOv4

NetLabel:  unlabeled traffic allowed by default

NET: Registered protocol family 2

IP route cache hash table entries: 65536 (order: 7, 524288 bytes)

TCP established hash table entries: 131072 (order: 10, 4194304 bytes)

TCP bind hash table entries: 65536 (order: 9, 2097152 bytes)

TCP: Hash tables configured (established 131072 bind 65536)

TCP reno registered

IA-32 Microcode Update Driver: v1.14-xen <tigran@xxxxxxxxxxx>

audit: initializing netlink socket (disabled)

audit(1172530185.634:1): initialized

VFS: Disk quotas dquot_6.5.1

Dquot-cache hash table entries: 512 (order 0, 4096 bytes)

SELinux:  Registering netfilter hooks

Initializing Cryptographic API

ksign: Installing public key data

Loading keyring

- Added public key 4D36EEF71C3A3150

- User ID: Red Hat, Inc. (Kernel Module GPG key)

io scheduler noop registered

io scheduler anticipatory registered

io scheduler deadline registered

io scheduler cfq registered (default)

pci_hotplug: PCI Hot Plug PCI Core version: 0.5

rtc: IRQ 8 is not free.

Non-volatile memory driver v1.2

Linux agpgart interface v0.101 (c) Dave Jones

RAMDISK driver initialized: 16 RAM disks of 16384K size 4096 blocksize

Xen virtual console successfully installed as xvc0

Event-channel device installed.

Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2

ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx

ide-floppy driver 0.99.newide

usbcore: registered new driver libusual

usbcore: registered new driver hiddev

usbcore: registered new driver usbhid

drivers/usb/input/hid-core.c: v2.6:USB HID core driver

PNP: No PS/2 controller found. Probing ports directly.

i8042.c: No controller found.

mice: PS/2 mouse device common for all mice

md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27

md: bitmap version 4.39

TCP bic registered

Initializing IPsec netlink socket

NET: Registered protocol family 1

NET: Registered protocol family 17

XENBUS: Device with no driver: device/vif/0

Write protecting the kernel read-only data: 440k

Red Hat nash version 5.1.19 starting
Mounting proc filesystem
Mounting sysfs filesystem
Creating /dev
Creating initial device nodes
Setting up hotplug.
Creating block device nodes.
Loading xenblk.ko module
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 dm-mod.ko module
device-mapper: ioctl: 4.7.0-ioctl (2006-06-24) initialised: dm-devel@xxxxxxxxxx

Loading dm-mirror.ko module
Loading dm-zero.ko module
Loading dm-snapshot.ko module
Loading xennet.ko module
netfront: Initialising virtual ethernet driver.

netfront: Created netdev eth0 with flipping receive path.

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!

 
--
Fedora-xen mailing list
Fedora-xen@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-xen

[Index of Archives]     [Fedora General]     [Fedora Music]     [Linux Kernel]     [Fedora Desktop]     [Fedora Directory]     [PAM]     [Big List of Linux Books]     [Gimp]     [Yosemite News]

  Powered by Linux