Debian笔记(5) - User Mode Linux

make-kpkg –append-to-version=-skas –added-patches=skas kernel_image modules_image –initrd

/usr/sbin/chroot sid-root /usr/bin/env -i HOME=/root TERM=”$TERM=”$TERM” PS1=’\u:\w\$ ‘ PATH=/bin:/usr/bin:/sbin:/usr/sbin /bin/bash –login +h

apt-get install bridge-utils uml-utilities screen

adduser user1 uml-net
adduser user2 uml-net
chgrp uml-net /dev/net/tun
chmod 660 /dev/net/tun

apt-get install user-mode-linux

Package: user-mode-linux
Priority: extra
Section: misc
Installed-Size: 61196
Maintainer: User Mode Linux Maintainers <pkg-uml-pkgs@lists.alioth.debian.org>
Architecture: i386
Version: 2.6.17-1um-2
Depends: uml-utilities (>= 20040406-1)
Suggests: x-terminal-emulator, rootstrap, user-mode-linux-doc, slirp, kernel-patch-skas
Filename: pool/main/u/user-mode-linux/user-mode-linux_2.6.17-1um-2_i386.deb
Size: 24933278

mv rootfs.i686.ext2 root_fs

sudo ~/sid-root/usr/bin/linux.uml con1=pts umid=woody
sudo screen /dev/pts/3

linux rootfstype=hostfs rootflags=/ rw mem=48M init=/bin/sh LD_ASSUME_KERNEL=2.4.1 quiet

Links:

http://www.monkeyhelper.com/2006/06/installing_user_mode_linux_on.html
http://uml.nagafix.co.uk/
http://tavi.debian.org.tw/UserModeLinux

http://www.landley.net/code/UML.html

Page 1 of 11