From mboxrd@z Thu Jan 1 00:00:00 1970 From: kishore kumar Subject: Re: Xen Dom U kernel Date: Thu, 22 Apr 2010 17:15:35 -0700 Message-ID: References: <20100420233910.GA1480@phenom.dumpdata.com> <20100421014530.GA14527@phenom.dumpdata.com> <20100422195317.GK1878@reaktio.net> <20100422202521.GL1878@reaktio.net> <20100422204841.GM1878@reaktio.net> <20100422214731.GA4087@phenom.dumpdata.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0160936736==" Return-path: In-Reply-To: <20100422214731.GA4087@phenom.dumpdata.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Konrad Rzeszutek Wilk Cc: Jeremy Fitzhardinge , xen-devel@lists.xensource.com, xen-users@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0160936736== Content-Type: multipart/alternative; boundary=00163630f96d909db40484dc53c4 --00163630f96d909db40484dc53c4 Content-Type: text/plain; charset=ISO-8859-1 I am using RHEL5. and I have below too in my .config. CONFIG_SYSFS_DEPRECATED=y CONFIG_SYSFS_DEPRECATED_V2=y My /etc/modprobe.conf has the following alias scsi_hostadapter ahci alias eth2 ixgbe alias eth3 ixgbe Do I need to add the below lines in /etc/modprobe.conf ?? from http://wiki.xensource.com/xenwiki/2.6.18-to-2.6.31-and-higher link? # RHEL -> FC11 quick upgrade path. grep -q xenfs /etc/fstab || echo "xenfs /proc/xen xenfs defaults 0 0" >> /etc/fstab if grep -q ata_piix /etc/modprobe.conf ; then NR=`cat /etc/modprobe.conf | grep scsi | wc -l | sed s/[[:space:]]*//` grep -q pata_oldpiix /etc/modprobe.conf || echo "alias scsi_hostadapter$NR pata_oldpiix" >> /etc/modprobe.conf fi grep -q hvc /etc/inittab || echo "co:2345:respawn:/sbin/agetty hvc0 9600 vt100-nav" >> /etc/inittab grep -q hvc0 /etc/securetty || echo "hvc0" >> /etc/securetty Could you please let me know what exactly needs to be done? I could not get much out of it? Thank You. On Thu, Apr 22, 2010 at 2:47 PM, Konrad Rzeszutek Wilk < konrad.wilk@oracle.com> wrote: > On Thu, Apr 22, 2010 at 02:35:04PM -0700, kishore kumar wrote: > > OK. > > what could be the reason for my domU creation is failing here? > > Hmm, Are you using a RHEL5/CentOS based userspace to build the initrd > image? > > If you are please take a look at this: > http://wiki.xensource.com/xenwiki/2.6.18-to-2.6.31-and-higher > > > > > 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 > --00163630f96d909db40484dc53c4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I am using RHEL5.
=A0
and I have below too in my .config.
=A0
CONFIG_SYSFS_DEPRECATED=3Dy
<= /span>CONFIG_SYSFS_DEPRECATED_V2=3Dy
=A0
My /etc/modprobe.conf has the following
=A0
alias scsi_hostadapter ahci
alias eth2 ixgbe
alias eth3 ixgbe
=A0
Do I need to add the below lines in /etc/modprobe.conf ??
=A0
# RHEL -> FC11 quick upgrade path.
grep -q xenfs /etc/fstab || echo "xenfs=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 /proc/xen=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0 xenfs=A0=A0 defaults=A0=A0=A0=A0=A0=A0=A0 0 0" >= > /etc/fstab
if grep -q ata_piix /etc/modpr= obe.conf ; then
=A0=A0=A0= =A0=A0=A0=A0 NR=3D`cat /etc/modprobe.conf | grep scsi | wc -l | sed s/[[:sp= ace:]]*//`
=A0=A0=A0=A0=A0= =A0=A0 grep -q pata_oldpiix /etc/modprobe.conf || echo "alias scsi_hos= tadapter$NR pata_oldpiix" >> /etc/modprobe.conf
fi
grep -q hvc /etc/inittab || echo "co:2345:respawn= :/sbin/agetty hvc0 9600 vt100-nav" >> /etc/inittab
grep -q hvc0 /etc/securetty || echo &quo= t;hvc0" >> /etc/securetty
Could you please let me k= now what exactly needs to be done?=A0 I could not get much out of it?
Thank You.

On Thu, Apr 22, 2010 at 2:47 PM, Konrad Rzeszute= k Wilk <konr= ad.wilk@oracle.com> wrote:
On Thu, Apr 22, 2010 at 02:35:04PM -0700, kishore kumar w= rote:
> OK.
> what could be the reason for my domU creation is = failing here?

Hmm, Are you using a RHEL5/CentOS based userspac= e to build the initrd image?

If you are please take a look at this:
http://wiki.= xensource.com/xenwiki/2.6.18-to-2.6.31-and-higher

>
> Mounting proc filesystem
> Mountin= g sysfs filesystem
> Creating /dev
> Creating initial device no= des
> Setting up hotplug.
> Creating block device nodes.
> Scanning and configuring dmraid supported devices
> Scanning log= ical 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 logi= cal volumes
> 2 logical volume(s) in volume group "VolGroup01&qu= ot; now active
> Trying to resume from /dev/VolGroup01/LogVol01
> No suspend signature on swap, not resuming.
> Creating root devi= ce.
> Mounting root filesystem.
> mount: could not find filesys= tem '/dev/root'
> Setting up other filesystems.
> Setti= ng up new root fs
> setuproot: moving /dev failed: No such file or directory
> no fs= tab.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:
> [= <ffffffff810513fa>] panic+0xa5/0x171
> [<ffffffff81006891>= ;] ? xen_force_evtchn_callback+0xd/0xf
> [<ffffffff8148ce94>] ?= _raw_write_unlock_irq+0x30/0x3b
> [<ffffffff8107ecb8>] ? trace_hardirqs_on_caller+0x110/0x134
&= gt; [<ffffffff8107ece9>] ? trace_hardirqs_on+0xd/0xf
> [<fff= fffff8148ce9b>] ? _raw_write_unlock_irq+0x37/0x3b
> [<ffffffff8= 1054b0c>] do_exit+0x7c/0x6f5
> [<ffffffff8107189f>] ? up_read+0x2b/0x2f
> [<ffffffff81= 055221>] sys_exit_group+0x0/0x1b
> [<ffffffff81055238>] sys_= exit_group+0x17/0x1b
> [<ffffffff81009cf2>] system_call_fastpat= h+0x16/0x1b

--00163630f96d909db40484dc53c4-- --===============0160936736== 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 --===============0160936736==--