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

xen-users

[Xen-users] exec of init (/sbin/init) failed!!!

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] exec of init (/sbin/init) failed!!!
From: Constantinos Hassapis <conhassapis@xxxxxxxxx>
Date: Mon, 31 Jul 2006 08:41:43 -0700 (PDT)
Delivery-date: Mon, 31 Jul 2006 08:42:30 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Qz7xoJs4wNTh2PJxRpA0D13Hp4kh2ypl33DRTBEcbNY3KAgO3Sb8j2uup29XB61gVxTBsYvH+olMG9GmlZWWzwMg/Pj2QBilfHtiJ1ty2PpEjWSZxBBMoueiySm9eBLluyWV9WxSg+5kYiKB+3pk03+tjUik16611MRHl0Oe3H8= ;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi to all,

I switched to Fedora Core 5 and I now have a few problems when booting
a domU virtual machine with Xen (as provided by the FC5 installation).
I get the following boot trace when trying to bot a domU:

Mounting proc filesystem
Mounting sysfs filesystem
Creating /dev
Creating initial device nodes
Setting up hotplug.
Creating block device nodes.
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 tried both a real block device and a file-backed virtual block
device
for the
root file-system, without success.
I have also tried to change the configuration file in many ways. I have
changed the file system from ro to be rw, and I have also tried to boot
with and without initrd.

I followed the instructions form the Xen user manual to create the root
file-system (first copy the dirs that root, dev, var, etc, usr, bin,
sbin, lib and then create the proc, sys, home, tmp dirs).

dd if=/dev/zero of=vm1disk bs=1k seek=2048k count=1

mkfs -t ext3 vm1disk

mount -o loop vm1disk /mnt

cp -ax /{root,dev,var,etc,usr,bin,sbin,lib} /mnt
mkdir /mnt/{proc,sys,home,tmp}

umount /mnt

I used the following config file for the domU:

kernel = "/boot/vmlinuz-2.6.17-1.2157_FC5xenU"
ramdisk = "/boot/initrd-2.6.17-1.2157_FC5xenU.img"
memory = 256
disk = [ 'file:/root/vm1disk,sda1,w' ]
name = "ExampleDomain"
vif = [ '' ]
root = "/dev/sda1"
extra = "4"

The
/etc/fstab file
of the file system that the vm will use is:
/dev/sda1 / 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

And I have also tried with the following alternate versions of
/etc/fstab:
1)
/dev/sda1 / ext3 defaults 1 1

2)
/dev/sda1 / ext3 defaults 0 0
none /proc proc defaults 0 0
none /dev/pts devpts gid=2,mode=620 0 0

3)
/dev/sda1 / ext3 defaults 1 1
none /proc proc defaults 0 0
none /dev/pts devpts gid=2,mode=620 0 0

I have allready check that the init file exits.

Note that I have succesfully managed to boot a vm using a file system
image from tty-linux5.0. So, my assumption is that the problems is
related to the file
system image that I use
for the Fedora install.

Thanks in advance for you help,


Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail Beta.
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>