Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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):

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.

share|improve this question
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
up vote 2 down vote accepted

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.

share|improve this answer
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:… – 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 posting your answer, you agree to the privacy policy and terms of service.

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