What is the latest xen kernel that could be used in a domU? I am currently using Ubuntu 8.04 with 2.6.24-16. Thanks Chris _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Wed, 2008-07-16 at 23:02 -0400, Christopher Isip wrote:> What is the latest xen kernel that could be used in a domU? I am > currently using Ubuntu 8.04 with 2.6.24-16.That kernel can be used in a dom-u , however your going to need an initrd since ext3 / ext2 are modular in that kernel. Any recent Linux kernel can be used as a dom-u kernel, this link should help you: http://wiki.xensource.com/xenwiki/Kernel.org_Linux_on_Xen Hope this helps. --Tim _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Christopher, If you need some extended capabilities, the mainline kernel''s Xen support won''t be much help. That includes pci passthrough support (don''t know when this''ll ever be part of vanilla), but as long as you find the necessary patches, any kernel should work. I''ve found Xen patches for kernel 2.6.25 in the debian linux-image source package for example (though I haven''t tried them yet, because it''s a whole lot of work to extract the ones that are necessary) and for my IPCop Experimental DomU I''m using the Xen and IO delay patches from Ubuntu''s linux-image-2.6.24-18-xen source package (this one still has some issues with pci_dma_xen-32.c and random crashes, but works in general) and I''m guessing there will be some patches for 2.6.26 in one distribution or another soon too. You''ll need a bit of knowledge about how to extract the necessary stuff from those, about patching and building the kernel and probably about fixing some stuff by hand too (the Ubuntu 2.6.24 patches have issues with building a DomU-only kernel for example). You could always extract a precompiled kernel from a binary package though, but that might lead to problems with the system later (if some patch is missing for example). Cheers, Paul. - -- Paul Schulze avlex@gmx.net Public Key: http://solaris-net.dyndns.org/keys/key_avlex.asc "Making mistakes is human, but to really fuck things up you need Computers" Am 17.07.2008 um 06:10 schrieb Tim Post:> On Wed, 2008-07-16 at 23:02 -0400, Christopher Isip wrote: >> What is the latest xen kernel that could be used in a domU? I am >> currently using Ubuntu 8.04 with 2.6.24-16. > > That kernel can be used in a dom-u , however your going to need an > initrd since ext3 / ext2 are modular in that kernel. > > Any recent Linux kernel can be used as a dom-u kernel, this link > should > help you: > > http://wiki.xensource.com/xenwiki/Kernel.org_Linux_on_Xen > > > Hope this helps. > > --Tim > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFIfxRPYDWOGtiChoARAuauAJ4w1NNS4CbB6yoWU//Rgxjvx50x+QCfeP1Y 5wpuIlw8MisNcfoLXffHzfE=nDc2 -----END PGP SIGNATURE----- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu, Jul 17, 2008 at 11:43:42AM +0200, Paul Schulze wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi Christopher, > > If you need some extended capabilities, the mainline kernel''s Xen > support won''t be much help. That includes pci passthrough support > (don''t know when this''ll ever be part of vanilla), but as long as you > find the necessary patches, any kernel should work. I''ve found Xen > patches for kernel 2.6.25 in the debian linux-image source package > for example (though I haven''t tried them yet, because it''s a whole > lot of work to extract the ones that are necessary) and for my IPCop > Experimental DomU I''m using the Xen and IO delay patches from > Ubuntu''s linux-image-2.6.24-18-xen source package (this one still has > some issues with pci_dma_xen-32.c and random crashes, but works in > general) and I''m guessing there will be some patches for 2.6.26 in > one distribution or another soon too. You''ll need a bit of knowledge > about how to extract the necessary stuff from those, about patching > and building the kernel and probably about fixing some stuff by hand > too (the Ubuntu 2.6.24 patches have issues with building a DomU-only > kernel for example). You could always extract a precompiled kernel > from a binary package though, but that might lead to problems with > the system later (if some patch is missing for example). >Ubuntu 8.04 LTS Linux 2.6.24 kernel contains "forward-port" of the xensource 2.6.18 xen patches, with full xen functionality. Debian 2.6.25 Linux kernel contains the "native" pv_ops based xen support, which is included in the upstream/vanilla kernel.org linux kernels. pv_ops based Linux xen kernel lacks many of the features from xensource xen kernels unfortunately.. at the moment. Linux 2.6.26 adds more features, and more are queue for inclusion in 2.6.27. The biggest (most important) missing feature from pv_ops kernels is dom0 support. More info about pv_ops xen kernels: http://wiki.xensource.com/xenwiki/XenParavirtOps -- Pasi> Cheers, > > > Paul. > > - -- > Paul Schulze > avlex@gmx.net > Public Key: http://solaris-net.dyndns.org/keys/key_avlex.asc > > "Making mistakes is human, > but to really fuck things up you need Computers" > > > Am 17.07.2008 um 06:10 schrieb Tim Post: > > >On Wed, 2008-07-16 at 23:02 -0400, Christopher Isip wrote: > >>What is the latest xen kernel that could be used in a domU? I am > >>currently using Ubuntu 8.04 with 2.6.24-16. > > > >That kernel can be used in a dom-u , however your going to need an > >initrd since ext3 / ext2 are modular in that kernel. > > > >Any recent Linux kernel can be used as a dom-u kernel, this link > >should > >help you: > > > >http://wiki.xensource.com/xenwiki/Kernel.org_Linux_on_Xen > > > > > >Hope this helps. > > > >--Tim > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu, Jul 17, 2008 at 6:07 AM, Pasi Kärkkäinen <pasik@iki.fi> wrote:> On Thu, Jul 17, 2008 at 11:43:42AM +0200, Paul Schulze wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Hi Christopher, > > > > If you need some extended capabilities, the mainline kernel''s Xen > > support won''t be much help. That includes pci passthrough support > > (don''t know when this''ll ever be part of vanilla), but as long as you > > find the necessary patches, any kernel should work. I''ve found Xen > > patches for kernel 2.6.25 in the debian linux-image source package > > for example (though I haven''t tried them yet, because it''s a whole > > lot of work to extract the ones that are necessary) and for my IPCop > > Experimental DomU I''m using the Xen and IO delay patches from > > Ubuntu''s linux-image-2.6.24-18-xen source package (this one still has > > some issues with pci_dma_xen-32.c and random crashes, but works in > > general) and I''m guessing there will be some patches for 2.6.26 in > > one distribution or another soon too. You''ll need a bit of knowledge > > about how to extract the necessary stuff from those, about patching > > and building the kernel and probably about fixing some stuff by hand > > too (the Ubuntu 2.6.24 patches have issues with building a DomU-only > > kernel for example). You could always extract a precompiled kernel > > from a binary package though, but that might lead to problems with > > the system later (if some patch is missing for example). > > > > Ubuntu 8.04 LTS Linux 2.6.24 kernel contains "forward-port" of the > xensource > 2.6.18 xen patches, with full xen functionality. > > Debian 2.6.25 Linux kernel contains the "native" pv_ops based xen support, > which is included in the upstream/vanilla kernel.org linux kernels. > > pv_ops based Linux xen kernel lacks many of the features from xensource > xen kernels unfortunately.. at the moment. Linux 2.6.26 adds more features, > and more are queue for inclusion in 2.6.27. The biggest (most important) > missing > feature from pv_ops kernels is dom0 support. > > More info about pv_ops xen kernels: > http://wiki.xensource.com/xenwiki/XenParavirtOps > > -- Pasi > > > Cheers, > > > > > > Paul. > > > > - -- > > Paul Schulze > > avlex@gmx.net > > Public Key: http://solaris-net.dyndns.org/keys/key_avlex.asc > > > > "Making mistakes is human, > > but to really fuck things up you need Computers" > > > > > > Am 17.07.2008 um 06:10 schrieb Tim Post: > > > > >On Wed, 2008-07-16 at 23:02 -0400, Christopher Isip wrote: > > >>What is the latest xen kernel that could be used in a domU? I am > > >>currently using Ubuntu 8.04 with 2.6.24-16. > > > > > >That kernel can be used in a dom-u , however your going to need an > > >initrd since ext3 / ext2 are modular in that kernel. > > > > > >Any recent Linux kernel can be used as a dom-u kernel, this link > > >should > > >help you: > > > > > >http://wiki.xensource.com/xenwiki/Kernel.org_Linux_on_Xen > > > > > > > > >Hope this helps. > > > > > >--Tim > > > > > > > > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >Thanks for the replies. I am interested mainly in forward ports as the paravirt-ops in mainline dont have pciback capability. So, 2.6.25 will be paravirt-ops only? To create a xenlinux kernel, I must manually patch 2.6.25 with the xen patches in debian linux source? Thanks Chris _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On my domU I use 2.6.25.7 +initrd compiled from the source at kernel.org, no patch was required. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu, Jul 17, 2008 at 5:19 PM, Thomas <iamkenzo@gmail.com> wrote:> On my domU I use 2.6.25.7 +initrd compiled from the source at > kernel.org, no patch was required. >Does it have pciback functionality? Thanks Chris _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 17.07.2008 um 23:15 schrieb Christopher Isip:> > > On Thu, Jul 17, 2008 at 6:07 AM, Pasi Kärkkäinen <pasik@iki.fi> wrote: > On Thu, Jul 17, 2008 at 11:43:42AM +0200, Paul Schulze wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Hi Christopher, > > > > If you need some extended capabilities, the mainline kernel''s Xen > > support won''t be much help. That includes pci passthrough support > > (don''t know when this''ll ever be part of vanilla), but as long as > you > > find the necessary patches, any kernel should work. I''ve found Xen > > patches for kernel 2.6.25 in the debian linux-image source package > > for example (though I haven''t tried them yet, because it''s a whole > > lot of work to extract the ones that are necessary) and for my IPCop > > Experimental DomU I''m using the Xen and IO delay patches from > > Ubuntu''s linux-image-2.6.24-18-xen source package (this one still > has > > some issues with pci_dma_xen-32.c and random crashes, but works in > > general) and I''m guessing there will be some patches for 2.6.26 in > > one distribution or another soon too. You''ll need a bit of knowledge > > about how to extract the necessary stuff from those, about patching > > and building the kernel and probably about fixing some stuff by hand > > too (the Ubuntu 2.6.24 patches have issues with building a DomU-only > > kernel for example). You could always extract a precompiled kernel > > from a binary package though, but that might lead to problems with > > the system later (if some patch is missing for example). > > > > Ubuntu 8.04 LTS Linux 2.6.24 kernel contains "forward-port" of the > xensource > 2.6.18 xen patches, with full xen functionality. > > Debian 2.6.25 Linux kernel contains the "native" pv_ops based xen > support, > which is included in the upstream/vanilla kernel.org linux kernels. > > pv_ops based Linux xen kernel lacks many of the features from > xensource > xen kernels unfortunately.. at the moment. Linux 2.6.26 adds more > features, > and more are queue for inclusion in 2.6.27. The biggest (most > important) missing > feature from pv_ops kernels is dom0 support. > > More info about pv_ops xen kernels: > http://wiki.xensource.com/xenwiki/XenParavirtOps > > -- Pasi > > > Cheers, > > > > > > Paul. > > > > - -- > > Paul Schulze > > avlex@gmx.net > > Public Key: http://solaris-net.dyndns.org/keys/key_avlex.asc > > > > "Making mistakes is human, > > but to really fuck things up you need Computers" > > > > > > Am 17.07.2008 um 06:10 schrieb Tim Post: > > > > >On Wed, 2008-07-16 at 23:02 -0400, Christopher Isip wrote: > > >>What is the latest xen kernel that could be used in a domU? I am > > >>currently using Ubuntu 8.04 with 2.6.24-16. > > > > > >That kernel can be used in a dom-u , however your going to need an > > >initrd since ext3 / ext2 are modular in that kernel. > > > > > >Any recent Linux kernel can be used as a dom-u kernel, this link > > >should > > >help you: > > > > > >http://wiki.xensource.com/xenwiki/Kernel.org_Linux_on_Xen > > > > > > > > >Hope this helps. > > > > > >--Tim > > > > > > > > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > > > Thanks for the replies. I am interested mainly in forward ports as > the paravirt-ops in mainline dont have pciback capability. So, > 2.6.25 will be paravirt-ops only? To create a xenlinux kernel, I > must manually patch 2.6.25 with the xen patches in debian linux > source? > > Thanks > Chris >Hi Chris, You can try, but it isn''t all that easy to isolate the necessary patches from the Debian source and I am not quiet sure if the patches in Debian are even forward-ported. As I said, I haven''t tried yet (I probably will in the next week, because my IPCop DomU is acting up), but I think I saw something that looked like Xenbus and PCIFront last time I grepped through the patches. You better check before you put some serious work in there. Cheers, Paul. - -- Paul Schulze avlex@gmx.net Public Key: http://solaris-net.dyndns.org/keys/key_avlex.asc "Making mistakes is human, but to really fuck things up you need Computers" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFIf8LGYDWOGtiChoARAlzfAJ0RNC8velYjPlWaiGxgMkrRPvh72QCfRo2I JIclMDtmCQ0t1xAItnEsfwk=t9tM -----END PGP SIGNATURE----- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
[snip] On Fri, 2008-07-18 at 00:08 +0200, Paul Schulze wrote:> Hi Chris, > > You can try, but it isn''t all that easy to isolate the necessary > patches from the Debian source and I am not quiet sure if the patches > in Debian are even forward-ported. As I said, I haven''t tried yet (I > probably will in the next week, because my IPCop DomU is acting up), > but I think I saw something that looked like Xenbus and PCIFront last > time I grepped through the patches. You better check before you put > some serious work in there.What he might have to do is check out a specific kernel revision by its tag from kernel.ubuntu.com , then install the debhelper packages to use the Debian build system For instance , git-clone [url] 2.6.25.x (the version being a tag) debian/rules custom-prepare-xen cd debian/build The kernel he wants will be in custom-source-xen which can be copied anywhere else, or he could build it in the sparse tree custom-buld-xen for testing. That may be the best way to go, since it would be relatively easy to re-generate .deb packages for that kernel so that it can be re-used. I''m pretty sure 2.6.25.x (or later, up to .26-rc series) can be found in the intrepid git tree. The people on the Ubuntu kernel mailing list are very helpful and tolerant, I''m sure they could give better help. This will get him a newer kernel that can be used for dom-0 and dom-u, with the device pass through that he needs. Regards, --Tim _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Chris, I wasn''t planning on releasing it separately, since it is might cause problems along the way (use at your own risk), but here is a patch I created for IPCop Experimental: http://www.solaris-net.org/ipcop-xen/ 31-ipcop-xen-patches.patch . It (hopefully) contains all the necessary patches for a vanilla kernel 2.6.24.7. They were taken from the Ubuntu linux-image-2.6.24-18-xen source package and altered to prevent rejects and stuff. I mostly got rid of incompatible .orig and .rej files that already exist after applying the 2.6.24.7 patch, not the best way to go, but it shouldn''t create a problem. It also contains a patch to fix a build error, when building a DomU-only kernel. However, the resulting kernel might not be stable. I''ve had random crashes of my IPCop DomU which might be the result of me ripping these out. I also noticed, that a resulting DomU-only kernel locks up when started as the first VM after booting the Dom0 (BUG() in pci_dma_xen-32.c i think) and a few other minor problems and kernel BUG()s that might or might not cause the crashes. I''m currently trying to debug this, however, it could also be a problem specific to my NICs and the sundance driver (for my D-Link DFE-580TX) not appreciating the PCI passthrough, so if someone tests these, please let me know if you experience the same problems. To get the patches, you will need to do the following: $ wget http://www.solaris-net.org/ipcop-xen/31-ipcop-xen- patches.patch -O - | patch -p3 Now you need a vanilla linux-2.6.24.7 tree, either from the full package or linux-2.6.24 and patch-2.6.24.7. I have only tested the later, since I am building it in the IPCop build environment together with the other stuff. Here is the order in which the patches should be applied: 0) patch-2.6.24.7 (if necessary) 1) linux-2.6.24-io-delay.patch 2) linux-2.6.24.7-xen-base.patch 3) linux-2.6.24-xen-dev-mem-fix.patch 4) linux-2.6.24-xen-io-delay-fix.patch 5) linux-2.6.24-xen-net-fix.patch 6) linux-2.6.24-xen-domu-build-fix.patch I trust you know what to do from here. Oh and I checked the Debian patches earlier. Tim was right, the Debian kernel 2.6.25 uses PVOPS instead of a forward-port of the original kernel 2.6.18 Xen patches. Too bad, guess I will have to look for another set of patches against a more recent kernel too, if I can''t fix this one. As he said, the git archive might be the way to go there, I''ll let you know if I find something there. Cheers, Paul. - -- Paul Schulze avlex@gmx.net Public Key: http://solaris-net.dyndns.org/keys/key_avlex.asc "Making mistakes is human, but to really fuck things up you need Computers" Am 18.07.2008 um 06:08 schrieb Tim Post:> [snip] > > On Fri, 2008-07-18 at 00:08 +0200, Paul Schulze wrote: >> Hi Chris, >> >> You can try, but it isn''t all that easy to isolate the necessary >> patches from the Debian source and I am not quiet sure if the patches >> in Debian are even forward-ported. As I said, I haven''t tried yet (I >> probably will in the next week, because my IPCop DomU is acting up), >> but I think I saw something that looked like Xenbus and PCIFront last >> time I grepped through the patches. You better check before you put >> some serious work in there. > > What he might have to do is check out a specific kernel revision by > its > tag from kernel.ubuntu.com , then install the debhelper packages to > use > the Debian build system > > For instance , git-clone [url] 2.6.25.x (the version being a tag) > debian/rules custom-prepare-xen > cd debian/build > > The kernel he wants will be in custom-source-xen which can be copied > anywhere else, or he could build it in the sparse tree custom-buld-xen > for testing. > > That may be the best way to go, since it would be relatively easy to > re-generate .deb packages for that kernel so that it can be re-used. > > I''m pretty sure 2.6.25.x (or later, up to .26-rc series) can be > found in > the intrepid git tree. > > The people on the Ubuntu kernel mailing list are very helpful and > tolerant, I''m sure they could give better help. > > This will get him a newer kernel that can be used for dom-0 and dom-u, > with the device pass through that he needs. > > Regards, > --Tim >-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFIgJckYDWOGtiChoARAk65AJ4iS8raTlI5f2ahFSmqMUj5WqQxtQCdE8SN I3pEuCKOdRybDN6WwM9kVUU=S1Dm -----END PGP SIGNATURE----- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users