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

The Linux README states that:

Linux has also been ported to itself. You can now run the kernel as a userspace application - this is called UserMode Linux (UML).

Why would someone want to do this?

share|improve this question
Please consider marking an answer as accepted if it helped you. – Léo Lam May 13 '15 at 16:49
up vote 13 down vote accepted

UML is very fast for development and much easier to debug. If for example you use KVM then you need to setup an environment that boots from network or be copying new kernels in the VM. With UML you just run the new kernel.

At one point I was testing some networking code on the kernel. This means that you get very very frequent kernel panics or other issues. Debugging this with UML is very easy.

Additionally, UML runs in places where there's no hardware assisted virtualization, so it was used even more before KVM became commonality.

share|improve this answer
IIRC linode.com used to use UML for virtualisation. – Paul Cager May 4 '14 at 19:51
@PaulCager Yes, they did, from 2003 until switching to Xen in 2008. – Matt Nordhoff May 4 '14 at 22:14

Their web page has several reasons

Here are some of the things that UML is used for:

  • Hosting of virtual servers
  • Kernel development
  • Experimenting with new kernels and distributions
  • Education
  • Sandbox
share|improve this answer

UML was also the basis of the original version of the FAUmachine, which is a virtual machine that allows you to inject "hardware" faults into a running kernel.

share|improve this answer
Sounds interesting, but the url you provided is a broken link. – brianbaligad May 28 '14 at 12:43
@briankb: Fixed, thanks. – Jörg W Mittag May 28 '14 at 15:32

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.