FreeBSD jail vs. User Mode Linux and Linux-vserver
Seth Gordon
sethg at ropine.com
Mon Dec 8 15:33:08 EST 2003
Once the post-Christmas inventory clearance season is underway, I am
planning to order myself a new server. One thing I'd like to do with
this machine is partition it into serveral virtual servers, so that even
if, say, someone exploits a bug in a script running on my Web site, they
won't be able to trash my email.
FreeBSD has a "jail" command which functions like "chroot", but is more
restrictive, so that even if someone becomes root in the jail, they
can't access or modify anything outside the jail (unless they find a
security hole in the OS kernel itself, of course). There's a
"Linux-vserver" project which aims to provide similar features for
Linux. Also, there's "User Mode Linux", which can encapsulate a whole
instance of Linux as a process running as a normal user inside another
Linux machine.
Based on what I've read, I am leaning toward the FreeBSD version (and
wishing that OpenBSD had the same thing), because Linux-vserver doesn't
look like a very mature project, and I'm afraid that UML would have too
much performance overhead. On the other hand, if I ever have to pollute
my home machines with Java again (it's bad enough that I have to use
Java at work :-), I'd rather run it on Linux.
Does anyone out there have experience with any of these tools (or any
other way of achieving the same goal)?
--sethg
More information about the Discuss
mailing list