Emre ERALTAN
2007-Apr-19 07:59 UTC
[Xen-users] exec of init (/sbin/init) failed!!!: No such file or directory
Hi, I am a newbie using RHEL 5 with Xen 3.0.3-25.el5 (integrated in this version of RHEL). So, I have included the Xen package when I installed RHEL and then I installed the kernel-xen component which has created in my boot directory 4 files : vmlinuz-2.6.18-8.el5xen, initrd-2.6.18-8.el5xen.img, config-2.6.18-8.el5xen and xen.gz-2.6.18-8.el5. I have also now 2 boot options in my grub.conf : title Red Hat Enterprise Linux Server (2.6.18-8.el5xen) root (hd0,0) kernel /xen.gz-2.6.18-8.el5 module /vmlinuz-2.6.18-8.el5xen ro root=LABEL=/ console=ttyS0,115200n81 reboot=t module /initrd-2.6.18-8.el5xen.img title Red Hat Enterprise Linux Server (2.6.18-8.el5) root (hd0,0) kernel /vmlinuz-2.6.18-8.el5 ro root=LABEL=/ console=ttyS0,115200n81 reboot=t initrd /initrd-2.6.18-8.el5.img Then I have decided to run another RHEL 5 as guest OS and I followed tips on the internet: First of all, I booted with the xen kernel then: 1) dd if=/dev/zero of=/xen/xen2 bs=1M count=1 seek=5120 2) mkfs -t ext3 /xen/xen2 3) mount -o loop /xen/xen2 /mnt 4) cp -vrf /{root,dev,var,etc,usr,bin,sbin,lib} /mnt 5) mkdir /mnt/{proc,sys;home,tmp} 6) umount /mnt (if you forget to do this when you call "xm create -c config_file" it gives an error due to destroyDevice() function) Then I filled the config_file as following: kernel = "/boot/vmlinuz-2.6.18-8.el5xen" ramdisk = "/boot/initrd-2.6.18-8.el5xen.img" vif = [ '''' ] disk = [ ''file:/xen/xen2,sda2,w'' ] root = "/dev/sda2" extra = "ro" But a got the following error when I try to start my domU "xm create -c /etc/xen/xmexample1: 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! Then I have tried to create my own initrd image and used the mkinitrd command as following : mkinirtd /boot/initrd-2.6.18-8.el5xenU 2.6.18-8.el5xen --fstab /mnt/etc/fstab --with xenblk --with xennet --preload xenblk --preload xennet and changed the ramdisk line in my configuration file ramdisk "/boot/initrd-2.6.18-8.el5xenU" But now I got another error : exec of init (/sbin/init) failed!!!: No such file or directory register_blkdev: cannot get major 8 for sd Loading scsi_transport_sas.ko module Loading mptscsih.ko module Loading mptsas.ko module Fusion MPT SAS Host driver 3.04.02 Waiting for driver initialization. Creating root device. Mounting root filesystem. kjournald starting. Commit interval 5 seconds 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! I have already checked the /sbin/init file which seems to be correct and with necessary rights. Here is my fstab in the guest FS : dev/sda2 / ext3 defaults 1 1 LABEL=/boot1 /boot defaults 1 2 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 LABEL=SWAP-sda3 swap swap defaults 0 0 Does anybody know why I got this error ? Thanks -- - - - - - - - - - - - - - - - - - - - - - - - - - Emre ERALTAN Elève ingénieur 3ème année Electronique et Informatique Industrielle ENSSAT - - - - - - - - - - - - - - - - - - - - - - - - - _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Akio Takebe
2007-Apr-19 08:24 UTC
Re: [Xen-users] exec of init (/sbin/init) failed!!!: No such file ordirectory
Hi,>register_blkdev: cannot get major 8 for sdxenblk could not get major number 8. You need to remake initrd not included scsi module. Best Regards, Akio Takebe _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
trilok nuwal
2007-Apr-19 08:35 UTC
Re: [Xen-users] exec of init (/sbin/init) failed!!!: No such file or directory
On 4/19/07, Emre ERALTAN <eeraltan@enssat.fr> wrote:> > Hi, > > I am a newbie using RHEL 5 with Xen 3.0.3-25.el5 (integrated in this > version of RHEL). So, I have included the Xen package when I installed RHEL > and then I installed the kernel-xen component which has created in my boot > directory 4 files : vmlinuz-2.6.18-8.el5xen, initrd-2.6.18-8.el5xen.img, > config-2.6.18-8.el5xen and xen.gz-2.6.18-8.el5. I have also now 2 boot > options in my grub.conf : > > > title Red Hat Enterprise Linux Server (2.6.18-8.el5xen) > root (hd0,0) > kernel /xen.gz-2.6.18-8.el5 > module /vmlinuz-2.6.18-8.el5xen ro root=LABEL=/ > console=ttyS0,115200n81 reboot=t > module /initrd-2.6.18-8.el5xen.img > title Red Hat Enterprise Linux Server (2.6.18-8.el5 ) > root (hd0,0) > kernel /vmlinuz-2.6.18-8.el5 ro root=LABEL=/ > console=ttyS0,115200n81 reboot=t > initrd /initrd-2.6.18-8.el5.img > > Then I have decided to run another RHEL 5 as guest OS and I followed tips > on the internet: > > First of all, I booted with the xen kernel then: > > 1) dd if=/dev/zero of=/xen/xen2 bs=1M count=1 seek=5120 > 2) mkfs -t ext3 /xen/xen2 > 3) mount -o loop /xen/xen2 /mnt > 4) cp -vrf /{root,dev,var,etc,usr,bin,sbin,lib} /mnt > 5) mkdir /mnt/{proc,sys;home,tmp}6) umount /mnt (if you forget to do this when you call "xm create -c> config_file" it gives an error due to destroyDevice() function) > > Then I filled the config_file as following: > > kernel = "/boot/vmlinuz-2.6.18-8.el5xen" > ramdisk = "/boot/initrd-2.6.18-8.el5xen.img" > vif = [ '''' ] > disk = [ ''file:/xen/xen2,sda2,w'' ] > root = "/dev/sda2" > extra = "ro" > > But a got the following error when I try to start my domU "xm create -c > /etc/xen/xmexample1: > > 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! > > Then I have tried to create my own initrd image and used the mkinitrd > command as following : > mkinirtd /boot/initrd-2.6.18-8.el5xenU 2.6.18-8.el5xen --fstab > /mnt/etc/fstab --with xenblk --with xennet --preload xenblk --preload xennet > and changed the ramdisk line in my configuration file ramdisk > "/boot/initrd-2.6.18-8.el5xenU" > > But now I got another error : exec of init (/sbin/init) failed!!!: No such > file or directory > > register_blkdev: cannot get major 8 for sd > Loading scsi_transport_sas.ko module > Loading mptscsih.ko module > Loading mptsas.ko module > Fusion MPT SAS Host driver 3.04.02 > Waiting for driver initialization. > Creating root device. > Mounting root filesystem. > kjournald starting. Commit interval 5 seconds > 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! > > I have already checked the /sbin/init file which seems to be correct and > with necessary rights. > > Here is my fstab in the guest FS :dev/sda2 / ext3 defaults> 1 1This should be, probably u might forget to write coeectly. /dev/sda2 / ext3 defaults 1 1 LABEL=/boot1 /boot defaults 1 2> 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 > LABEL=SWAP-sda3 swap swap defaults 0 > 0 > > Does anybody know why I got this error ? > > Thanks > -- > > - - - - - - - - - - - - - - - - - - - - - - - - - > Emre ERALTAN > Elève ingénieur 3ème année > Electronique et Informatique Industrielle > ENSSAT > - - - - - - - - - - - - - - - - - - - - - - - - - > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Emre ERALTAN
2007-Apr-19 12:26 UTC
Re: [Xen-users] exec of init (/sbin/init) failed!!!: No such file ordirectory
Thanks for the responses I remade my initrd without including scsi modules and changing dev/sda2 in my fstab by /dev/sda2 (ouppps) : mkinitrd /boot/initrd-2.6.18-8.el5xenU 2.6.18-8.el5xen --fstab /mnt/etc/fstab --omit-scsi-modules --with xenblk - -with xennet --preload xenblk --preload xennet but I got still the same error even if xenblk got the major number 8 : Loading xenblk.ko module Registering block device major 8 Loading xennet.ko module netfront: Initialising virtual ethernet driver. netfront: device eth0 has flipping receive path. 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 scsi_transport_sas.ko module Loading mptbase.ko module Fusion MPT base driver 3.04.02 Copyright (c) 1999-2005 LSI Logic Corporation Loading mptscsih.ko module Loading mptsas.ko module Fusion MPT SAS Host driver 3.04.02 Waiting for driver initialization. Creating root device. Mounting root filesystem. kjournald starting. Commit interval 5 seconds 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! On 4/19/07, Akio Takebe <takebe_akio@jp.fujitsu.com> wrote:> > Hi, > > >register_blkdev: cannot get major 8 for sd > xenblk could not get major number 8. > You need to remake initrd not included scsi module. > > Best Regards, > > Akio Takebe > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >-- - - - - - - - - - - - - - - - - - - - - - - - - - Emre ERALTAN Elève ingénieur 3ème année Electronique et Informatique Industrielle ENSSAT - - - - - - - - - - - - - - - - - - - - - - - - - _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
trilok nuwal
2007-Apr-19 12:54 UTC
Re: [Xen-users] exec of init (/sbin/init) failed!!!: No such file or directory
On 4/19/07, Emre ERALTAN <eeraltan@enssat.fr> wrote:> > Hi, > > I am a newbie using RHEL 5 with Xen 3.0.3-25.el5 (integrated in this > version of RHEL). So, I have included the Xen package when I installed RHEL > and then I installed the kernel-xen component which has created in my boot > directory 4 files : vmlinuz-2.6.18-8.el5xen, initrd-2.6.18-8.el5xen.img, > config-2.6.18-8.el5xen and xen.gz-2.6.18-8.el5. I have also now 2 boot > options in my grub.conf : > > > title Red Hat Enterprise Linux Server (2.6.18-8.el5xen) > root (hd0,0) > kernel /xen.gz-2.6.18-8.el5 > module /vmlinuz-2.6.18-8.el5xen ro root=LABEL=/ > console=ttyS0,115200n81 reboot=t > module /initrd-2.6.18-8.el5xen.img > title Red Hat Enterprise Linux Server (2.6.18-8.el5 ) > root (hd0,0) > kernel /vmlinuz-2.6.18-8.el5 ro root=LABEL=/ > console=ttyS0,115200n81 reboot=t > initrd /initrd-2.6.18-8.el5.img > > Then I have decided to run another RHEL 5 as guest OS and I followed tips > on the internet: > > First of all, I booted with the xen kernel then: > > 1) dd if=/dev/zero of=/xen/xen2 bs=1M count=1 seek=5120 > 2) mkfs -t ext3 /xen/xen2 > 3) mount -o loop /xen/xen2 /mnt > 4) cp -vrf /{root,dev,var,etc,usr,bin,sbin,lib} /mnt > 5) mkdir /mnt/{proc,sys;home,tmp} > 6) umount /mnt (if you forget to do this when you call "xm create -c > config_file" it gives an error due to destroyDevice() function) > > Then I filled the config_file as following: > > kernel = "/boot/vmlinuz-2.6.18-8.el5xen" > ramdisk = "/boot/initrd-2.6.18-8.el5xen.img" > vif = [ '''' ] > disk = [ ''file:/xen/xen2,sda2,w'' ] > root = "/dev/sda2"disable selinux, put root = "/dev/sda2 selinux=0" One more thing use hda1 instead of sda2. Are u 100% sure, u copy all files correctly Try these options.. extra = "ro"> > But a got the following error when I try to start my domU "xm create -c > /etc/xen/xmexample1: > > 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! > > Then I have tried to create my own initrd image and used the mkinitrd > command as following : > mkinirtd /boot/initrd-2.6.18-8.el5xenU 2.6.18-8.el5xen --fstab > /mnt/etc/fstab --with xenblk --with xennet --preload xenblk --preload xennet > and changed the ramdisk line in my configuration file ramdisk > "/boot/initrd-2.6.18-8.el5xenU" > > But now I got another error : exec of init (/sbin/init) failed!!!: No such > file or directory > > register_blkdev: cannot get major 8 for sd > Loading scsi_transport_sas.ko module > Loading mptscsih.ko module > Loading mptsas.ko module > Fusion MPT SAS Host driver 3.04.02 > Waiting for driver initialization. > Creating root device. > Mounting root filesystem. > kjournald starting. Commit interval 5 seconds > 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! > > I have already checked the /sbin/init file which seems to be correct and > with necessary rights. > > Here is my fstab in the guest FS : > > dev/sda2 / ext3 > defaults 1 1 > LABEL=/boot1 /boot defaults 1 2 > 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 > LABEL=SWAP-sda3 swap swap defaults 0 > 0 > > Does anybody know why I got this error ? > > Thanks > -- > > - - - - - - - - - - - - - - - - - - - - - - - - - > Emre ERALTAN > Elève ingénieur 3ème année > Electronique et Informatique Industrielle > ENSSAT > - - - - - - - - - - - - - - - - - - - - - - - - - > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Akio Takebe
2007-Apr-20 00:49 UTC
Re: [Xen-users] exec of init (/sbin/init) failed!!!: No such fileordirectory
Hi, Did you remake your initrd after changing dev/sda2 in fstab? And your initrd still have scsi module.>Loading scsi_mod.ko module >SCSI subsystem initialized >Loading scsi_transport_sas.ko module >Loading mptbase.ko module >Fusion MPT base driver 3.04.02 >Copyright (c) 1999-2005 LSI Logic Corporation >Loading mptscsih.ko module >Loading mptsas.ko module >Fusion MPT SAS Host driver 3.04.02Best Regards, Akio Takebe _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users