From: Han <kee...@gm...> - 2013-08-06 18:29:45
|
Hi, I've built a root filesystem based off Debian Squeeze because I wanted to include all built (e.g. gcc) tools in. However, i was not able to boot the UML with this rootfs due to this error: <snip> Kernel panic - not syncing: No init found. Try passing init= option to kernel. </snip> here is how I ran the UML: ./linux ubda=/nobackup/hxu2/uml/debian-root-fs mem=128M I also tried to add "init=/sbin/init" or "init=3" at the end, but got the same error. I believe I missed something when building the rootfs for the Init option. But what is it? How should I set the init option in the rootfs? please advise. thanks Han |
From: Stelios M. <ste...@gm...> - 2013-08-06 19:35:54
|
Hello. You could try to loop mount the root fs and check if there is an init there. You could also boot it with bash as init (init=/bin/bash) and check things. Regards, Steliosm On Aug 6, 2013 9:30 PM, "Han" <kee...@gm...> wrote: > Hi, > > I've built a root filesystem based off Debian Squeeze because I wanted to > include all built (e.g. gcc) tools in. However, i was not able to boot > the UML with this rootfs due to this error: > > <snip> > Kernel panic - not syncing: No init found. Try passing init= option to > kernel. > </snip> > > here is how I ran the UML: > > ./linux ubda=/nobackup/hxu2/uml/debian-root-fs mem=128M > > I also tried to add "init=/sbin/init" or "init=3" at the end, but got the > same error. > > I believe I missed something when building the rootfs for the Init option. > But what is it? How should I set the init option in the rootfs? please > advise. > > thanks > Han > > > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > User-mode-linux-user mailing list > Use...@li... > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user > > |
From: Han <kee...@gm...> - 2013-08-06 21:18:47
|
thanks Steliosm. I tried with "init=/bin/bash" but still same error. It seems that not anything wrong with "init" process itself, but some error happened before that. I just tried to build the rootfs without "--variant=buildd". And this time it worked. Not sure what changed. Will play around more. Han On Tue, Aug 6, 2013 at 12:35 PM, Stelios M. <ste...@gm...> wrote: > Hello. > > You could try to loop mount the root fs and check if there is an init > there. You could also boot it with bash as init (init=/bin/bash) and check > things. > > Regards, > Steliosm > On Aug 6, 2013 9:30 PM, "Han" <kee...@gm...> wrote: > >> Hi, >> >> I've built a root filesystem based off Debian Squeeze because I wanted to >> include all built (e.g. gcc) tools in. However, i was not able to boot >> the UML with this rootfs due to this error: >> >> <snip> >> Kernel panic - not syncing: No init found. Try passing init= option to >> kernel. >> </snip> >> >> here is how I ran the UML: >> >> ./linux ubda=/nobackup/hxu2/uml/debian-root-fs mem=128M >> >> I also tried to add "init=/sbin/init" or "init=3" at the end, but got the >> same error. >> >> I believe I missed something when building the rootfs for the Init >> option. But what is it? How should I set the init option in the rootfs? >> please advise. >> >> thanks >> Han >> >> >> >> >> ------------------------------------------------------------------------------ >> Get 100% visibility into Java/.NET code with AppDynamics Lite! >> It's a free troubleshooting tool designed for production. >> Get down to code-level detail for bottlenecks, with <2% overhead. >> Download for free and get started troubleshooting in minutes. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk >> _______________________________________________ >> User-mode-linux-user mailing list >> Use...@li... >> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user >> >> |
From: Michael R. <mc...@sa...> - 2013-08-06 21:16:26
|
Han <kee...@gm...> wrote: > I've built a root filesystem based off Debian Squeeze because I wanted to > include all built (e.g. gcc) tools in. However, i was not able to boot the > UML with this rootfs due to this error: > <snip> > Kernel panic - not syncing: No init found. Try passing init= option to kernel. > </snip> > here is how I ran the UML: > ./linux ubda=/nobackup/hxu2/uml/debian-root-fs mem=128M Did you include ext3 or whatever file system you built the image with? What if you say, "root=/dev/ubda"? While you can sometimes get away without initramfs now, it's getting harder and harder. I have broken off most of the Freeswan/Openswan UML build environment off as a separate project at: https://github.com/mcr/uml-network-testing-infrastructure This likely doesn't work with kernels newer than 2.6.26, but I do have fixes in other trees for that, I just haven't moved things over. If it is useful to someone, I will spend the time. -- ] Never tell me the odds! | ipv6 mesh networks [ ] Michael Richardson, Sandelman Software Works | network architect [ ] mc...@sa... http://www.sandelman.ca/ | ruby on rails [ |