--- UserModeLinux-HOWTO.sgml.0.0.5 Sat Mar 4 00:51:53 2000 +++ UserModeLinux-HOWTO.sgml Sun Mar 12 20:41:01 2000 @@ -8,8 +8,8 @@
Compiling the user mode kernel is just like compiling any other
-kernel. Let's go through the steps, using 2.3.48 (current as of this
+kernel. Let's go through the steps, using 2.3.51 (current as of this
writing) as an example:
Simply run `./linux' in the directory: it will try to mount the
-file `root_fs' in the current directory. You do not need to run it as
-root.
+file `root_fs' in the current directory. `root_fs' should be
+writable by you. You generally do not need to run it as
+root. If your host kernel is 2.3.51, you do need to run it as root.
If you use the `mkrootfs' script, you will have two accounts:
-`root' and `user', neither of which will have passwords.
+`root' and `user' (or `guest'). Either those accounts will have no password or
+the root account will have password `root' and the guest account
+will have password `guest'.
There are a number of ways of logging in:
Once your kernel is operational, you should be able to set up slip
-to the outside world by doing `ifconfig umn 192.168.0.253 hw ether
-c0:a8:0:fd:0:0', but this gives me `SIOCSIFFLAGS: Device not configured'.
+ Here are some things to try in your new UML.
+
+ The default is 16M. To use more or less, try:
+
+ Make sure you have at least this much free hard drive space in the current directory.
+
+ For an 8M swap space, do the following in the host OS:
+
+ Adjust count up or down for larger or smaller swap.
+
+ Once booted, as root type:
+
+ If you're not using devfs, I believe the equivalent is:
+
+ The following example assumes the IP address on your host OS'
+Ethernet card is 172.20.0.253 and that you're using the default
+UML IP address of 192.168.0.253. These steps will set up a
+point-to-point link from UML to your host OS (the left set of
+dashes, below), and will actually give you a full IP connection
+to the outside world (via the Ethernet connection to the firewall
+and masquerading there). Visually:
+
+ Start up UML as normal. In UML:
+
+ At this point, you have a working network connection to your host OS.
+You should be able to
+
+ Now we give UML full access to the outside world. On the
+Host OS:
+
+ At this point, any of the following should work:
+
+ Note: If UML is unable to do DNS lookups, add the following
+lines to /etc/resolv.conf inside UML:
+
+ You can run `halt' and `reboot' inside your user mode kernel as
with a normal kernel. If the kernel hangs, you can do a `killall -9
linux' under your host kernel to get rid of it.
+
+