User Mode Linux README 1. Clone Linux kernel git repository: Systems in the lab: $ git clone --shared /home/so/linux.git Other systems (clone from Internet): $ git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 2. Change directory to sources $ cd linux 3. Add "Operating Systems" repository $ git remote add km git://git.podlesie.net/km/linux.git 4. Fetch "km/so" branch from "Operating Systems" repository $ git fetch km km/so 5. create branch: $ git checkout -b nazwa km/km/so 6. Configure Linux: $ make ARCH=um menuconfig select "UML-specific options" -> "Host filesystem" select "Filesystems" -> "Pseudo filesystems" -> "Tmpfs virtual memory..." select "Enable loadable module support" select "Enable loadable module support" -> "Module unloading" select "Device drivers -> Character devices -> ringdev ..." 7. Compile and link: $ make ARCH=um -j4 8. Execute: a) $ ./linux rootfstype=hostfs init=/bin/bash # mount -t proc none /proc # mount -t tmpfs none /tmp # mknod /tmp/ringdev c MAJOR MINOR # cat /tmp/ringdev b) $ so/UML/start