Tested on Red Hat 7.3

user mode linux 2.4.18.36um-0

Installation

  • Install UML and prepare an image file.
    # rpm -ihv user_mode_linux-2.4.18.36um-0.i386.rpm
    # bunzip2 -d root_fs.rh-7.2-full.pristine.20020312.bz2
    # mv root_fs.rh-7.2-full.pristine.20020312 rh72.img
    
  • if you want to run UML by general user, and use network, you need to change permission of TUN/TAP device as.
    # ls -lt /dev/net/tun
    # crw------- 1 root root 10, 200 Jan 30 16:24 /dev/net/tun
    # chmod go+rw /dev/net/tun
    # crw-rw-rw- 1 root root 10, 200 Jan 30 16:24 /dev/net/tun
    
  • Start UML linux and make diff file. Default accounts are
    ID=root PASS=root
    ID=user PASS=user
    If an IP Address of host OS is 192.168.0.103, then
    # linux ubd0=rh72.diff,rh72.img eth0=tuntap,,,192.168.0.103
    ...
    Unauthorized access to this system is strictly prohibited.
    redhat72 login: root
    Password:
    Login incorrect
    
    login: root
    Password:
    Login incorrect
    
    login: root
    Password:
    You are required to change your password immediately (password aged)
    Changing password for root
    (current) UNIX password:
    Enter new UNIX password:
    Retype new UNIX password:
    
  • Shutdown guest OS
    # /sbin/shutdown -h 0
    
  • Start UML linux.
    # linux ubd0=rh72.diff eth0=tuntap,,,192.168.0.103
    

    Host Filesystem

    Guest OS can access Host OS file system using Host Filesystem
  • It can mount root directory of Host OS to /mnt/home on Guest OS
    # mount none /mnt/home -t hostfs
    
  • If you want to specify the directory of Host OS
    # mount none /mnt/home -t hostfs -o /home/hoge
    

    Back
    Google
    Web www.grape-info.com