I have a few questions about kernels in Xen. 1. Is it possible to use different kernel versions for dom0 and domU? My needs are very specific: the host needs to have the xen dom0 2.6.18 kernel and the guests need the 2.6.23 kernel. 2. Does anyone know how to create a kernel image from the 2.6.23.9 kernel that will successfully boot a domU guest? The problem I am having is that the compile creates a bzImage, but that is unusable as Xen needs a zImage kernel. Is there any way to get my kernel to work as a Xen guest? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Isaac Wagner schrieb:> 2. Does anyone know how to create a kernel image from the 2.6.23.9 > kernel that will successfully boot a domU guest? The problem I am > having is that the compile creates a bzImage, but that is unusable as > Xen needs a zImage kernel. Is there any way to get my kernel to work > as a Xen guest?Hi, since 2.6.23 xen support for dom0 is available without patches in the main kernel from kernel.org. To dont mess around with configurations just copy your existing .config from your 2.6.23.9 kernel probably stored in /boot/config-2.6.23.9 or available through /proc/config.gz to the new kernel source directory and do a make menuconfig. most settings should be supplied without problems. Regards -- stefan.bauer@cubewerk.de Cubewerk Tel +49 8621 996 02 37 IT-Beratung + Planung Tel +49 179 119 47 67 Verkauf von Hard und Software Fax +49 1212 511057903 Herzog-Otto-Straße 32 http://www.cubewerk.de 83308 Trostberg _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
As specified in the kernel.org[1] README file, make zImage is also a target for the compiler: - do a "make zImage" to create a compressed kernel image. If you want to make a bootdisk (without root filesystem or lilo), insert a floppy in your A: drive, and do a "make zdisk". It is also possible to do "make zlilo" if you have lilo installed to suit the kernel makefiles, but you may want to check your particular lilo setup first. [1] http://www.kernel.org/pub/linux/kernel/README -- stefan.bauer@cubewerk.de Cubewerk Tel +49 8621 996 02 37 IT-Beratung + Planung Tel +49 179 119 47 67 Verkauf von Hard und Software Fax +49 1212 511057903 Herzog-Otto-Straße 32 http://www.cubewerk.de 83308 Trostberg _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu, Sep 18, 2008 at 06:05:08PM +0200, Stefan Bauer wrote:> Isaac Wagner schrieb: > > 2. Does anyone know how to create a kernel image from the 2.6.23.9 > > kernel that will successfully boot a domU guest? The problem I am > > having is that the compile creates a bzImage, but that is unusable as > > Xen needs a zImage kernel. Is there any way to get my kernel to work > > as a Xen guest? > > Hi, > > since 2.6.23 xen support for dom0 is available without patches in the > main kernel from kernel.org.No it''s not. vanilla kernels from kernel.org/linus do NOT support Xen dom0 (yet). They only have Xen domU (pv_ops) support. See: http://wiki.xensource.com/xenwiki/XenParavirtOps -- Pasi _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pasi Kärkkäinen schrieb:>> since 2.6.23 xen support for dom0 is available without patches in the >> main kernel from kernel.org. > > No it''s not. > vanilla kernels from kernel.org/linus do NOT support Xen dom0 (yet). >Well i''m aware of that. that was just a typo. sorry. i was talking about domU. regards stefan _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
* Isaac Wagner <isaac@wagnerfam.com> [18.09.2008 20:12]:> Yes, I''ve tried that. I have pared down my kernel configuration to > the bare minimum I need and I still can''t get the size below 512k. > zImage''s *must* be 512k or smaller, hence the question for the group.Sorry, but i cant confirm that. In my xen 3.3 setup i configured bzImage files as domU-Kernel without problems on 32bit and 64bit guests. office:/home/sb/linuxsize# file boot/vmlinuz-2.6.18-5-xen-686 boot/vmlinuz-2.6.18-5-xen-686: gzip compressed data, from Unix, last modified: Wed Dec 19 02:15:39 2007, max compression The following file is around 1.3mb big. Actually i dont see what cause that kind of limitation in your case. Regards -- Stefan _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu, 2008-09-18 at 11:51 -0400, Isaac Wagner wrote:> I have a few questions about kernels in Xen. > > 1. Is it possible to use different kernel versions for dom0 and domU? > My needs are very specific: the host needs to have the xen dom0 2.6.18 > kernel and the guests need the 2.6.23 kernel. > > 2. Does anyone know how to create a kernel image from the 2.6.23.9 > kernel that will successfully boot a domU guest? The problem I am > having is that the compile creates a bzImage, but that is unusable as > Xen needs a zImage kernel. Is there any way to get my kernel to work > as a Xen guest?This should help you: http://wiki.xensource.com/xenwiki/Kernel.org_Linux_on_Xen You can use any 2.6.23+ kernel.org kernel as a dom-u kernel. I highly recommend making ext3 (or whatever file system your using) static in the dom-u kernel so that you can avoid the hassle of an initrd. Matter of preference, I guess. Mine are configured with just the virtio drivers, a few file systems, and full iptables support. Cheers, --Tim _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users