Re: Unable to start a FC3 domU under FC6 using Fedora bundled Xen packages

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

 



Hi Ninny,
thanks for your help.

Here's what I get without using the initrd:

VFS: Cannot open root device "sda1" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

Please let me have your considerations.

Thanks again,
Andrea

On 1/25/07, ninny issac <ninyissac@xxxxxxxxx> wrote:
Hi,
Could you try to use sda1/sda2 instead of xvda1/2.
ie, disk =
['tap:aio:/xen/mail/fedora.img,sda1,w','tap:aio:/xen/mail/swap1.img,sda2,w']
Also can you comment out the initrd line from DomU grub:
title  Fedora Core 3
        root (hd0,0)
        kernel /boot/vmlinuz-2.6.18-1.2869.fc6xen root=/dev/sda1
#       initrd /boot/initrd-2.6.18-1.2869.fc6xenU.img

The error says that kernel could not find /sbin/init , so just try with the
above configuration.





On 1/18/07, AndreGround <andreground@xxxxxxxxx> wrote:
> Hi,
> here are all my config files & logs taken from my test:
>
> Please note that the kernel used is the one provided by Fedora RPM
Packages.
> The initrd (initrd-2.6.18-1.2869.fc6xenU.img) has been
generated using
> the mkinitrd syntax listed below.
>
> - Test 1)
>
> Xen config file:
> #kernel ="/boot/vmlinuz-2.6.18-1.2869.fc6xen"
> #ramdisk = "/boot/initrd-2.6.18-1.2869.fc6xenU.img"
> memory = 256
> name = "mail"
> bootloader="/usr/bin/pygrub"
> #vif = ['mac=aa:00:00:00:00:01']
> disk =
['tap:aio:/xen/mail/fedora.img,xvda1,w','tap:aio:/xen/mail/swap1.img,xvda2,w']
> #root = "/dev/sda1 ro"
> #extra = "ro selinux=0 3"
>
> DomU grub:
> title  Fedora Core 3
>         root (hd0,0)
>         kernel /boot/vmlinuz-2.6.18-1.2869.fc6xen root=/dev/xvda1
>         initrd /boot/initrd-2.6.18-1.2869.fc6xenU.img
>
> DomU fstab:
> # This file is edited by fstab-sync - see 'man fstab-sync' for details
> /dev/xvda1              /                       ext3
defaults        1 1
> none                    /dev/pts                devpts
 gid=5,mode=620  0 0
> none                    /dev/shm                tmpfs
defaults        0 0
> none                    /proc                   proc
defaults        0 0
> none                    /sys                    sysfs
defaults        0 0
> /dev/xvda2              swap                    swap
 defaults        0 0
