Hi there. For First i just wanted to say hello to all mega minds XEN experts:). I have a little problem with XEN kernel. I have cloud computing and in this architecture we use XEN wirtualization.I wanted to have a custom debian based kernel witch fallowing modules tun imq ipv6 qos ipip iptables (full). Its there a way to download a Kernel patched XEN on debian and then make the coustom one? Or i have to make a normal one and then patch it? Sorry for maybe noob question but i know that here are experts who could help me. Thanks in advance. -- Pozdrawiam Karol Chmurzyński _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Karol, The easiest way for beginners to get Xen working and running on a Dom0 kernel is to use one that is included in Debian and install using aptitude. For Debian Lenny, if I recall correctly, the package you need to install for the kernel is called: xen-linux-system-2.6.26-2-xen-amd64 If you''re using i386 (not 64-bit) hardware for some strange reason then you will need to replace the ''amd64'' on the end with ''686''. If you need to install Xen, kernel and everything else ready to rock on Debian Lenny then try this: apt-get install xen xen-utils xen-tools xen-linux-system-2.6.26.2-xen-amd64 You can always find a great deal of information about running Xen on Debian over at the Debian wiki too. For more info check out http://wiki.debian.org/Xen Enjoy playing with Xen! Iain On 25 May 2011, at 15:54, Karol Chmurzyński wrote:> Hi there. > > For First i just wanted to say hello to all mega minds XEN experts:). > I have a little problem with XEN kernel. I have cloud computing and in this architecture we use XEN wirtualization.I wanted to have a custom debian based kernel witch fallowing modules tun imq ipv6 qos ipip iptables (full). Its there a way to download a Kernel patched XEN on debian and then make the coustom one? Or i have to make a normal one and then patch it? Sorry for maybe noob question but i know that here are experts who could help me. Thanks in advance. > > -- > Pozdrawiam Karol Chmurzyński > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2011/5/25 Karol Chmurzyński <chmuri@gmail.com>:> Hi there. > > For First i just wanted to say hello to all mega minds XEN experts:). > I have a little problem with XEN kernel. I have cloud computing and in this > architecture we use XEN wirtualization.Spending a little time for a simple spell-check would help others understand your question better.> I wanted to have a custom debian > based kernel witch fallowing modules tun imq ipv6 qos ipip iptablesI assume this is for dom0 kernel?> (full). Its there a way to download a Kernel patched XEN on debian and then > make the coustom one?You should really ask Debian list/forum for this. The general method to download source in Debian/Ubuntu would be "apt-get source ..." Or go to debian''s package page (something like http://packages.debian.org/squeeze/linux-image-2.6.32-5-xen-amd64) and download the sources from there.> Or i have to make a normal one and then patch it?Possible, but often harder. You''ll need to start with dom0-enabled kernel, then add whatever Debian-specific patches you might need, then add whatever extra patch you may need. Each patch might introduce a conflict, which might be hard for a noob to fix. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Install the kernel sources and debian patches with apt-get or aptitude and apply the debian patches and the XEN feature patch. And all the patches you need. Commands to configure and compile the kernel: cd /usr/src tar xvjf linux-source-2.6.32.tar.bz2 cd linux-source-2.6.32 ../kernel-patches/all/2.6.32/apply/debian -f xen -a x86_64 patch -p1 < /root/your-special.patch cp /boot/config-2.6.32-5-xen-amd64 .config make-kpkg --config menuconfig make-kpkg --revision 1.0 --append_to_version -my-own-xen-amd64 --bzImage --arch-in-name --initrd kernel_image -j 4 After compilation is complete, install the .deb with dpkg -i. HTH Christian Am 25.05.2011 um 16:54 schrieb Karol Chmurzyński:> Hi there. > > For First i just wanted to say hello to all mega minds XEN experts:). > I have a little problem with XEN kernel. I have cloud computing and in this architecture we use XEN wirtualization.I wanted to have a custom debian based kernel witch fallowing modules tun imq ipv6 qos ipip iptables (full). Its there a way to download a Kernel patched XEN on debian and then make the coustom one? Or i have to make a normal one and then patch it? Sorry for maybe noob question but i know that here are experts who could help me. Thanks in advance. > > -- > Pozdrawiam Karol Chmurzyński > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2011/5/25 Christian Motschke <christian@motschke.de>> Install the kernel sources and debian patches with apt-get or aptitude and > apply the debian patches and the XEN feature patch. And all the patches you > need. > Commands to configure and compile the kernel: > > cd /usr/src > tar xvjf linux-source-2.6.32.tar.bz2 > > cd linux-source-2.6.32 > ../kernel-patches/all/2.6.32/apply/debian -f xen -a x86_64 > patch -p1 < /root/your-special.patch > cp /boot/config-2.6.32-5-xen-amd64 .config > make-kpkg --config menuconfig > make-kpkg --revision 1.0 --append_to_version -my-own-xen-amd64 --bzImage > --arch-in-name --initrd kernel_image -j 4 > > After compilation is complete, install the .deb with dpkg -i. > > HTH > Christian > > Am 25.05.2011 um 16:54 schrieb Karol Chmurzyński: > > Hi there. > > For First i just wanted to say hello to all mega minds XEN experts:). > I have a little problem with XEN kernel. I have cloud computing and in this > architecture we use XEN wirtualization.I wanted to have a custom debian > based kernel witch fallowing modules tun imq ipv6 qos ipip iptables > (full). Its there a way to download a Kernel patched XEN on debian and then > make the coustom one? Or i have to make a normal one and then patch it? > Sorry for maybe noob question but i know that here are experts who could > help me. Thanks in advance. > > -- > Pozdrawiam Karol Chmurzyński > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > > > Thank all the kind users for help but hmm its could be difficult to engage > the whole operation. It''s there a way to patch a kernel in deb package? The > best thing its to get current version form my distribution and customize it, > but how the Christian sa''ys apply the "debian patches" but i don''t see them > in repository. On official Xen site i saw the third way to customize kernel > by editing the .config file and add some extra options. > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >-- Pozdrawiam Karol Chmurzyński _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2011/5/26 Karol Chmurzyński <chmuri@gmail.com>:>> Thank all the kind users for help but hmm its could be difficult to >> engage the whole operation.Yes, it is. At least for someone who has no experience in compilng their own kernel before.>> It''s there a way to patch a kernel in deb >> package?In SOME cases you can create a module by compiling it out of tree, so you''ll get an additional module that can be used with existing kernel. However not all modules can be compiled this way.>> The best thing its to get current version form my distribution and >> customize it, but how the Christian sa''ys apply the "debian patches" but i >> don''t see them in repository. On official Xen site i saw the third way to >> customize kernel by editing the .config file and add some extra options.At this point you need to do some "homework" (1) Are you capable of building a new kernel or kernel module, or at least willing to learn? (2) Are you familiar with the way Debian packaging works, or at least willing to learn? (3) Are you familiar with the way patches work, or at least willing to learn? Basically the different infos that you see is imply the result of looking at the problem from a different perspective. Official Xen site basically provides a kernel version that is compatible for dom0. It does not really care about distro-specific patch (like apparmor), it''s assumed that either user or distro maintainer will have the capability to add it by themselves. Debian has the source available (see my previous post), but without proper knowledge on how debian packaging works you won''t know what to do with them. Which, again, is why you need to do some "homework". -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
The Debian patches are in the package linux-patch-debian-2.6.32. Other Kernel patches are also available via package management (aptitude). To compile the kernel the way I suggested, you need also kernel-patch-scripts and dh-kpatches, kernel-package and of cause gcc. But then, I think you can follow my steps to compile a kernel with your own patches. I did this for example, for a kernel with SCST patches. Christian Am 26.05.2011 um 08:40 schrieb Karol Chmurzyński:> > > 2011/5/25 Christian Motschke <christian@motschke.de> > Install the kernel sources and debian patches with apt-get or aptitude and apply the debian patches and the XEN feature patch. And all the patches you need. > Commands to configure and compile the kernel: > > cd /usr/src > tar xvjf linux-source-2.6.32.tar.bz2 > > cd linux-source-2.6.32 > ../kernel-patches/all/2.6.32/apply/debian -f xen -a x86_64 > patch -p1 < /root/your-special.patch > cp /boot/config-2.6.32-5-xen-amd64 .config > make-kpkg --config menuconfig > make-kpkg --revision 1.0 --append_to_version -my-own-xen-amd64 --bzImage --arch-in-name --initrd kernel_image -j 4 > > After compilation is complete, install the .deb with dpkg -i. > > HTH > Christian > > Am 25.05.2011 um 16:54 schrieb Karol Chmurzyński: > >> Hi there. >> >> For First i just wanted to say hello to all mega minds XEN experts:). >> I have a little problem with XEN kernel. I have cloud computing and in this architecture we use XEN wirtualization.I wanted to have a custom debian based kernel witch fallowing modules tun imq ipv6 qos ipip iptables (full). Its there a way to download a Kernel patched XEN on debian and then make the coustom one? Or i have to make a normal one and then patch it? Sorry for maybe noob question but i know that here are experts who could help me. Thanks in advance. >> >> -- >> Pozdrawiam Karol Chmurzyński >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users > > Thank all the kind users for help but hmm its could be difficult to engage the whole operation. It''s there a way to patch a kernel in deb package? The best thing its to get current version form my distribution and customize it, but how the Christian sa''ys apply the "debian patches" but i don''t see them in repository. On official Xen site i saw the third way to customize kernel by editing the .config file and add some extra options. > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > > > > -- > Pozdrawiam Karol Chmurzyński > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users