/usr/share/doc/user-mode-linux-doc/html/UserModeLinux-HOWTO-1.html is in user-mode-linux-doc 20060501-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
<TITLE>User Mode Linux HOWTO : Introduction</TITLE>
<LINK HREF="UserModeLinux-HOWTO-2.html" REL=next>
<LINK HREF="UserModeLinux-HOWTO.html#toc1" REL=contents>
</HEAD>
<BODY>
<A HREF="UserModeLinux-HOWTO-2.html">Next</A>
Previous
<A HREF="UserModeLinux-HOWTO.html#toc1">Contents</A>
<HR>
<H2><A NAME="intro"></A> <A NAME="s1">1.</A> <A HREF="UserModeLinux-HOWTO.html#toc1">Introduction</A></H2>
<P>Welcome to User Mode Linux. It's going to be fun.</P>
<H2><A NAME="ss1.1">1.1</A> <A HREF="UserModeLinux-HOWTO.html#toc1.1">What is User Mode Linux?</A>
</H2>
<P>User Mode Linux lets you run Linux inside itself! With that comes the
power to do all sorts of new things. It virtualises (or simulates, as
some people call it) Linux so that you can run an entire Linux where
once you would have only run a program.</P>
<P>You might have heard of functionality like this before. There are
quite a few projects whose goal is to nest operating systems in one
way or another: Linux on Linux, Windows on Linux, Linux on Windows,
Linux/s390 on Linux/anythingelse, and so on. Or even just x86 on
anything, where the 'x86' program can boot operating systems including
Linux.</P>
<P>Where x86 is involved there is the greatest concentration of
efforts. At the end of this HOWTO you'll find a list of alternative
projects. If all you want to do is run a copy of x86 Linux on another
copy of x86 Linux as fast as possible with little control then quite
possibly one of these other projects will so better than UML.</P>
<H2><A NAME="ss1.2">1.2</A> <A HREF="UserModeLinux-HOWTO.html#toc1.2">How is User Mode Linux Different?</A>
</H2>
<P>User Mode Linux (UML) is rather different from every other Linux
virtualisation project, either free or commercial. UML
strives to present itself as an ordinary program as much as
possible. Here are some of the outcomes of that philosophy:</P>
<P>
<OL>
<LI> Good speed with few compromises. UML compiles to
native machine code that runs just like any other compiled application
on the host. This makes it very much faster than portable
virtualisation schemes that implement an entire hardware architecture
in software. On the other hand, UML does not suffer from
the extreme hardware specificity of virtualisation systems that rely
on particular CPU features. UML runs applications inside
itself with normally at worst a 20% slowdown compared to the host
system, which modern hardware and clever system design can render
negligable in real terms.
</LI>
<LI> Futureproof. Every time Linux gets improved so it can do
something new and clever that benefits the programs it runs, UML
automatically gets that facility. Software suspend,
fine-grained security control such as SE Linux, new filesystem
features, support for bigger/faster hardware... the same is not true
with those virtualisation systems that require major changes on the host
computer.
</LI>
<LI> Flexible code. Normally an OS kernel is just that... a
kernel. It talks to hardware or maybe some virtualised hardware. But
UML can be viewed in many other ways. It would be possible
to turn it into a shared library, for example, so that other programs
could link to it to take advantage of things that Linux does very
well. It can be started as a subshell of an existing application. It
can use stin/stdout like any other program.
</LI>
<LI> Portable. Really portable. UML has only just
started to be exploited for its portability, but there is promising
evidence that ports to x86 Windows, PowerPC Linux, x86 BSD and other
systems are very practical.
</LI>
<LI> Mature. UML has been in development since 1999. One
indication of its robustness is that UML can be compiled to run within
UML, making it 'self-hosting'. Production systems are running on UML.
</LI>
<LI> Free Software. UML is under the GPL (as it must be, being
part of the Linux kernel.)
</LI>
</OL>
</P>
<H2><A NAME="ss1.3">1.3</A> <A HREF="UserModeLinux-HOWTO.html#toc1.3">How does UML Work?</A>
</H2>
<P>Normally, the Linux Kernel talks straight to your hardware (video
card, keyboard, hard drives, etc), and any programs which run ask the
kernel to operate the hardware, like so:</P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
+-----------+-----------+----+
| Process 1 | Process 2 | ...|
+-----------+-----------+----+
| Linux Kernel |
+----------------------------+
| Hardware |
+----------------------------+
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>The UML Kernel is different; instead of talking to the
hardware, it talks to a `real' Linux kernel (called the `host kernel'
from now on), like any other program. Programs can then run inside
User-Mode Linux as if they were running under a normal kernel, like
so:</P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
+----------------+
| Process 2 | ...|
+-----------+----------------+
| Process 1 | User-Mode Linux|
+----------------------------+
| Linux Kernel |
+----------------------------+
| Hardware |
+----------------------------+
</PRE>
</CODE></BLOCKQUOTE>
</P>
<H2><A NAME="ss1.4">1.4</A> <A HREF="UserModeLinux-HOWTO.html#toc1.4">Why Would I Want UML?</A>
</H2>
<P>
<OL>
<LI> If UML crashes, your host kernel is still fine.</LI>
<LI> You can run a usermode kernel as a non-root user.</LI>
<LI> You can debug the UML like any normal process.</LI>
<LI> You can run gprof (profiling) and gcov (coverage testing).</LI>
<LI> You can play with your kernel without breaking things.</LI>
<LI> You can use it as a sandbox for testing new apps.</LI>
<LI> You can try new development kernels safely.</LI>
<LI> You can run different distributions simultaneously.</LI>
<LI> It's extremely fun.</LI>
</OL>
</P>
<HR>
<A HREF="UserModeLinux-HOWTO-2.html">Next</A>
Previous
<A HREF="UserModeLinux-HOWTO.html#toc1">Contents</A>
</BODY>
</HTML>
|