How awesome is User Mode Linux!!?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

How awesome is User Mode Linux!!?

Post by Chris Corbyn »

Just compiled and ran this baby ( 2.6.16.18 ) on my poor-man's intel celeron laptop.

I was expecting performance to be a bit slack on this hardware when I load up a Virtual Environment.... it's running almost natively. Been using a VDS for a while now but never actually bothered to see how it all works from the UML side of it - pretty neat :) Oh the things that excite me :?
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

What is UML? Is it something like jails in FreeBSD?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Weirdan wrote:What is UML? Is it something like jails in FreeBSD?
UML can do Jailing/sandboxing yes.

UML is a version of the Linux kernel which is modified to run as a set of proccesses inside linux itself, rather than by itself. It means that you can install linux inside itself and play around with things - Think Virtual Machine, but nothing needs to be emulated.

Very useful for development I would guess :)
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

Very useful for development I would guess Smile
Seems it is :)
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

It used to be the case that you needed to download a kernel (normal one) then apply the UML patches to it.

Kernel versions newer than 2.6.9 now actually have the UML architecture built-in.

You just do `make ARCH=um menuconfig' then choose the host processor type and compile the kernel. The result is a binary (~6MB) which you can execute to "boot" a linux installation.
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Post by Roja »

Weirdan wrote:What is UML? Is it something like jails in FreeBSD?
Its a little different. UML is higher-level (its actually kernel level, although not ring-0). Jails on the other hand are below-kernel level sandboxing.

Imagine that jails are closely similar to rooms in a house. If a room floods, the house will be affected. UML is more like multiple houses in a neighborhood - if one floods, it might not have an impact on the other houses.

Of course, neither is a sure thing, and both aim for the same goal - segregation of information to reduce impact beyond its scope.

Also complicating the issue is that Linux also has chroots, although nowhere near as secure as BSD's jails.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

Ahha, thanks for explanation.
Post Reply