logo       

Re: [uml-user] RH 9: msg#00233

Subject: Re: [uml-user] RH 9
Ehab Heikal wrote:


Thanks for the reply :)

I would like to know if you dont mind if the skas patch be applied to RH 9?

I am newbie for UML, I just wanted to try UML.
I did not try to rebuild kernel, yet.
And I don't know I will do or not.

love
setu

Setu, Prem wrote:

yes.

uml tools comes with RH9. you can find some in /usr/bin/uml_* .
so, you need to get "linux" command (uml kernel) and config file.
from: http://kernels.usermodelinux.org/kernels/
I used linux-2.4.20-6um.

put "linux" in /usr/bin/ as executable. (chmod +x /usr/bin/linux)
put "dotconfig" in /usr/lib/uml/ as "config".

some files need to change the mode. RH9 kept them secure.
# chmod u+s /usr/bin/uml_net
# chmod g+rw,o+rw /dev/net/tun

download disk image file from
http://user-mode-linux.sourceforge.net/dl-fs-sf.html
I got Debian-3.0r0.ext2.bz2 which is Debian 3.0r0 minimum installation.

I explain with this case.

$ unbzip2 Debian-3.0r0.ext2.bz2
$ linux ubd0=Debian-3.0r0.ext2.diff,Debian-3.0r0.ext2 eth0=tuntap,,,192.168.1.100
192.168.1.100 is any valid and unused IP on your LAN.
you can login as root without password.

set hostname
UML# echo debian.mynet >/etc/hostname
UML# /etc/init.d/hostname.sh

set network
edit /etc/network/interfaces and add these lines:
-----
auto lo eth0

iface lo inet loopback

iface eth0 inet staticaddress 192.168.1.101
   netmask 255.255.255.0
   gateway 192.168.1.1
---------
192.168.1.101 is any valid and unused IP address of your network.
So, this UML setup uses two IP addresses, one for host side,
another for guest side.

edit /etc/resolv.conf and add your name servers.
-------
nameserver 192.168.1.3
nameserver 192.168.1.4
-------

now, you can start network.
# /etc/init.d/network start

you can ping anywhere in the world.

you can access files on the host side.
# mount none /mnt -t hostfs
now, /mnt is the / of host OS. you can read/write.

if you want to install something more, use apt-get.
for example, to install apache web server:
# apt-get update
--- to get the latest list of package, then
# apt-get install apache

you can see the test page from your host OS by
http://192.168.1.101/

# halt
to shutdown Debian...

from 2nd time, you can start UML without real disk image.
$ linux ubd0=Debian-3.0r0.ext2.diff eth0=tuntap,,,192.168.1.100


love and fun
setu

Ehab Heikal wrote:

Will i be able to run UML (skas or not ) on a plain RH 9 machine?












-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54


<Prev in Thread] Current Thread [Next in Thread>