From: ccmail111 Subject: Re: boot Xen 4.0 Date: Thu, 13 May 2010 18:42:44 -0700 (PDT) Message-ID: <274417.35576.qm@web34206.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0307112468==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: =?iso-8859-1?Q?Pasi_K=E4rkk=E4inen?= Cc: deshantm@gmail.com, xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0307112468== Content-Type: multipart/alternative; boundary="0-497673469-1273801364=:35576" --0-497673469-1273801364=:35576 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Thanks Pasi/Todd, I did: # mkinitrd -v -f --builtin=3Dehci-hcd --builtin=3Dohci-hcd --builtin=3Duhci= -hcd --builtin=3Dahci --builtin=3Daacraid --builtin=3Daacraid --builtin=3Ds= d_mod --builtin=3Dscsi_mod /boot/initrd.img-2.6.31.13 2.6.31.13 Now I see during boot: kernel panic: Mounting root filesystem. mount: could not find filesystem '/dev/root' setting up other filesystems setting up new root fs setuproot: moving /dev failed No such file or directory =0Asetuproot: error mounting /proc: No such file or directory =0Asetuproot: error mounting /sys: No such file or directory =0Aswitchroot: mount failed: No such file or directory=0A=09=09=09=0A=09=09 =A0 kernel panic - not syncing : Attempted to kill init ! --- On Thu, 5/13/10, Pasi K=E4rkk=E4inen wrote: From: Pasi K=E4rkk=E4inen Subject: Re: [Xen-devel] initrd Xen 4.0 To: "ccmail111" Cc: deshantm@gmail.com, xen-devel@lists.xensource.com Date: Thursday, May 13, 2010, 4:27 PM On Thu, May 13, 2010 at 01:08:36PM -0700, ccmail111=0A wrote: >=A0 =A0 The #5 of README is not clear in details. >=A0 =A0 which directory to run depmod and mkinitrd from ? >=20 It doesn't matter. >=A0 =A0 I see: >=20 >=A0 =A0 # depmod xen-4.0.0 >=A0 =A0 WARNING: Couldn't find symtab and strtab in module xen-4.0.0 >=20 Wrong. You need to run depmod for the *kernel*, not for xen. So like this: depmod -a 2.6.32.12 Or whatever is your kernel version. -- Pasi >=A0 =A0 # ls -l >=A0 =A0 total 1356 >=A0 =A0 -rw-r--r-- 1 root root 1380620 May 13 13:05 xen-4.0.0 >=20 >=A0 =A0 Any suggestions ? >=20 >=A0 =A0 --- On Wed, 5/12/10, Todd Deshane wrote: >=20 >=A0 =A0 =A0 From: Todd Deshane >=A0 =A0 =A0 Subject: Re: [Xen-devel] initrd Xen 4.0 >=A0 =A0 =A0 To: "ccmail111" >=A0 =A0 =A0 Cc: xen-devel@lists.xensource.com >=A0 =A0 =A0 Date: Wednesday, May 12, 2010, 9:46 PM >=20 >=A0 =A0 =A0 Hi, >=20 >=A0 =A0 =A0 See inline. >=20 >=A0 =A0 =A0 On Wed, May 12, 2010 at 12:25 PM, ccmail111 <[1]ccmail111@yaho= o.com> >=A0 =A0 =A0 wrote: >=A0 =A0 =A0 > >=A0 =A0 =A0 >=0A Hi, >=A0 =A0 =A0 > >=A0 =A0 =A0 > I downloaded Xen 4.0 and did: >=A0 =A0 =A0 > make install >=A0 =A0 =A0 > I donot see initrd (ramdisk) being created at all. >=A0 =A0 =A0 > >=A0 =A0 =A0 > Any suggestions ? >=A0 =A0 =A0 > >=20 >=A0 =A0 =A0 Step 5 of the README >=A0 =A0 =A0 =A0=A0=A0Depending on your config, you may need to use 'mkinit= rd' to create >=A0 =A0 =A0 =A0=A0=A0an initial ram disk, just like a native system e.g. >=A0 =A0 =A0 =A0 =A0 # depmod 2.6.18-xen >=A0 =A0 =A0 =A0 =A0 # mkinitrd -v -f --with=3Daacraid --with=3Dsd_mod --wi= th=3Dscsi_mod >=A0 =A0 =A0 initrd-2.6.18-xen.img 2.6.18-xen >=A0 =A0 =A0 =A0=A0=A0Other systems may requires the use of 'mkinitramfs' t= o create=0A the >=A0 =A0 =A0 =A0=A0=A0ram disk. >=A0 =A0 =A0 =A0 =A0 # depmod 2.6.18-xen >=A0 =A0 =A0 =A0 =A0 # mkinitramfs -o initrd-2.6.18-xen.img 2.6.18-xen >=20 >=A0 =A0 =A0 You may need to change the kernel version based on what you bu= ilt. >=A0 =A0 =A0 Also some distros use different commands to build initrd files= . >=20 >=A0 =A0 =A0 I actually forgot about this step for a second too. >=20 >=A0 =A0 =A0 Thanks, >=A0 =A0 =A0 Todd >=20 >=A0 =A0 =A0 -- >=A0 =A0 =A0 Todd Deshane >=A0 =A0 =A0 [2]http://todddeshane.net >=A0 =A0 =A0 [3]http://runningxen.com >=20 > References >=20 >=A0 =A0 Visible links >=A0 =A0 1.=0A file:///mc/compose?to=3Dccmail111@yahoo.com >=A0 =A0 2. http://todddeshane.net/ >=A0 =A0 3. http://runningxen.com/ > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel =0A=0A=0A --0-497673469-1273801364=:35576 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable <= /table>
=0A=0A --0-497673469-1273801364=:35576-- --===============0307112468== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0307112468==--
Thanks Pasi/Todd,
=
I did:
# mkinitrd -v -f --builtin=3Dehci-hcd --builtin=3Dohci-hcd --= builtin=3Duhci-hcd --builtin=3Dahci --builtin=3Daacraid --builtin=3Daacraid= --builtin=3Dsd_mod --builtin=3Dscsi_mod /boot/initrd.img-2.6.31.13 2.6.31.= 13


