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

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


  • To: Constantinos Hassapis <conhassapis@xxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
  • From: dasari dakshina <dakshi80@xxxxxxxxx>
  • Date: Thu, 27 Jul 2006 01:47:40 -0700 (PDT)
  • Delivery-date: Thu, 27 Jul 2006 01:48:33 -0700
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=gIEd/KjG8S09b80edetW3eS6L8AQ87NorBdgfvkWf7E5LGBQDSV2grDl3mlcC5htgsV01imrdObDeMoHLfzzmH9rTqH3JhpHAs4sQpkcuIw9fLQnSjZnJzoyx7V1mM2oW+3olP14cknDoo1I5J+7m/P9+1km7MoMjQBsZoYB0bk= ;
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

A small observation :
disk = [ 'file:/root/vmrootfs,sda1,w']


Where as 
in these steps u have

dd if=/dev/zero of=vm1disk bs=1k seek=2048k count=1
> 
> mkfs -t ext3 vm1disk
> 
> mount -o loop vm1disk /mnt


So shouldnt it be something like 
disk = [ 'file:/root/vm1disk,sda1,w']

Just my thougts ..
--Dakshina 



--- Constantinos Hassapis <conhassapis@xxxxxxxxx>
wrote:

> 
> Hi,
> 
> 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/vmrootfs,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
> 
> 
> 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,
> 
>               
> ---------------------------------
> Yahoo! Music Unlimited - Access over 1 million
> songs.Try it free. >
_______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.