From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: boot Xen 4.0 Date: Tue, 18 May 2010 22:11:29 +0300 Message-ID: <20100518191129.GA17817@reaktio.net> References: <360776.61082.qm@web34204.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <360776.61082.qm@web34204.mail.mud.yahoo.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: ccmail111 Cc: deshantm@gmail.com, yingbin wang , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Tue, May 18, 2010 at 12:08:36PM -0700, ccmail111 wrote: > Thanks for tip below. >=20 > 1) I tried rebuild kernel with option below. I now build kernel with= : >=20 > CONFIG_SYSFS_DEPRECATED=3Dy > CONFIG_SYSFS_DEPRECATED_V2=3Dy >=20 > But see problem below during boot up as below.. >=20 > grub.conf: >=20 > title Xen 4.0 debug XenLinux 2.6 > root (hd0,0) > kernel /xen-4.0.0.gz console=3Dcom1, com1=3D115200,8n1 norebo= ot > loglvl=3Dall vga=3Dtext-80x50,keep iommu=3Doff apic=3Ddebug guest_l= oglvl=3Dall > module /vmlinuz-2.6.31.13 ro root=3D/dev/ram0 console=3Dhvc0 > earlyprintk=3Dxen nomodeset initcall_debug debug loglevel=3D10 your root=3D parameter is wrong. You need to have the actual root partition path there. -- Pasi > module /initrd.img-2.6.31.13 >=20 > 2) Is there a reference (working) ramdisk/initrd for Xen4.0 with bus= ybox > or such ? I created ramdisk as: >=20 > # mkinitrd -v -f --builtin=3Dehci-hcd --builtin=3Dohci-hcd --builtin= =3Duhci-hcd > --builtin=3Dahci --builtin=3Daacraid --builtin=3Daacraid --builtin=3D= sd_mod > --builtin=3Dscsi_mod /boot/initrd.img-2.6.31.13 2.6.31.13 >=20 > Using this (since there is no busybox or such): >=20 > 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 argumen= t > 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: > [] panic+0xb7/0x172 > [] ? do_exit+0x37c/0x6de > [] ? xen_restore_fl_direct_end+0x0/0x1 > [] ? lock_release+0x197/0x1b8 > [] ? trace_hardirqs_on+0x20/0x36 > [] ? _write_unlock_irq+0x46/0x61 > [] do_exit+0x8d/0x6de > [] sys_exit_group+0x0/0x42 > [] ? trace_hardirqs_on_thunk+0x3a/0x3f > [] sys_exit_group+0x2a/0x42 > [] system_call_fastpath+0x16/0x1b >=20 > Any suggestions ? >=20 > Thanks ! >=20 > CM >=20 > --- On Sat, 5/15/10, yingbin wang wrote: >=20 > From: yingbin wang > Subject: Re: [Xen-devel] boot Xen 4.0 > To: "ccmail111" > Cc: "Pasi K=E4rkk=E4inen" , deshantm@gmail.com, > xen-devel@lists.xensource.com > Date: Saturday, May 15, 2010, 12:34 PM >=20 > I met similar problems and solved it. >=20 > if your grub.conf is OK, you can try to edit a option of your .co= nfig. > CONFIG_SYSFS_DEPRECATED_V2=3Dy >=20 > 2010/5/14 ccmail111 > > > > Thanks Pasi/Todd, > > > > I did: > > # mkinitrd -v -f --builtin=3Dehci-hcd --builtin=3Dohci-hcd > --builtin=3Duhci-hcd --builtin=3Dahci --builtin=3Daacraid --builti= n=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 > > 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 wrote: > > > The #5 of README is not clear in details. > > > which directory to run depmod and mkinitrd from ? > > > > > > > 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: > > depmod -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 Wed, 5/12/10, Todd Deshane wrot= e: > > > > > > From: Todd Deshane > > > Subject: Re: [Xen-devel] initrd Xen 4.0 > > > To: "ccmail111" > > > Cc: xen-devel@lists.xensource.com > > > Date: Wednesday, May 12, 2010, 9:46 PM > > > > > > Hi, > > > > > > See inline. > > > > > > On Wed, May 12, 2010 at 12:25 PM, ccmail111 > <[1]ccmail111@yahoo.com> > > > wrote: > > > > > > > > Hi, > > > > > > > > I downloaded Xen 4.0 and did: > > > > make install > > > > I donot see initrd (ramdisk) being created at all. > > > > > > > > Any suggestions ? > > > > > > > > > > Step 5 of the README > > > Depending on your config, you may need to use 'mkinitr= d' to > create > > > an initial ram disk, just like a native system e.g. > > > # depmod 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 the > > > ram disk. > > > # depmod 2.6.18-xen > > > # mkinitramfs -o initrd-2.6.18-xen.img 2.6.18-xen > > > > > > You may need to change the kernel version based on what y= ou > built. > > > Also some distros use different commands to build initrd = files. > > > > > > I actually forgot about this step for a second too. > > > > > > Thanks, > > > Todd > > > > > > -- > > > Todd Deshane > > > [2][1]http://todddeshane.net > > > [3][2]http://runningxen.com > > > > > > References > > > > > > Visible links > > > 1. file:///mc/compose?to=3Dccmail111@yahoo.com > > > 2. [3]http://todddeshane.net/ > > > 3. [4]http://runningxen.com/ > > > > > _______________________________________________ > > > Xen-devel mailing list > > > Xen-devel@lists.xensource.com > > > [5]http://lists.xensource.com/xen-devel > > > > > > > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xensource.com > > [6]http://lists.xensource.com/xen-devel > > >=20 > References >=20 > Visible links > 1. http://todddeshane.net/ > 2. http://runningxen.com/ > 3. http://todddeshane.net/ > 4. http://runningxen.com/ > 5. http://lists.xensource.com/xen-devel > 6. http://lists.xensource.com/xen-devel