Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

I'm trying to run Gentoo paravirtualized under XenServer 5.6.

Now, Gentoo is perfectly capable of booting without initrd, so my question is:

Do I need an initrd for pygrub to work?

Earlier attempts without initrd had resulted in errors, which might either be caused by mistakes in .config or the inexistence of initrd. I'm trying to figure out exactly what happened.

share|improve this question
up vote 2 down vote accepted

After a lot of experimentation, I finally found the answer:

Yes, pygrub needs an initrd/initramfs.

So, I do it this way:

  • Build the kernel the manual way make menuconfig && make && make modules_install

  • Copy the resulting bzImage to /boot

  • Create the initrd using genkernel --oldconfig ramdisk

  • Feed the path to the kernel and the initrd to pygrub from XenServer's console

share|improve this answer

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.