Morten W. Petersen
2006-Jul-27 02:04 UTC
[Xen-users] Creating a custom kernel configuration?
Hi, I''m trying to build a Xen system using the latest xen-3.0-testing package, and to be able to boot the system some support for RAID devices and special network cards has to be configured. The process I''ve used earlier is "make world; make install", however, that produces a kernel that exits with a panic as it cant find the root device. I''ve also tried modifying the linux-defconfig_xen_x86_32 file in buildconfigs, but when I do that the following message appears under "make world": if [ -r System.map -a -x /sbin/depmod ]; then /sbin/depmod -ae -F System.map -b /root/packages/files/xen-3.0-testing/dist/install -r 2.6.16.13-xen; fi make[4]: Leaving directory `/root/packages/files/xen-3.0-testing/linux-2.6.16.13-xen'' make -C linux-2.6.16.13-xen ARCH=i386 INSTALL_PATH=/root/packages/files/xen-3.0-testing/dist/install vmlinuz make[4]: Entering directory `/root/packages/files/xen-3.0-testing/linux-2.6.16.13-xen'' make[4]: *** No rule to make target `vmlinuz''. Stop. make[4]: Leaving directory `/root/packages/files/xen-3.0-testing/linux-2.6.16.13-xen'' make[3]: *** [build] Error 2 make[3]: Leaving directory `/root/packages/files/xen-3.0-testing'' make[2]: *** [linux-2.6-xen-install] Error 2 make[2]: Leaving directory `/root/packages/files/xen-3.0-testing'' make[1]: *** [install-kernels] Error 1 make[1]: Leaving directory `/root/packages/files/xen-3.0-testing'' make: *** [world] Error 2 Anyone know what I can do to get the kernels configured? Thanks, Morten _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu, Jul 27, 2006 at 04:04:02AM +0200, Morten W. Petersen wrote:> Hi, > > I''m trying to build a Xen system using the latest xen-3.0-testing > package, and to be able to boot the system some support for RAID devices > and special network cards has to be configured. > > The process I''ve used earlier is "make world; make install", however, > that produces a kernel that exits with a panic as it cant find the root > device.You''re probably missing the initrd required to mount the root filesystem. For example I have the following in my menu.lst file: --- title Xen 3.0.2 / XenLinux 2.6.16 root (hd0,0) kernel /xen.gz dom0_mem=131072 com1=9600,8n1 module /vmlinuz-2.6.16-xen root=/dev/hda3 ro console=ttyS0 module /initrd.img-2.6.16-xen --- The correct way to make the initrd depends on your distributions but it typically looks some thing like: # mkinitrd -o /boot/initrd.img-2.6.16-xen 2.6.16-xen Yours Tony linux.conf.au http://linux.conf.au/ || http://lca2007.linux.org.au/ Jan 15-20 2007 The Australian Linux Technical Conference! _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Morten W. Petersen
2006-Jul-27 13:23 UTC
Re: [Xen-users] Creating a custom kernel configuration?
Hi Tony,> You''re probably missing the initrd required to mount the root > filesystem. For example I have the following in my menu.lst file: > --- > title Xen 3.0.2 / XenLinux 2.6.16 > root (hd0,0) > kernel /xen.gz dom0_mem=131072 com1=9600,8n1 > module /vmlinuz-2.6.16-xen root=/dev/hda3 ro console=ttyS0 > module /initrd.img-2.6.16-xen > --- > > The correct way to make the initrd depends on your distributions but it > typically looks some thing like: > # mkinitrd -o /boot/initrd.img-2.6.16-xen 2.6.16-xenOK, I''ve setup the following grub configuration title Debian GNU/Linux, kernel 2.6.16-xen root (hd0,0) kernel /boot/xen-3.gz module /boot/vmlinuz-2.6.16-xen root=/dev/sda1 ro console=ttyS0 module /boot/initrd.img-2.6.16-xen savedefault boot where the kernel is created directly from ''make world; make install'' and the initrd image as you describe above. However, I get an error message (screendump attached). Got any ideas of what''s going on there? It doesn''t know the filesystem type devfs.. -Morten _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Stefano Cislaghi
2006-Jul-27 13:38 UTC
Re: [Xen-users] Creating a custom kernel configuration?
2006/7/27, Morten W. Petersen <morten@nidelven-it.no>:> Hi Tony, >The same problem for me with Debian. In my case I see during boot that megaraid module for RAID device is not loaded. Devfs is powered from Kernel Automounter daemon... A way to solve? Ste _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Morten W. Petersen
2006-Jul-27 15:39 UTC
Re: [Xen-users] Creating a custom kernel configuration?
Stefano Cislaghi wrote:> 2006/7/27, Morten W. Petersen <morten@nidelven-it.no>: >> Hi Tony, >> > > The same problem for me with Debian. In my case I see during boot that > megaraid module for RAID device is not loaded. Devfs is powered from > Kernel Automounter daemon... > > A way to solve?I managed to get a server running by using yaird instead of mkinitrd for the ramdisk image and specifying *MEGARAID*=y in the buildconfigs/linux-defconfig_xen_x86_32 file. -Morten _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users