Now
I see during boot: kernel panic:

Mounting root = filesystem.
mount: could not find filesystem '/dev/root'
setting up o= ther filesystems
setting up new root fs
setuproot: moving /dev failed= No such file or directory
=0Asetuproot: error mounting /proc: No such f= ile or directory
=0Asetuproot: error mounting /sys: No such file or dire= ctory
=0Aswitchroot: mount failed: No such file or directory=0A=09=09=09= =0A=09=09
  kernel panic - not syncing : Attempted to kill init !



--- On Thu, 5/13/10, Pasi K=E4rkk=E4inen <pasik@= iki.fi> wrote:

From: Pasi K=E4rk= k=E4inen <pasik@iki.fi>
Subject: Re: [Xen-devel] initrd Xen 4.0To: "ccmail111" <ccmail111@yahoo.com>
Cc: deshantm@gmail.com, xen= -devel@lists.xensource.com
Date: Thursday, May 13, 2010, 4:27 PM

=
On Thu, May 13, 2010 at 01:08:36PM -0700, ccmail11= 1=0A wrote:
>    The #5 of README is not clear in details.<= br>>    which directory to run depmod and mkinitrd from ?
&= gt;

It doesn't matter.

>    I see:
>
= >    # depmod xen-4.0.0
>    WARNING: Couldn't= find symtab and strtab in module xen-4.0.0
>

Wrong. You need= to run depmod for the *kernel*, not for xen.

So like this:
depmo= d -a 2.6.32.12

Or whatever is your kernel version.

-- Pasi
>    # ls -l
>    total 1356
> = ;   -rw-r--r-- 1 root root 1380620 May 13 13:05 xen-4.0.0
>
= >    Any suggestions ?
>
>    --- On We= d, 5/12/10, Todd Deshane <deshantm@gmail.com>= wrote:
>
>      From: Todd Deshane <deshantm@gmail.com>
>      Subjec= t: Re: [Xen-devel] initrd Xen 4.0
>      To: "ccmail111"= <ccmail111@yahoo.com>
>    &= nbsp; Cc: xen-devel@lists.xensource.com
>&nbs= p;     Date: Wednesday, May 12, 2010, 9:46 PM
>
>&nb= sp;     Hi,
>
>      See inline.
&= gt;
>      On Wed, May 12, 2010 at 12:25 PM, ccmail11= 1 <[1]ccmail111@yahoo.com>
>  &nbs= p;   wrote:
>      >
>    &nbs= p; >=0A Hi,
>      >
>     = > I downloaded Xen 4.0 and did:
>      > make i= nstall
>      > I donot see initrd (ramdisk) being = created at all.
>      >
>     = ; > Any suggestions ?
>      >
>
>&= nbsp;     Step 5 of the README
>       =   Depending on your config, you may need to use 'mkinitrd' to cre= ate
>         an initial ram disk, just= like a native system e.g.
>          # depm= od 2.6.18-xen
>          # mkinitrd -v -f --= with=3Daacraid --with=3Dsd_mod --with=3Dscsi_mod
>     = ; initrd-2.6.18-xen.img 2.6.18-xen
>        =  Other systems may requires the use of 'mkinitramfs' to create=0A the<= br>>         ram disk.
>   = ;       # depmod 2.6.18-xen
>      &nbs= p;   # mkinitramfs -o initrd-2.6.18-xen.img 2.6.18-xen
>
>= ;      You may need to change the kernel version based on wh= at you built.
>      Also some distros use different c= ommands to build initrd files.
>
>      I actua= lly forgot about this step for a second too.
>
>    =   Thanks,
>      Todd
>
>  &nbs= p;   --
>      Todd Deshane
>    =   [2]http://todddeshane.net
>      [3]http://runningxen.= com
>
> References
>
>    Visible links
>    1.=0A file:///mc/compose?to=3Dccmail111@yahoo.com
>    2. http://todddeshane.net/<= br>>    3. http://runningxen.com/

> _________________= ______________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://li= sts.xensource.com/xen-devel