From mboxrd@z Thu Jan 1 00:00:00 1970 From: ccmail111 Subject: Re: boot Xen 4.0 Date: Tue, 18 May 2010 12:08:36 -0700 (PDT) Message-ID: <360776.61082.qm@web34204.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1521632642==" 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: yingbin wang Cc: deshantm@gmail.com, xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1521632642== Content-Type: multipart/alternative; boundary="0-222373239-1274209716=:61082" --0-222373239-1274209716=:61082 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Thanks for tip below. 1) I tried rebuild kernel with option below. I now build kernel with: CONFIG_SYSFS_DEPRECATED=3Dy CONFIG_SYSFS_DEPRECATED_V2=3Dy But see problem below during boot up as below.. grub.conf: title Xen 4.0 debug=A0 XenLinux 2.6 =A0=A0=A0=A0=A0=A0=A0 root (hd0,0) =A0=A0=A0=A0=A0=A0 kernel /xen-4.0.0.gz console=3Dcom1, com1=3D115200,8n1 n= oreboot loglvl=3Dall=A0 vga=3Dtext-80x50,keep iommu=3Doff apic=3Ddebug gues= t_loglvl=3Dall =A0=A0=A0=A0=A0=A0 module /vmlinuz-2.6.31.13=A0 ro root=3D/dev/ram0 console= =3Dhvc0=A0 earlyprintk=3Dxen nomodeset initcall_debug debug loglevel=3D10 =A0=A0=A0=A0=A0=A0 module=0A /initrd.img-2.6.31.13 2) Is there a=0A reference (working) ramdisk/initrd for Xen4.0 with busybox= or such ? I created ramdisk as: # 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 Using this (since there is no busybox or such): Trying to resume from /dev/sdb2 Unable to access resume device (/dev/sdb2) Creating root device. usb 5-1: new full speed USB device using uhci_hcd and address 2 Mounting root filesystem. VFS: Can't find ext3 filesystem on dev ram0. mount: error mounting /dev/root on /sysroot as ext3: Invalid argument Setting up other filesystems. Setting up new root fs setuproot: moving /dev failed: No such file or directory no fstab.sys, mounting internal defaults setuproot: error mounting /proc: No such file or directory setuproot: error mounting /sys: No such file or directory Switching to new root and running init. unmounting old /dev unmounting old /proc unmounting old /sys switchroot: mount failed: No such file or directory Kernel panic - not syncing: Attempted to kill init! Pid: 1, comm: init Not tainted 2.6.31.13 #8 Call Trace: =A0[] panic+0xb7/0x172 =A0[] ? do_exit+0x37c/0x6de =A0[] ? xen_restore_fl_direct_end+0x0/0x1 =A0[] ? lock_release+0x197/0x1b8 =A0[] ? trace_hardirqs_on+0x20/0x36 =A0[] ? _write_unlock_irq+0x46/0x61 =A0[] do_exit+0x8d/0x6de =A0[] sys_exit_group+0x0/0x42 =A0[] ? trace_hardirqs_on_thunk+0x3a/0x3f =A0[] sys_exit_group+0x2a/0x42 =A0[] system_call_fastpath+0x16/0x1b Any suggestions ? Thanks ! CM --- On Sat, 5/15/10, yingbin wang wrote: From: yingbin wang=0A Subject: Re: [Xen-devel] boot Xen 4.0 To: "ccmail111" Cc: "Pasi K=E4rkk=E4inen" , deshantm@gmail.com, xen-devel@lis= ts.xensource.com Date: Saturday, May 15, 2010, 12:34 PM I met=A0similar problems and solved it. if your grub.conf is OK, you can try to edit a option of=A0 your .config. CONFIG_SYSFS_DEPRECATED_V2=3Dy 2010/5/14 ccmail111 > > Thanks=0A Pasi/Todd, > > I did: > # mkinitrd -v -f --builtin=3Dehci-hcd --builtin=3Dohci-hcd --builtin=3Duh= ci-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 other filesystems > setting up new root fs > setuproot: moving /dev failed No such file or directory > setuproot: error mounting /proc: No such file or directory > setuproot: error mounting /sys: No such file or directory > switchroot: mount failed: No such file or directory > =A0 kernel panic - not syncing : Attempted to kill init ! > > > > > --- On Thu, 5/13/10, Pasi K=E4rkk=E4inen wrote: > > From: Pasi K=E4rkk=E4inen=0A > 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 wrote: > >=A0 =A0 The #5 of README is not clear in details. > >=A0 =A0 which directory to run depmod and mkinitrd from ? > > > > It doesn't matter. > >=0A >=A0 =A0 I see: > > > >=A0 =A0 # depmod xen-4.0.0 > >=A0 =A0 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: > 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 > > > >=A0 =A0 Any suggestions ? > > > >=A0 =A0 --- On Wed, 5/12/10, Todd Deshane wrote: > > > >=A0 =A0 =A0 From: Todd Deshane > >=A0 =A0 =A0 Subject: Re: [Xen-devel] initrd Xen 4.0 > >=A0 =A0 =A0 To:=0A "ccmail111" > >=A0 =A0 =A0 Cc: xen-devel@lists.xensource.com > >=A0 =A0 =A0 Date: Wednesday, May 12, 2010, 9:46 PM > > > >=A0 =A0 =A0 Hi, > > > >=A0 =A0 =A0 See inline. > > > >=A0 =A0 =A0 On Wed, May 12, 2010 at 12:25 PM, ccmail111 <[1]ccmail111@ya= hoo.com> > >=A0 =A0 =A0 wrote: > >=A0 =A0 =A0 > > >=A0 =A0=0A =A0 > 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 > > > > >=A0 =A0 =A0 Step 5 of the README > >=A0 =A0 =A0 =A0=A0=A0Depending on your config, you may need to use 'mkin= itrd' 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 --= with=3Dscsi_mod > >=A0 =A0 =A0 initrd-2.6.18-xen.img 2.6.18-xen > >=A0 =A0 =A0=0A =A0=A0=A0Other systems may requires the use of 'mkinitram= fs' to create 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 > > > >=A0 =A0 =A0 You may need to change the kernel version based on what you = built. > >=A0 =A0 =A0 Also some distros use different commands to build initrd fil= es. > > > >=A0 =A0 =A0 I actually forgot about this step for a second too. > > > >=A0 =A0 =A0 Thanks, > >=A0 =A0 =A0 Todd > > > >=A0 =A0 =A0 -- > >=A0 =A0 =A0 Todd Deshane > >=A0 =A0 =A0 [2]http://todddeshane.net > >=A0 =A0 =A0=0A [3]http://runningxen.com > > > > References > > > >=A0 =A0 Visible links > >=A0 =A0 1. 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 _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > =0A=0A=0A --0-222373239-1274209716=:61082 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
=0A=0A --0-222373239-1274209716=:61082-- --===============1521632642== 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 --===============1521632642==--
Thanks for tip bel= ow.

1) I tried rebuild kernel with option below. I now build kernel = with:

CONFIG_SYSFS_DEPRECATED=3Dy
CONFIG_SYSFS_DEPRECATED_V2=3Dy<= br>

But see problem below during boot up as below..

grub.conf= :

title Xen 4.0 debug  XenLinux 2.6
    =     root (hd0,0)
       ker= nel /xen-4.0.0.gz console=3Dcom1, com1=3D115200,8n1 noreboot loglvl=3Dall&n= bsp; vga=3Dtext-80x50,keep iommu=3Doff apic=3Ddebug guest_loglvl=3Dall
&= nbsp;      module /vmlinuz-2.6.31.13  ro root= =3D/dev/ram0 console=3Dhvc0 = earlyprintk=3Dxen nomodeset initcall_debug debug loglevel=3D10
 &n= bsp;     module=0A /= initrd.img-2.6.31.13


2) Is there a=0A reference (working)= ramdisk/initrd for Xen4.0 with busybox or such ? I created ramdisk as:
=
# mkinitrd -v -f --builtin=3Dehci-hcd --builtin=3Dohci-hcd --builtin=3D= uhci-hcd --builtin=3Dahci --builtin=3Daacraid --builtin=3Daacraid --builtin= =3Dsd_mod --builtin=3Dscsi_mod /boot/initrd.img-2.6.31.13 2.6.31.13

