My VPS host uses Xen, and instead of using its custom kernels I could use my own (with pv-grub), the sample kernel of which I had installed to test this was is the following, I am running Debian 6 (Squeeze): http://packages.debian.org/squeeze/linux-image-2.6.32-5-xen-amd64

Would I be right to assume, that if I download the sources for 2.6.32-5 I can set up the appropriate Xen options to build a Xen compatible kernel just like the binary one listed?

Would I be able to apply say kernel patches (such as grsecurity as I've wanted), and apply the Xen configuration, to use for my VPS once compiled just like that?

Thank you, Ken.

  • Just out of curiosity: what VPS host are you using? – Michael Trausch Jul 25 '11 at 20:15
  • @Michael, Linode with the pv_grub kernel option for my own guest kernel. – Alexander Jul 29 '11 at 6:19

Yes, you can. You have the option of building a Debian kernel from the same sources, or building a kernel from vanilla sources. Mainline has support for Xen4 built into recent versions and no longer requires patches for Xen to work; the options for building a DomU are here.

Patching the Debian sources should be possible using the Debian make-kpkg command and friends.

  • Full support for Xen dom0 and domU was merged into Linux Kernel 3.0 which has not yet been released. – Ophidian Jul 13 '11 at 14:16
  • @Ophidian I believed domU works with current vanilla sources, and the OP doesn't need dom0. I am a little fuzzy, since I haven't worked with this for about 6 months and my kernel compilation was earlier than that. do you have sources? – Michael Lowman Jul 13 '11 at 14:37
  • you are correct, I need to read closer. Full pv_ops domU support has been in for quite some time. The dom0 support announcement is here: blog.xen.org/index.php/2011/06/02/… – Ophidian Jul 13 '11 at 19:47
  • @Michael, I apologize for the long delay however this works fine. It turns out the standard kernel will work (, just need to grep and enable all the CONFIG_XEN_* entries that are appropriate. – Alexander Jul 29 '11 at 6:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.