WARNING - OLD ARCHIVES

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

xen-users

[Top] [All Lists]

Re: [Xen-users] exec of init (/sbin/init) failed!!!: No such file or dir

To: "Emre ERALTAN" <eeraltan@xxxxxxxxx>
Subject: Re: [Xen-users] exec of init (/sbin/init) failed!!!: No such file or directory
From: "trilok nuwal" <tc.nuwal@xxxxxxxxx>
Date: 2007年4月19日 18:24:53 +0530
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: 2007年4月19日 05:53:41 -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:cc:in-reply-to:mime-version:content-type:references; b=l+XagH1MyBbeN3ys2rvAHEtFIgecJvpYdpQjfiXZ9qI8Jggqyzsfwm0Ml4CbIAQlY9Vb5VjgKZ8EKAHuaWqDD7NYu/Zu710vUp9KYfycBQd6Is3E0vd7dXcjOEhKxqqduqbTDKAPXIK+QySNLfR6a5bmIziPVvjARnjaRu0blx0=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=EcuhcWBT6M/U2gIS8/cjmWhXpI1FFLNK+qlenaq5IaMFHxBSthRZH0vfK8wzfDi2fwABpNXt1/yS6cuOWQXgubMFpru8wYJrMTOQbYF+0SKP1zpPI5s0VBzi0uhNIiPEyD8Z8SWq2d+AcXhUlJ+GLYIt+AUJ6KoBfJy+Ojnqv5Y=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <f6b59f190704190059t5207ca12y1979f5bfa3b629e9@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <f6b59f190704190059t5207ca12y1979f5bfa3b629e9@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx


On 4/19/07, Emre ERALTAN <eeraltan@xxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users 
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: Re: [Xen-users] exec of init (/sbin/init) failed!!!: No such file ordirectory , Emre ERALTAN
Next by Date: Re: [Xen-users] Managing DomU partitions in XEN+LVM systems? , Jordi Segues
Previous by Thread: Re: [Xen-users] exec of init (/sbin/init) failed!!!: No such file or directory , trilok nuwal
Next by Thread: [Xen-users] SMP support in Windows domU , Daniel Bareiro
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /