From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1ELJS4-0002Oj-On for user-mode-linux-devel@lists.sourceforge.net; Fri, 30 Sep 2005 04:53:20 -0700 Received: from wproxy.gmail.com ([64.233.184.193]) by mail.sourceforge.net with esmtp (Exim 4.44) id 1ELJS3-0003XG-DI for user-mode-linux-devel@lists.sourceforge.net; Fri, 30 Sep 2005 04:53:21 -0700 Received: by wproxy.gmail.com with SMTP id i1so108217wra for ; Fri, 30 Sep 2005 04:53:07 -0700 (PDT) Message-ID: <229e70f205093004533d68e798@mail.gmail.com> From: Etay Meiri Reply-To: Etay Meiri Subject: Re: [uml-devel] Error running UML In-Reply-To: <200509301320.18389.blaisorblade@yahoo.it> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_7121_5535791.1128081187478" References: <229e70f205093003511a49c171@mail.gmail.com> <200509301306.08001.blaisorblade@yahoo.it> <229e70f2050930041251654370@mail.gmail.com> <200509301320.18389.blaisorblade@yahoo.it> Sender: user-mode-linux-devel-admin@lists.sourceforge.net Errors-To: user-mode-linux-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: The user-mode Linux development list List-Post: List-Help: List-Subscribe: , List-Archive: Date: Fri, 30 Sep 2005 14:53:07 +0300 To: Blaisorblade Cc: user-mode-linux-devel@lists.sourceforge.net ------=_Part_7121_5535791.1128081187478 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I tries the following without success: 1. 'con=3Dpts' instead of 'con=3Dpty'. 2. 'con=3Dxterm' instead of 'con=3Dpty'. 3. added 'init=3D/bin/sh' to both of the above. 4. compiled the guest kernel again with 'make defconfig'. 5. moved away /lib/tls in the guest fs. I'm still getting the same warning about the console. When I try with xterm it just opens and immediately closes the xterm and I don't have a chance to see what's there. -Etay On 9/30/05, Blaisorblade wrote: > > On Friday 30 September 2005 13:12, Etay Meiri wrote: > > Thanks for your response. > > > > I tried running it with a simple: ./vmlinux ubd0=3Droot_fs.2005062201 > > and now it says: > Well, the only option which *must* be dropped is root=3D/dev/ubd/0. The r= est > is > harmless, and may help. > > Note that if you use con=3Dpty rather than con=3Dxterm, you'll need to co= nnect > to > the consoles manually and look for them. Plus /dev/pty* are deprecated, > and > some host kernel don't support them any more. > > At least, using con=3Dpts is more modern (it's supported on any recent > kernel). > > [42949373.420000] Console initialized on /dev/tty0 > > [42949373.420000] ubda: unknown partition table > > [42949373.420000] kjournald starting. Commit interval 5 seconds > > [42949373.420000] EXT3-fs: mounted filesystem with ordered data mode. > > [42949373.420000] VFS: Mounted root (ext3 filesystem) readonly. > > [42949373.420000] Warning: unable to open an initial console. > This warning, normally, is harmless. > > [42949373.420000] Kernel panic - not syncing: Attempted to kill init! > > > Looks like it mounted the root file system but has a problem opening > > a console. Maybe I'm missing some console related option in the kernel > > config? > It's possible. I would first check also if init=3D/bin/sh makes it boot, = to > distinguish between fs problems and console problems. Also, remember to > "mv /lib/tls /lib/tls.away" in the guest fs. > > Due to a bug in kconfig, which wasn't fixed because the fix wasn't nice, > if > you do "make *config ARCH=3Dum" on an empty tree it may pick as default > values > from /boot/config-`uname -r`. To avoid this, you need to move away > your .config and do: > > make defconfig ARCH=3Dum > and only afterwards, depending on your taste for configuration tool, > make {menu,x,g}config ARCH=3Dum > i.e. either make menuconfig ARCH=3Dum or the other similar ones. > -- > Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!". > Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ > 215621894) > http://www.user-mode-linux.org/~blaisorblade > > > > > > ___________________________________ > Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB > http://mail.yahoo.it > > -- ------------------------------------------------------ Etay Meiri etay.meiri@gmail.com ------=_Part_7121_5535791.1128081187478 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I tries the following without success:

1. 'con=3Dpts' instead of 'con=3Dpty'.
2. 'con=3Dxterm' instead of 'con=3Dpty'.
3. added 'init=3D/bin/sh' to both of the above.
4. compiled the guest kernel again with 'make defconfig'.
5. moved away /lib/tls in the guest fs.

I'm still getting the same warning about the console. When I try
with xterm it just opens and immediately closes the xterm and
I don't have a chance to see what's there.

-Etay

On 9/30/05, Blaisorblade <= blaisorblade@yahoo.it> wrote:
On Friday 30 September 2005 13:12, Etay Meiri wrote:
> Thanks for you= r response.
>
> I tried running it with a simple: ./vmlinux ubd= 0=3Droot_fs.2005062201
> and now it says:
Well, the only option wh= ich *must* be dropped is root=3D/dev/ubd/0. The rest is
harmless, and may help.

Note that if you use con=3Dpty rather th= an con=3Dxterm, you'll need to connect to
the consoles manually and look= for them. Plus /dev/pty* are deprecated, and
some host kernel don't sup= port them any more.

At least, using con=3Dpts is more modern (it's supported on any rec= ent kernel).
> [42949373.420000] Console initialized on /dev/tty0
= > [42949373.420000] ubda: unknown partition table
> [42949373.4200= 00 ] kjournald starting. Commit interval 5 seconds
> [42949373.420000] E= XT3-fs: mounted filesystem with ordered data mode.
> [42949373.420000= ] VFS: Mounted root (ext3 filesystem) readonly.
> [42949373.420000 ] Warning: unable to open an initial console.
This warning, normally, is= harmless.
> [42949373.420000] Kernel panic - not syncing: Attempted = to kill init!

> Looks like it mounted the root file system but ha= s a problem opening
> a console. Maybe I'm missing some console related option in the ke= rnel
> config?
It's possible. I would first check also if init=3D/= bin/sh makes it boot, to
distinguish between fs problems and console pro= blems. Also, remember to
"mv /lib/tls /lib/tls.away" in the guest fs.

Due to a = bug in kconfig, which wasn't fixed because the fix wasn't nice, if
you d= o "make *config ARCH=3Dum" on an empty tree it may pick as defaul= t values
from /boot/config-`uname -r`. To avoid this, you need to move away
y= our .config and do:

make defconfig ARCH=3Dum
and only afterwards,= depending on your taste for configuration tool,
make {menu,x,g}config A= RCH=3Dum
i.e. either make menuconfig ARCH=3Dum or the other similar ones.
--<= br>Inform me of my mistakes, so I can keep imitating Homer Simpson's "= Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarr= usso", ICQ 215621894)
http://www.use= r-mode-linux.org/~blaisorblade





_________________= __________________
Yahoo! Mail: gratis 1GB per i messaggi e allegati da = 10MB
http://mail.yahoo.it




--
-----------------------------= -------------------------
Etay Meiri
etay.meiri@gmail.com ------=_Part_7121_5535791.1128081187478-- ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel