From mboxrd@z Thu Jan 1 00:00:00 1970 From: kishore kumar Subject: Re: Xen Dom U kernel Date: Thu, 22 Apr 2010 14:35:04 -0700 Message-ID: References: <20100420223818.GA29329@phenom.dumpdata.com> <20100420233910.GA1480@phenom.dumpdata.com> <20100421014530.GA14527@phenom.dumpdata.com> <20100422195317.GK1878@reaktio.net> <20100422202521.GL1878@reaktio.net> <20100422204841.GM1878@reaktio.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0209724777==" Return-path: In-Reply-To: <20100422204841.GM1878@reaktio.net> 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: Jeremy Fitzhardinge , xen-devel@lists.xensource.com, xen-users@lists.xensource.com, Konrad Rzeszutek Wilk List-Id: xen-devel@lists.xenproject.org --===============0209724777== Content-Type: multipart/alternative; boundary=0016e64097f47819910484da1560 --0016e64097f47819910484da1560 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable OK. what could be the reason for my domU creation is failing here? Mounting proc filesystem Mounting sysfs filesystem Creating /dev Creating initial device nodes Setting up hotplug. Creating block device nodes. Scanning and configuring dmraid supported devices Scanning logical volumes Reading all physical volumes. This may take a while... Found volume group "VolGroup01" using metadata type lvm2 lvm used greatest stack depth: 4912 bytes left Activating logical volumes 2 logical volume(s) in volume group "VolGroup01" now active Trying to resume from /dev/VolGroup01/LogVol01 No suspend signature on swap, not resuming. Creating root device. 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 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.33 #3 Call Trace: [] panic+0xa5/0x171 [] ? xen_force_evtchn_callback+0xd/0xf [] ? _raw_write_unlock_irq+0x30/0x3b [] ? trace_hardirqs_on_caller+0x110/0x134 [] ? trace_hardirqs_on+0xd/0xf [] ? _raw_write_unlock_irq+0x37/0x3b [] do_exit+0x7c/0x6f5 [] ? up_read+0x2b/0x2f [] sys_exit_group+0x0/0x1b [] sys_exit_group+0x17/0x1b [] system_call_fastpath+0x16/0x1b Thank You. On Thu, Apr 22, 2010 at 1:48 PM, Pasi K=E4rkk=E4inen wrote: > On Thu, Apr 22, 2010 at 01:39:57PM -0700, kishore kumar wrote: > > I did below steps > > make menuconfig > > make > > make modules_install install > > /sbin/depmod -a 2.6.33 > > /sbin/mkinitrd --with xen-blkfront --with xen-netfront > > /boot/initrd-xenu.img 2.6.33 > > > > You had these .config options set: > CONFIG_XEN_BLKDEV_FRONTEND=3Dy > CONFIG_XEN_NETDEV_FRONTEND=3Dy > > That means the drivers are built *into* the kernel statically, > and they're *not* built as modules. > > So you don't need to use "--with xen-blkfront --with xen-netfront" for > mkinitrd. > > -- Pasi > > > still the same problem. > > > > On Thu, Apr 22, 2010 at 1:25 PM, Pasi K=E4rkk=E4inen <[1]pasik@iki.f= i> > wrote: > > > > On Thu, Apr 22, 2010 at 01:08:54PM -0700, kishore kumar wrote: > > > I tried > > > mkinitrd --with xen-blkfront --with xen-netfront > > /boot/initrd-xenu.img > > > 2.6.33 > > > It complaints No module xen-blkfront found for kernel 2.6.33, > > aborting. > > > > > > I dont see xen-blkfront.ko in my > /lib/modules/2.633/drivers/block . > > Am I > > > looking at the right place? > > > > > > > Have you done "depmod -a " before running mkinitrd = ? > > > > -- Pasi > > > > > Thank You. > > > > > > On Thu, Apr 22, 2010 at 12:53 PM, Pasi K=E4rkk=E4inen > > <[1][2]pasik@iki.fi> wrote: > > > > > > On Thu, Apr 22, 2010 at 11:31:25AM -0700, kishore kumar > wrote: > > > > I am trying create ramdisk image for my domU image fro= m > > Konrad git > > > > repository. > > > > > > > > mkinitrd --with xenblk --with xennet > /boot/initrd-xenu.img > > 2.6.33 > > > > I get No module xenblk found for kernel 2.6.33, > aborting. > > > > Can you please let me know what could be the problem?? > > > > > > > > I have CONFIG_XEN_BLKDEV_FRONTEND=3Dy > > > > CONFIG_XEN_NETDEV_FRONTEND=3Dy in my .config as well. > > > > > > > > > > Xen modules in upstream [2][3]kernel.org (pvops) kernels ar= e > not > > called > > > xennet or xenblk. > > > They're called xen-blkfront and xen-netfront in pvops > kernels. > > > > > > You can easily verify be checking under > > /lib/modules// > > > > > > -- Pasi > > > > Thank You. > > > > On Tue, Apr 20, 2010 at 6:45 PM, Konrad Rzeszutek Wilk > > > > <[1][3][4]konrad.wilk@oracle.com> wrote: > > > > > > > > On Tue, Apr 20, 2010 at 05:09:29PM -0700, kishore > kumar > > wrote: > > > > > I did git pull and did > > > > > make > > > > > make modules_install install. > > > > > Is this the problem with xen blkdevices not > loaded? > > Can you > > > let me > > > > know > > > > > > > > So now you are hitting another problem. This looks > > > > to be this one: > > > > > > > > > [2][4][5] > http://lists.xensource.com/archives/html/xen-devel/2010-04/msg00897.html > > > > > > > > Please follow the whole thread and select the right > config > > > options. > > > > > > > > References > > > > > > > > Visible links > > > > 1. mailto:[5][6]konrad.wilk@oracle.com > > > > 2. > > > > > [6][7] > http://lists.xensource.com/archives/html/xen-devel/2010-04/msg00897.html > > > > > > References > > > > > > Visible links > > > 1. mailto:[8]pasik@iki.fi > > > 2. [9]http://kernel.org/ > > > 3. mailto:[10]konrad.wilk@oracle.com > > > 4. > > [11] > http://lists.xensource.com/archives/html/xen-devel/2010-04/msg00897.html > > > 5. mailto:[12]konrad.wilk@oracle.com > > > 6. > > [13] > http://lists.xensource.com/archives/html/xen-devel/2010-04/msg00897.html > > > > References > > > > Visible links > > 1. mailto:pasik@iki.fi > > 2. mailto:pasik@iki.fi > > 3. http://kernel.org/ > > 4. mailto:konrad.wilk@oracle.com > > 5. > http://lists.xensource.com/archives/html/xen-devel/2010-04/msg00897.html > > 6. mailto:konrad.wilk@oracle.com > > 7. > http://lists.xensource.com/archives/html/xen-devel/2010-04/msg00897.html > > 8. mailto:pasik@iki.fi > > 9. http://kernel.org/ > > 10. mailto:konrad.wilk@oracle.com > > 11. > http://lists.xensource.com/archives/html/xen-devel/2010-04/msg00897.html > > 12. mailto:konrad.wilk@oracle.com > > 13. > http://lists.xensource.com/archives/html/xen-devel/2010-04/msg00897.html > --0016e64097f47819910484da1560 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
OK.=A0
what could be the reason=A0for my domU creation is failing here?=A0
=A0
Mounting proc filesystem
Mounting sysfs filesystem
Creating /dev=
Creating initial device nodes
Setting up hotplug.
Creating block = device nodes.
Scanning and configuring dmraid supported devices
Scanning logical volumes
Reading all physical volumes. This may take a w= hile...
Found volume group "VolGroup01" using metadata type lv= m2
lvm used greatest stack depth: 4912 bytes left
Activating logical = volumes
2 logical volume(s) in volume group "VolGroup01" now active
Tr= ying to resume from /dev/VolGroup01/LogVol01
No suspend signature on swa= p, not resuming.
Creating root device.
Mounting root filesystem.
mount: could not find filesystem '/dev/root'
Setting up other fi= lesystems.
Setting up new root fs
setuproot: moving /dev failed: No s= uch file or directory
no fstab.sys, mounting internal defaults
setupr= oot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
Switching to n= ew root and running init.
unmounting old /dev
unmounting old /procunmounting old /sys
switchroot: mount failed: No such file or directory=
Kernel panic - not syncing: Attempted to kill init!
Pid: 1, comm: init N= ot tainted 2.6.33 #3
Call Trace:
[<ffffffff810513fa>] panic+0xa= 5/0x171
[<ffffffff81006891>] ? xen_force_evtchn_callback+0xd/0xf [<ffffffff8148ce94>] ? _raw_write_unlock_irq+0x30/0x3b
[<ffffff= ff8107ecb8>] ? trace_hardirqs_on_caller+0x110/0x134
[<ffffffff8107= ece9>] ? trace_hardirqs_on+0xd/0xf
[<ffffffff8148ce9b>] ? _raw_= write_unlock_irq+0x37/0x3b
[<ffffffff81054b0c>] do_exit+0x7c/0x6f5
[<ffffffff8107189f>]= ? up_read+0x2b/0x2f
[<ffffffff81055221>] sys_exit_group+0x0/0x1b<= br>[<ffffffff81055238>] sys_exit_group+0x17/0x1b
[<ffffffff8100= 9cf2>] system_call_fastpath+0x16/0x1b
=A0
Thank You.
On Thu, Apr 22, 2010 at 1:48 PM, Pasi K=E4rkk=E4= inen <pasik@iki.fi= > wrote:
On Thu, Apr 22, 2010 at 01:39:57PM -0700, kishore kumar w= rote:
> =A0 =A0I did below steps
> =A0 =A0make menuconfig
&g= t; =A0 =A0make
> =A0 =A0make modules_install install
> =A0 =A0/= sbin/depmod -a 2.6.33
> =A0 =A0/sbin/mkinitrd --with xen-blkfront --with xen-netfront
> = =A0 =A0/boot/initrd-xenu.img =A0 =A02.6.33
>