>
> Initrd creation script:
> mkinitrd -f  --with=xennet --preload=xenblk
> /xen/mnt/boot/initrd-2.6.18-1.2869.fc6xenU.img
> --fstab=/xen/mnt/etc/fstab 2.6.18-1.2869.fc6xen
>
> Initrd:
> [root@hulk initrd]# cat init
> #!/bin/nash
>
> mount -t proc /proc /proc
> setquiet
> echo Mounting proc filesystem
> echo Mounting sysfs filesystem
> mount -t sysfs /sys /sys
> echo Creating /dev
> mount -o mode=0755 -t tmpfs /dev /dev
> mkdir /dev/pts
> mount -t devpts -o gid=5,mode=620 /dev/pts /dev/pts
> mkdir /dev/shm
> mkdir /dev/mapper
> echo Creating initial device nodes
> mknod /dev/null c 1 3
> mknod /dev/zero c 1 5
> mknod /dev/systty c 4 0
> mknod /dev/tty c 5 0
> mknod /dev/console c 5 1
> mknod /dev/ptmx c 5 2
> mknod /dev/rtc c 10 135
> mknod /dev/tty0 c 4 0
> mknod /dev/tty1 c 4 1
> mknod /dev/tty2 c 4 2
> mknod /dev/tty3 c 4 3
> mknod /dev/tty4 c 4 4
> mknod /dev/tty5 c 4 5
> mknod /dev/tty6 c 4 6
> mknod /dev/tty7 c 4 7
> mknod /dev/tty8 c 4 8
> mknod /dev/tty9 c 4 9
> mknod /dev/tty10 c 4 10
> mknod /dev/tty11 c 4 11
> mknod /dev/tty12 c 4 12
> mknod /dev/ttyS0 c 4 64
> mknod /dev/ttyS1 c 4 65
> mknod /dev/ttyS2 c 4 66
> mknod /dev/ttyS3 c 4 67
> echo Setting up hotplug.
> hotplug
> echo Creating block device nodes.
> mkblkdevs
> echo "Loading xenblk.ko module"
> insmod /lib/xenblk.ko
> echo "Loading uhci-hcd.ko module"
> insmod /lib/uhci-hcd.ko
> echo "Loading ohci-hcd.ko module"
> insmod /lib/ohci-hcd.ko
> echo "Loading ehci-hcd.ko module"
> insmod /lib/ehci-hcd.ko
> mount -t usbfs /proc/bus/usb /proc/bus/usb
> echo "Loading jbd.ko module"
> insmod /lib/jbd.ko
> echo "Loading ext3.ko module"
> insmod /lib/ext3.ko
> echo "Loading scsi_mod.ko module"
> insmod /lib/scsi_mod.ko
> echo "Loading sd_mod.ko module"
> insmod /lib/sd_mod.ko
> echo "Loading 3w-xxxx.ko module"
> insmod /lib/3w- xxxx.ko
> echo "Loading xennet.ko module"
> insmod /lib/xennet.ko
> mkblkdevs
> resume /dev/xvda2
> echo Creating root device.
> mkrootdev -t ext3 -o defaults,ro /dev/xvda1
> echo Mounting root filesystem.
> mount /sysroot
> echo Setting up other filesystems.
> setuproot
> echo Switching to new root and running init.
> switchroot
>
> Result:
> exec of init (/sbin/init) failed!!!: No such file or directory
> Kernel panic - not syncing: Attempted to kill init!
>
> Log:
> [root@hulk ~]# xm create -c mail
> Using config file "/etc/xen/mail".
> Going to boot Fedora Core 3
>   kernel: /boot/vmlinuz-2.6.18-1.2869.fc6xen
>   initrd: /boot/initrd-2.6.18-1.2869.fc6xenU.img
> Started domain mail
> Linux version 2.6.18-1.2869.fc6xen
> (brewbuilder@xxxxxxxxxxxxxxxxxxxxxxxxxxxx ) (gcc version
4.1.1 20061011
> (Red Hat 4.1.1-30)) #1 SMP Wed Dec 20 15:28:06 EST 2006
> BIOS-provided physical RAM map:
> Xen: 0000000000000000 - 0000000010800000 (usable)
> 0MB HIGHMEM available.
> 264MB LOWMEM available.
> Using x86 segment limits to approximate NX protection
> ACPI in unprivileged domain disabled
> Built 1 zonelists.  Total pages: 67584
> Kernel command line:  root=/dev/xvda1
> Enabling fast FPU save and restore... done.
> Enabling unmasked SIMD FPU exception support... done.
> Initializing CPU#0
> CPU 0 irqstacks, hard=c078b000 soft=c076b000
> PID hash table entries: 2048 (order: 11, 8192 bytes)
> Xen reported: 1800.059 MHz processor.
> Console: colour dummy device 80x25
> Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
> Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
> Software IO TLB disabled
> vmalloc area: d1000000-f4ffe000, maxmem 2d7fe000
> Memory: 250940k/270336k available (2099k kernel code, 10876k reserved,
> 842k data, 180k init, 0k highmem)
> Checking if this processor honours the WP bit even in supervisor mode...
Ok.
> Calibrating delay using timer specific routine.. 4503.36 BogoMIPS
(lpj=9006734)
> 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: 512
> CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
> CPU: L2 Cache: 256K (64 bytes/line)
> Checking 'hlt' instruction... OK.
> SMP alternatives: switching to UP code
> Freeing SMP alternatives: 12k freed
> Brought up 1 CPUs
> checking if image is initramfs... it is
> Freeing initrd memory: 3324k freed
> 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: 4096 (order: 2, 16384 bytes)
> TCP established hash table entries: 16384 (order: 6, 327680 bytes)
> TCP bind hash table entries: 8192 (order: 5, 163840 bytes)
> TCP: Hash tables configured (established 16384 bind 8192)
> TCP reno registered
> IA-32 Microcode Update Driver: v1.14-xen < tigran@xxxxxxxxxxx>
> audit: initializing netlink socket (disabled)
> audit(1169130101.084:1): initialized
> VFS: Disk quotas dquot_6.5.1
> Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
> SELinux:  Registering netfilter hooks
> Initializing Cryptographic API
> ksign: Installing public key data
> Loading keyring
> - Added public key 1E0E64C0A8BD9F26
> - 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
> Linux version 2.6.18-1.2869.fc6xen
> ( brewbuilder@xxxxxxxxxxxxxxxxxxxxxxxxxxxx) (gcc version
4.1.1 20061011
> (Red Hat 4.1.1-30)) #1 SMP Wed Dec 20 15:28:06 EST 2006
> BIOS-provided physical RAM map:
> Xen: 0000000000000000 - 0000000010800000 (usable)
> 0MB HIGHMEM available.
> 264MB LOWMEM available.
> Using x86 segment limits to approximate NX protection
> ACPI in unprivileged domain disabled
> Built 1 zonelists.  Total pages: 67584
> Kernel command line:  root=/dev/xvda1
> Enabling fast FPU save and restore... done.
> Enabling unmasked SIMD FPU exception support... done.
> Initializing CPU#0
> CPU 0 irqstacks, hard=c078b000 soft=c076b000
> PID hash table entries: 2048 (order: 11, 8192 bytes)
> Xen reported: 1800.059 MHz processor.
> Console: colour dummy device 80x25
> Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
> Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
> Software IO TLB disabled
> vmalloc area: d1000000-f4ffe000, maxmem 2d7fe000
> Memory: 250940k/270336k available (2099k kernel code, 10876k reserved,
> 842k data, 180k init, 0k highmem)
> Checking if this processor honours the WP bit even in supervisor mode...
Ok.
> Calibrating delay using timer specific routine.. 4503.36 BogoMIPS
(lpj=9006734)
> 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: 512
> CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
> CPU: L2 Cache: 256K (64 bytes/line)
> Checking 'hlt' instruction... OK.
> SMP alternatives: switching to UP code
> Freeing SMP alternatives: 12k freed
> Brought up 1 CPUs
> checking if image is initramfs... it is
> Freeing initrd memory: 3324k freed
> 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: 4096 (order: 2, 16384 bytes)
> TCP established hash table entries: 16384 (order: 6, 327680 bytes)
> TCP bind hash table entries: 8192 (order: 5, 163840 bytes)
> TCP: Hash tables configured (established 16384 bind 8192)
> TCP reno registered
> IA-32 Microcode Update Driver: v1.14-xen < tigran@xxxxxxxxxxx>
> audit: initializing netlink socket (disabled)
> audit(1169130101.084:1): initialized
> VFS: Disk quotas dquot_6.5.1
> Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
> SELinux:  Registering netfilter hooks
> Initializing Cryptographic API
> ksign: Installing public key data
> Loading keyring
> - Added public key 1E0E64C0A8BD9F26
> - 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
> Using IPI No-Shortcut mode
> XENBUS: Device with no driver: device/vbd/51713
> XENBUS: Device with no driver: device/vbd/51714
> Freeing unused kernel memory: 180k freed
> Write protecting the kernel read-only data: 357k
> Red Hat nash version 5.1.19.0.2 starting
> Mounting proc filesystem
> Mounting sysfs filesystem
> Creating /dev
> Creating initial device nodes
> Setting up hotplug.
> Creating block device nodes.
> Loading xenblk.ko module
> Registering block device major 202
> 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 3w-xxxx.ko module
> 3ware Storage Controller device driver for Linux v1.26.02.001.
> Loading xennet.ko module
> netfront: Initialising virtual ethernet driver.
> Creating root device.
> Mounting root filesystem.
> EXT3-fs: INFO: recovery required on readonly filesystem.
> EXT3-fs: write access will be enabled during recovery.
> kjournald starting.  Commit interval 5 seconds
> EXT3-fs: recovery complete.
> EXT3-fs: mounted filesystem with ordered data mode.
> Setting up other filesystems.
> Setting up new root fs
> no fstab.sys, mounting internal defaults
> Switching to new root and running init.
> unmounting old /dev
> unmounting old /proc
> unmounting old /sys
> exec of init (/sbin/init) failed!!!: No such file or directory
> Kernel panic - not syncing: Attempted to kill init!
>
> Other test reports will follow.
>
> Let me have your thoughts.
>
> Thanks in advance,
> Andrea Maurizio Gnerre
>
> On 1/18/07, AndreGround <andreground@xxxxxxxxx > wrote:
> > Andrew, Ninny,
> > thanks a lot for your reply!
> >
> > I'm collecting data (configurations and logs) from different tests
> > I've made and then I'll post everything in order to let you better
> > analyze my issue.
> >
> > Thanks again,
> > Andrea
> >
> > On 1/18/07, ninny issac <ninyissac@xxxxxxxxx> wrote:
> > > Hi,
> > > The error is probably due to incorrect root partition for your guest
domain.
> > > The kernel will start /sbin/init after mounting the root partion.
> > > Could you provide more details like what is the root partion for FC3
domU ,
> > > whether it is a partition or file and also your configuration file for
domU,
> > > so people can easily figure it out.
> > >
> > >
> > >
> > >
> > > On 1/17/07, AndreGround < andreground@xxxxxxxxx > wrote:
> > > >
> > > > Hi,
> > > > this is the error I get when I try to start my FC3 domU.
> > > >
> > > > exec of init (/sbin/init) failed!!!: No such file or directory
> > > > Kernel panic - not syncing: Attempted to kill init!
> > > >
> > > > I can share any config if you need to check something.
> > > >
> > > > Any help/idea is *REALLY* appreciated.
> > > >
> > > > Thanks in advance,
> > > > Andrea
> > > >
> > > > --
> > > > Fedora-xen mailing list
> > > > Fedora-xen@xxxxxxxxxx
> > > > https://www.redhat.com/mailman/listinfo/fedora-xen
> > > >
> > >
> > >
> >
>



--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

thanks...
niny...

--
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