SmileyByte wrote:
Hello,

I'm trying to use UML (User Mode Linux) inside Debian, but I've been
running thru a few problems.

I installed the packages rootstrap, user-mode-linux and uml-utilities. I
tried to run rootstrap to create a filesystem image, but it failed; then
I tried to create a filesystem by hand and see if UML would run.

I'm running uml_switch, configured the tap0 interface, and even
installed dhcp3-server as suggested by the docs (binded to the tap0
interface), it doesn't work. When I try # linux ubd0=image eth0=daemon
it stops at the line:
NET4: Linux TCP/IP 1.0 for NET4.0

I've tried also using tuntap, loading the tun module:
# linux ubd0=image eth0=tuntap,tap0
then it stops here:
Netdevice 0

The interface tap0 is correctly configured, and uml_switch is running:

# ifconfig tap0
tap0      Link encap:Ethernet  HWaddr FE:FD:00:00:00:00
          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING NOARP MULTICAST  MTU:1500  Metric:1
# ps -ef|grep uml
uml-net  19986     1  0 21:17 ?        00:00:00 /usr/bin/uml_switch -tap
tap0 -unix /var/run/uml-utilities/uml_switch.ctl


Anyone knows what more can be wrong?


It has been ages since I configured a UML setup. But here goes.

I use the tun module with no problems. This is my command line:
/usr/bin/linux umid=uml1 ubd0=./root_fs devfs=mount root=/dev/ubd0 eth0=daemon,,,/var/run/uml-utilities/uml_switch.ctl mem=64M

This is my uml_switch process:

$ ps -ef |grep uml
uml-net 1475 1 0 19:55 ? 00:00:00 /usr/bin/uml_switch -tap tap0 -unix /var/run/uml-utilities/uml_switch.ctl

This is my tap0:

$ sudo ifconfig tap0
Password:
tap0      Link encap:Ethernet  HWaddr 00:FF:10:BD:79:7F
          inet addr:192.168.2.253  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::2ff:10ff:febd:797f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3 errors:0 dropped:2 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:210 (210.0 b)


It looks like I have the same networking setup as you, so I am willing to bet it has to do with the differences in the command line.

-Roberto Sanchez

Attachment: signature.asc
Description: OpenPGP digital signature



Reply via email to