=
Using this (since there is no busybox or such):

Trying to resume= from /dev/sdb2
Unable to access resume device (/dev/sdb2)
Creating r= oot device.
usb 5-1: new full speed USB device using uhci_hcd and addres= s 2
Mounting root filesystem.
VFS: Can't find ext3 filesystem on dev = ram0.
mount: error mounting /dev/root on /sysroot as ext3: Invalid argum= ent
Setting up other filesystems.
Setting up new root fs
setuproot= : moving /dev failed: No such fil= e or directory
no fstab.sys, mounting internal defaults
setuproot: er= ror mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
Switching to new root and runn= ing init.
unmounting old /dev
unmounting old /proc
unmounting old = /sys
switchroot: mount failed: No such file or directory
Kernel panic - not syncing: Attempted to kill init!=
Pid: 1, comm: init Not tainted 2.6.31.13 #8
Call Trace:
&n= bsp;[<ffffffff8106bbeb>] panic+0xb7/0x172
 [<ffffffff8106f= e04>] ? do_exit+0x37c/0x6de
 [<ffffffff8100fa6f>] ? xen_re= store_fl_direct_end+0x0/0x1
 [<ffffffff810a1c6b>] ? lock_rele= ase+0x197/0x1b8
 [<ffffffff8109ef6e>] ? trace_hardirqs_on+0x2= 0/0x36
 [<ffffffff815436be>] ? _write_unlock_irq+0x46/0x61 [<ffffffff8106fb15>] do_exit+0x8d/0x6de
 [<ffffffff= 8107021e>] sys_exit_group+0x0/0x42
 [<ffffffff8154265c>] ?= trace_hardirqs_on_thunk+0x3a/0x3f
 [<ffffffff81070248>] sys_exit_group+0x2a/0x42
 [<ffffffff81015332>] system_call_f= astpath+0x16/0x1b


Any suggestions ?


Thanks !

C= M



--- On Sat, 5/15/10, yingbin wang <yingbin.wangyb= @gmail.com> wrote:

From: yingbin= wang=0A <yingbin.wangyb@gmail.com>
Subject: Re: [Xen-devel] boot = Xen 4.0
To: "ccmail111" <ccmail111@yahoo.com>
Cc: "Pasi K=E4rkk= =E4inen" <pasik@iki.fi>, deshantm@gmail.com, xen-devel@lists.xensourc= e.com
Date: Saturday, May 15, 2010, 12:34 PM

I met similar problems and solved it.

if your grub.conf is= OK, you can try to edit a option of  your .config.
CONFIG_SYSFS_DE= PRECATED_V2=3Dy

