Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

So I have a KVM machine, where I run an Ubuntu 12.04 (server edition).
I want to compile a minimalistic kernel for the KVM guest, but I only found the howto for hosts, and guests with paravirtualization.

I want to compile a kernel for a guest. Nothing more. With only the things it needs.

share|improve this question
First - why do you not want to use the PV drivers? That should make things easier. Second: Why do you want to do this? Are you simulating an ebedded system? – Nils Jul 20 '12 at 20:06
I don't need them. Minimalistic: Throw out everything you don't need. It's not a simulation, a real KVM server. – Shiki Jul 21 '12 at 19:29
up vote 3 down vote accepted

If you don't care about paravirtualization, then compiling a minimalistic kernel for a KVM guest is the same as compiling a minimalistic kernel for hardware. There is lots of documentation available on the latter topic:


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.