Hi, I''m new to this maillist. Tried to find anything on my problem in the maillist archives but I had no luck. I''m running a Gentoo system on evms-root and boot. I''ve made a kernel and initrd with the genkernel-program before. But with xen I can''t do that. So my question is: How can I run the evms-initrd before xen boots. One solution is of cource to skip evms on my root / boot partition.. but where''s the fun in that. Any help would be great! Thanks! Martin Andersson _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Friday 21 October 2005 10:32, Martin Andersson wrote:> > I''m running a Gentoo system on evms-root and boot. I''ve made a kernel > and initrd with the genkernel-program before. But with xen I can''t do > that. So my question is: > > How can I run the evms-initrd before xen boots. One solution is of > cource to skip evms on my root / boot partition.. but where''s the fun in > that. > > Any help would be great! Thanks!gentoo genkernel is just a script to compile + install a kernel with a predefined .config, no magic involved... Look into that script, find out how it generates the initrd (most likely it just calls mkinitrd with the right params for the freshly installed kernel) and execute those steps yourself for your own xen kernel. /Ernst _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ernst Bachmann wrote:>On Friday 21 October 2005 10:32, Martin Andersson wrote: > > >>I''m running a Gentoo system on evms-root and boot. I''ve made a kernel >>and initrd with the genkernel-program before. But with xen I can''t do >>that. So my question is: >> >>How can I run the evms-initrd before xen boots. One solution is of >>cource to skip evms on my root / boot partition.. but where''s the fun in >>that. >> >>Any help would be great! Thanks! >> >> > > >gentoo genkernel is just a script to compile + install a kernel with a >predefined .config, no magic involved... > >Look into that script, find out how it generates the initrd (most likely it >just calls mkinitrd with the right params for the freshly installed kernel) >and execute those steps yourself for your own xen kernel. > >/Ernst > >Yes , Okay. You are probably right. But do you have any idea how my grub.conf should look like? Today it look like this to load evms-root-stuff ;) title Gentoo kernel /kernel-genkernel-x86-2.6.13-gentoo-r3 root=/dev/ram0 real_root=/dev/evms/root init=/linuxrc udev doevms2 initrd /initramfs-genkernel-x86-2.6.13-gentoo-r3 And THANKS , again. Martin Andersson _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Friday 21 October 2005 10:57, Martin Andersson wrote:> > Yes , Okay. You are probably right. But do you have any idea how my > grub.conf should look like? > > Today it look like this to load evms-root-stuff ;) > > title Gentoo > kernel /kernel-genkernel-x86-2.6.13-gentoo-r3 root=/dev/ram0 > real_root=/dev/evms/root init=/linuxrc udev doevms2 > initrd /initramfs-genkernel-x86-2.6.13-gentoo-r3 >Probably something like: title Gentoo/Xen kernel /xen.gz dom0_mem=131072 module /my_xen_kernel root=/dev/ram0 real_root=/dev/evms/root init=/linuxrc udev doevms2 module /my_xen_initrd /Ernst _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
>Probably something like: > >title Gentoo/Xen > kernel /xen.gz dom0_mem=131072 > module /my_xen_kernel root=/dev/ram0 real_root=/dev/evms/root init=/linuxrc >udev doevms2 > module /my_xen_initrd > >/Ernst > > >Thanks, but when I boot it can''t mount root... Strange.. I have to have "noreboot" in grub to see this. Any ideas? My kernel has ramdisk support. Well, I''ll google on it.. But if someone has any ideas, they are welcome ;) Martin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
>title Gentoo/Xen > kernel /xen.gz dom0_mem=131072 > module /my_xen_kernel root=/dev/ram0 real_root=/dev/evms/root init=/linuxrc >udev doevms2 > module /my_xen_initrd > >/Ernst > > >Ok , so it boots xen.gz and then it finds the vmlinuz-kernel and start to boot.. but then it get''s kernel panic. RAMDISK: Couldn''t find a valid RAM disk image starting at 0 .... Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0) Well well.. could make sense if I hadn''t compiled ramdisk support.. but now I don''t know. any ideas? ;) Martin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sat, 2005-10-22 at 12:44 +0200, Martin Andersson wrote:> >title Gentoo/Xen > > kernel /xen.gz dom0_mem=131072 > > module /my_xen_kernel root=/dev/ram0 real_root=/dev/evms/root init=/linuxrc > >udev doevms2 > > module /my_xen_initrd > > > >/Ernst > > > > > > > Ok , so it boots xen.gz and then it finds the vmlinuz-kernel and start > to boot.. but then it get''s kernel panic. > > RAMDISK: Couldn''t find a valid RAM disk image starting at 0 > .... > Kernel panic - not syncing: VFS: Unable to mount root fs on > unknown-block(1,0) > > Well well.. could make sense if I hadn''t compiled ramdisk support.. but > now I don''t know. > > any ideas? ;) > > MartinLikely you have a typo or are passing something invalid. Using names like my_xen_kernel and my_xen_initrd would not seem to be a good idea also, but that likely has nothing to do with your problem. Did you look at the fine Gentoo wiki? Regards, Ted _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ted Kaczmarek wrote:>On Sat, 2005-10-22 at 12:44 +0200, Martin Andersson wrote: > > >>>title Gentoo/Xen >>> kernel /xen.gz dom0_mem=131072 >>> module /my_xen_kernel root=/dev/ram0 real_root=/dev/evms/root init=/linuxrc >>>udev doevms2 >>> module /my_xen_initrd >>> >>>/Ernst >>> >>> >>> >>> >>> >>Ok , so it boots xen.gz and then it finds the vmlinuz-kernel and start >>to boot.. but then it get''s kernel panic. >> >>RAMDISK: Couldn''t find a valid RAM disk image starting at 0 >>.... >>Kernel panic - not syncing: VFS: Unable to mount root fs on >>unknown-block(1,0) >> >>Well well.. could make sense if I hadn''t compiled ramdisk support.. but >>now I don''t know. >> >>any ideas? ;) >> >> Martin >> >> > >Likely you have a typo or are passing something invalid. Using names >like my_xen_kernel and my_xen_initrd would not seem to be a good idea >also, but that likely has nothing to do with your problem. > >Did you look at the fine Gentoo wiki? > >Regards, >Ted > > >Yes I looked at the wiki, but there is nothing there in root on evms. And I don''t use xen_kernel and so on. title Xen 3.0.0 / Linux 2.6.12.5 kernel /xen.gz dom0_mem=98304 module /vmlinuz-2.6.12.5-xen0 root=/dev/ram0 real_root=/dev/evms/root init=/linuxrc udev doevms2 noreboot module /initramfs-2.6.12.5-xen0 I''ve checked the filenames over and over.. Somehow it dislikes my ramdisk ;) Martin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users