2010/5/14 ccmail111 <ccmail11= 1@yahoo.com>
>
> Thanks=0A Pasi/Todd,
>
> I = did:
> # mkinitrd -v -f --builtin=3Dehci-hcd --builtin=3Dohci-hcd --b= uiltin=3Duhci-hcd --builtin=3Dahci --builtin=3Daacraid --builtin=3Daacraid = --builtin=3Dsd_mod --builtin=3Dscsi_mod /boot/initrd.img-2.6.31.13 2.6.31.1= 3
>
>
> Now
> I see during boot: kernel panic:
&= gt;
> Mounting root filesystem.
> mount: could not find filesys= tem '/dev/root'
> setting up other filesystems
> setting up new= root fs
> setuproot: moving /dev failed No such file or directory> setuproot: error mounting /proc: No such file or directory
> se= tuproot: error mounting /sys: No such file or directory
> switchroot:= mount failed: No such file or directory
>   kernel panic - not = syncing : Attempted to kill init !
>
>
>
>
> = --- On Thu, 5/13/10, Pasi K=E4rkk=E4inen <pasik@iki.= fi> wrote:
>
> From: Pasi K=E4rkk=E4inen=0A <pasik@iki.fi>
> Subject: Re: [Xen-devel] initrd = Xen 4.0
> To: "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, cc= mail111 wrote:
> >    The #5 of README is not clear in d= etails.
> >    which directory to run depmod and mkinitr= d from ?
> >
>
> It doesn't matter.
>
>=0A= >    I see:
> >
> >    # depmod x= en-4.0.0
> >    WARNING: Couldn't find symtab and strtab= in module xen-4.0.0
> >
>
> Wrong. You need to run de= pmod for the *kernel*, not for xen.
>
> So like this:
> d= epmod -a 2.6.32.12
>
> Or whatever is your kernel version.
&= gt;
> -- Pasi
>
> >    # ls -l
> >&= nbsp;   total 1356
> >    -rw-r--r-- 1 root root 13= 80620 May 13 13:05 xen-4.0.0
> >
> >    Any sug= gestions ?
> >
> >    --- On Wed, 5/12/10, Todd= Deshane <deshantm@gmail.com> wrote:
> = >
> >      From: Todd Deshane <deshantm@gmail.com>
> >      Subject: = Re: [Xen-devel] initrd Xen 4.0
> >      To:=0A "ccm= ail111" <ccmail111@yahoo.com>
> >&nb= sp;     Cc: xen-devel@lists.xensource.com=
> >      Date: Wednesday, May 12, 2010, 9:46 PM> >
> >      Hi,
> >
> >&n= bsp;     See inline.
> >
> >     = ; On Wed, May 12, 2010 at 12:25 PM, ccmail111 <[1]cc= mail111@yahoo.com>
> >      wrote:
> &= gt;      >
> >   =0A   > Hi,> >      >
> >      > = I downloaded Xen 4.0 and did:
> >      > make in= stall
> >      > I donot see initrd (ramdisk) be= ing created at all.
> >      >
> > = ;     > Any suggestions ?
> >      >= ;
> >
> >      Step 5 of the README
>= ; >         Depending on your config, you = may need to use 'mkinitrd' to create
> >       = ;  an initial ram disk, just like a native system e.g.
> &g= t;          # depmod 2.6.18-xen
> > =         # mkinitrd -v -f --with=3Daacraid --with=3Dsd_= mod --with=3Dscsi_mod
> >      initrd-2.6.18-xen.im= g 2.6.18-xen
> >     =0A    Other sy= stems may requires the use of 'mkinitramfs' to create the
> > = ;        ram disk.
> >     = ;     # depmod 2.6.18-xen
> >       =   # mkinitramfs -o initrd-2.6.18-xen.img 2.6.18-xen
> >
&= gt; >      You may need to change the kernel version base= d on what you built.
> >      Also some distros use= different commands to build initrd files.
> >
> >  =     I actually forgot about this step for a second too.
> &= gt;
> >      Thanks,
> >    &nbs= p; Todd
> >
> >      --
> > =     Todd Deshane
> >      [2]http://todddesha= ne.net
> >     =0A [3]http://runningxen.com
&g= t; >
> > References
> >
> >    Visi= ble links
> >    1. file:///mc/compose?to=3Dccmail111@yahoo.com
> >    2. http://todddeshane= .net/
> >    3. http://runningxen.com/
>
>= ; > _______________________________________________
> > Xen-dev= el mailing list
> > Xen-devel@lists.xensource.= com
> > http://lists.xensource.com/xen-devel
&= gt;
>
>
>=0A ____________________________________________= ___
> Xen-devel mailing list
> Xen-devel@li= sts.xensource.com
> http://lists.xensource.com/xen-devel=
>