Manu Anand
2008-Dec-19 04:24 UTC
[Xen-users] Installation Problem: exec of init (/sbin/init) failed!!!: No such file or directory
Hi folks: I''m having the exact problem with /sbin/init described at http://lists.xensource.com/archives/html/xen-users/2007-04/msg00570.html The environment is CentOS but the problem and the steps I''ve taken are exactly the same. The guest''s fstab is dev/sda10 / ext3 defaults 1 1 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 LABEL=SWAP-sda2 swap swap defaults 0 0 My config script is kernel = "/boot/vmlinuz-2.6.18-92.1.18.el5xen" ramdisk = "/boot/2.6.18-92.1.18.el5xen-custom-3" memory = 256 name = "ExampleDomain" vif = [ '''' ] disk = [ ''tap:aio:/home/admin/vm1disk,sda10,w'', ] root = "/dev/sda10 rw" extra = "4" The error log is attached.. Thanks for your help Manu _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Todd Deshane
2008-Dec-19 05:56 UTC
Re: [Xen-users] Installation Problem: exec of init (/sbin/init) failed!!!: No such file or directory
On Thu, Dec 18, 2008 at 11:24 PM, Manu Anand <manu.anand@gmail.com> wrote:> Hi folks: > > I''m having the exact problem with /sbin/init described at > http://lists.xensource.com/archives/html/xen-users/2007-04/msg00570.html > The environment is CentOS but the problem and the steps I''ve taken are > exactly the same. >That thread is somewhat hard to follow, but the suggestions seem good. The basic idea is that you have a guest on a different partition and you are trying to boot it? The guest was/is a normal linux install? Are you just missing a forward slash in the fstab below? (/dev/sda10)? or is that just a typo? Do make sure that everything is in the right spot... chroot in the the partition for example. Is it bootable as a normal linux system with grub (not as a xen guest, just to test)?> The guest''s fstab is > > dev/sda10 / ext3 defaults 1 1 > tmpfs /dev/shm tmpfs defaults 0 0 > devpts /dev/pts devpts gid=5,mode=620 0 0 > sysfs /sys sysfs defaults 0 0 > proc /proc proc defaults 0 0 > LABEL=SWAP-sda2 swap swap defaults 0 0 > > > My config script is > > kernel = "/boot/vmlinuz-2.6.18-92.1.18.el5xen" > ramdisk = "/boot/2.6.18-92.1.18.el5xen-custom-3" > memory = 256 > name = "ExampleDomain" > vif = [ '''' ] > disk = [ ''tap:aio:/home/admin/vm1disk,sda10,w'', ] > root = "/dev/sda10 rw"don''t put the rw in the root line. root="/dev/sda10" and Try it instead in the extra extra="ro 4" Hope that helps. Cheers, Todd -- Todd Deshane http://todddeshane.net http://runningxen.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Manu Anand
2008-Dec-19 08:30 UTC
Re: [Xen-users] Installation Problem: exec of init (/sbin/init) failed!!!: No such file or directory
On Thu, Dec 18, 2008 at 9:56 PM, Todd Deshane <deshantm@gmail.com> wrote:> On Thu, Dec 18, 2008 at 11:24 PM, Manu Anand <manu.anand@gmail.com> wrote: > > Hi folks: > > > > I''m having the exact problem with /sbin/init described at > > http://lists.xensource.com/archives/html/xen-users/2007-04/msg00570.html > > The environment is CentOS but the problem and the steps I''ve taken are > > exactly the same. > > > > That thread is somewhat hard to follow, but the suggestions seem good. > > The basic idea is that you have a guest on a different partition and you > are trying to boot it? >Hey Todd: That missing / was a typo. I re-generated the initrd file anyways and it still fails with the same error. The only thing that I''m doing differently is that I created a new device file /dev/sda10 for the guest However the linux kernel is the same as the one that DomU is using. I cannot reboot the system to check out whether the boot loader will be able to load the new image. I''ll try that tomorrow. I''m playing with some centos specific install programs (virt-install, virt-image etc) in the meantime.. Thanks for your help Manu> > The guest was/is a normal linux install? > > > Are you just missing a forward slash in the fstab below? > (/dev/sda10)? or is that just a typo? > > Do make sure that everything is in the right spot... > > chroot in the the partition for example. > > Is it bootable as a normal linux system with grub > (not as a xen guest, just to test)? > > > The guest''s fstab is > > > > dev/sda10 / ext3 defaults 1 1 > > tmpfs /dev/shm tmpfs defaults 0 > 0 > > devpts /dev/pts devpts gid=5,mode=620 0 > 0 > > sysfs /sys sysfs defaults 0 > 0 > > proc /proc proc defaults 0 > 0 > > LABEL=SWAP-sda2 swap swap defaults 0 > 0 > > > > > > My config script is > > > > kernel = "/boot/vmlinuz-2.6.18-92.1.18.el5xen" > > ramdisk = "/boot/2.6.18-92.1.18.el5xen-custom-3" > > memory = 256 > > name = "ExampleDomain" > > vif = [ '''' ] > > disk = [ ''tap:aio:/home/admin/vm1disk,sda10,w'', ] > > root = "/dev/sda10 rw" > > don''t put the rw in the root line. > root="/dev/sda10" > > and > > > > Try it instead in the extra > extra="ro 4" > > > Hope that helps. > > Cheers, > Todd > > -- > Todd Deshane > http://todddeshane.net > http://runningxen.com >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users