You had the= se .config options set:
CONFIG_XEN_BLKDEV_FRONTEND=3Dy
CONFIG_XEN_NETDEV_FRONT= END=3Dy

That means the drivers are built *into* the kernel sta= tically,
and they're *not* built as modules.

So you don't= need to use "--with xen-blkfront --with xen-netfront" for mkinit= rd.

-- Pasi

> =A0 =A0still the same problem.
>
> =A0 =A0On Thu, Apr 22, 2010 at 1:25 PM, Pasi= K=E4rkk=E4inen <[1]pasik@iki.fi>= wrote:
>
> =A0 =A0 =A0On Thu, Apr 22, 2010 at 01:08:54PM -0700= , kishore kumar wrote:
> =A0 =A0 =A0> =A0 =A0I tried
> =A0 =A0 =A0> =A0 =A0mkinitrd= --with xen-blkfront --with xen-netfront
> =A0 =A0 =A0/boot/initrd-xe= nu.img
> =A0 =A0 =A0> =A0 =A0 2.6.33
> =A0 =A0 =A0> =A0 = =A0It complaints No module xen-blkfront found for kernel 2.6.33,
> =A0 =A0 =A0aborting.
> =A0 =A0 =A0>
> =A0 =A0 =A0> = =A0 =A0I dont see xen-blkfront.ko in my /lib/modules/2.633/drivers/block .<= br>> =A0 =A0 =A0 Am I
> =A0 =A0 =A0> =A0 =A0looking at the righ= t place?
> =A0 =A0 =A0>
>
> =A0 =A0 =A0Have you done "depmod -a <kernelversion>" b= efore running mkinitrd ?
>
> =A0 =A0 =A0-- Pasi
>
>= =A0 =A0 =A0> =A0 =A0Thank You.
> =A0 =A0 =A0>
> =A0 =A0 = =A0> =A0 =A0On Thu, Apr 22, 2010 at 12:53 PM, Pasi K=E4rkk=E4inen
> =A0 =A0 =A0<[1][2]pasik@iki.fi> wrote:
> =A0 =A0 =A0>
> =A0 =A0 =A0>= ; =A0 =A0 =A0On Thu, Apr 22, 2010 at 11:31:25AM -0700, kishore kumar wrote:=
> =A0 =A0 =A0> =A0 =A0 =A0> =A0 =A0I am trying create ramdisk = image for my domU image from
> =A0 =A0 =A0Konrad git
> =A0 =A0 =A0> =A0 =A0 =A0> =A0 =A0r= epository.
> =A0 =A0 =A0> =A0 =A0 =A0>
> =A0 =A0 =A0> = =A0 =A0 =A0> =A0 =A0mkinitrd --with xenblk --with xennet /boot/initrd-xe= nu.img
> =A0 =A0 =A0 2.6.33
> =A0 =A0 =A0> =A0 =A0 =A0> = =A0 =A0I get No module xenblk found for kernel 2.6.33, aborting.
> =A0 =A0 =A0> =A0 =A0 =A0> =A0 =A0Can you please let me know what= could be the problem??
> =A0 =A0 =A0> =A0 =A0 =A0>
> =A0= =A0 =A0> =A0 =A0 =A0> =A0 =A0I have CONFIG_XEN_BLKDEV_FRONTEND=3Dy> =A0 =A0 =A0> =A0 =A0 =A0> =A0 =A0CONFIG_XEN_NETDEV_FRONTEND=3D= y in my .config as well.
> =A0 =A0 =A0> =A0 =A0 =A0>
> =A0 =A0 =A0>
> = =A0 =A0 =A0> =A0 =A0 =A0Xen modules in upstream [2][3]kernel.org (pvops) kernels are not
> =A0 =A0 =A0called
> =A0 =A0 =A0> =A0 =A0 = =A0xennet or xenblk.
> =A0 =A0 =A0> =A0 =A0 =A0They're called = xen-blkfront and xen-netfront in pvops kernels.
> =A0 =A0 =A0>
= > =A0 =A0 =A0> =A0 =A0 =A0You can easily verify be checking under
> =A0 =A0 =A0/lib/modules/<kernelversion>/
> =A0 =A0 =A0>=
> =A0 =A0 =A0> =A0 =A0 =A0-- Pasi
> =A0 =A0 =A0> =A0 =A0= =A0> =A0 =A0Thank You.
> =A0 =A0 =A0> =A0 =A0 =A0> =A0 =A0O= n Tue, Apr 20, 2010 at 6:45 PM, Konrad Rzeszutek Wilk
> =A0 =A0 =A0> =A0 =A0 =A0> =A0 =A0<[1][3][4]= konrad.wilk@oracle.com> wr= ote:
> =A0 =A0 =A0> =A0 =A0 =A0>
> =A0 =A0 =A0> =A0 = =A0 =A0> =A0 =A0 =A0On Tue, Apr 20, 2010 at 05:09:29PM -0700, kishore ku= mar
> =A0 =A0 =A0wrote:
> =A0 =A0 =A0> =A0 =A0 =A0> =A0 =A0 =A0&= gt; I did git pull and did
> =A0 =A0 =A0> =A0 =A0 =A0> =A0 =A0 = =A0> make
> =A0 =A0 =A0> =A0 =A0 =A0> =A0 =A0 =A0> make m= odules_install install.
> =A0 =A0 =A0> =A0 =A0 =A0> =A0 =A0 =A0= > =A0 Is this the problem with xen blkdevices not loaded?
> =A0 =A0 =A0 Can you
> =A0 =A0 =A0> =A0 =A0 =A0let me
> = =A0 =A0 =A0> =A0 =A0 =A0> =A0 =A0 =A0know
> =A0 =A0 =A0> =A0= =A0 =A0>
> =A0 =A0 =A0> =A0 =A0 =A0> =A0 =A0 =A0So now you = are hitting another problem. This looks
> =A0 =A0 =A0> =A0 =A0 =A0= > =A0 =A0 =A0to be this one:
> =A0 =A0 =A0> =A0 =A0 =A0>
> =A0 =A0 =A0>
> = =A0 =A0 =A0[2][4][5]http://lists.xensource.com/= archives/html/xen-devel/2010-04/msg00897.html
> =A0 =A0 =A0> =A0 =A0 =A0>
> =A0 =A0 =A0&= gt; =A0 =A0 =A0> =A0 =A0 =A0Please follow the whole thread and select th= e right config
> =A0 =A0 =A0> =A0 =A0 =A0options.
> =A0 =A0 = =A0> =A0 =A0 =A0>
> =A0 =A0 =A0> =A0 =A0 =A0> References<= br> > =A0 =A0 =A0> =A0 =A0 =A0>
> =A0 =A0 =A0> =A0 =A0 =A0>= ; =A0 =A0Visible links
> =A0 =A0 =A0> =A0 =A0 =A0> =A0 = =A01. mailto:[5][6]konrad.wilk@or= acle.com
> =A0 =A0 =A0> =A0 =A0 =A0> =A0 =A02.
> =A0 =A0 =A0>
> =A0 =A0 =A0 [6][7]= http://lists.xensource.com/archives/html/xen-devel/2010-04/msg00897.html
> =A0 =A0 =A0>
> =A0 =A0 =A0> References
> =A0 =A0 =A0>
> =A0 =A0 =A0= > =A0 =A0Visible links
> =A0 =A0 =A0> =A0 =A01. mailto:[8]
pasik@iki.fi
> =A0 =A0 =A0> =A0 =A0= 2. [9]http://kernel.org/
> =A0 =A0 =A0> =A0 =A03. mailto:[10]
konrad.wilk@oracle.com
> =A0 =A0 =A0> =A0 =A04.
&g= t; =A0 =A0 =A0[11]http://lists.xensource.com/ar= chives/html/xen-devel/2010-04/msg00897.html
> =A0 =A0 =A0> =A0 =A05. mailto:[12]konrad.wilk@oracle.com
> =A0 =A0 =A0> =A0 =A06.
&g= t; =A0 =A0 =A0[13]http://lists.xensource.com/ar= chives/html/xen-devel/2010-04/msg00897.html
>
> References
>
> =A0 =A0Visible li= nks
> =A0 =A01. mailto:pasik@iki.fi
> =A0 =A02. mailto:
pasik@iki.fi
> =A0 =A03.
http:/= /kernel.org/
> =A0 =A04. mailto:konrad.wilk= @oracle.com
> =A0 =A05. http://= lists.xensource.com/archives/html/xen-devel/2010-04/msg00897.html
> =A0 =A06. mailto:konrad.wilk@oracle.com
> =A0 =A07. http://lists.xensource.com/archives/html/xen-devel/2010-04/msg0= 0897.html
> =A0 =A08. mailto:pasik@iki.fi
&= gt; =A0 =A09. http://kerne= l.org/
> =A0 10. mailto:konrad.wilk@oracle.com
> =A0 11. http://lists.xensource.com/archive= s/html/xen-devel/2010-04/msg00897.html
> =A0 12. mailto:konrad.wilk@oracle.com
> =A0 13. http://lists.xensource.com/archive= s/html/xen-devel/2010-04/msg00897.html

--0016e64097f47819910484da1560-- --===============0209724777== 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 --===============0209724777==--