UML 検索向けメモ

UMLの起動そのものは簡単なのですが、ネットワークを構築する部分の情報が中々揃わなくて苦労しました。
以下、古い情報でUMLを起動した場合のエラーメッセージを書いておきます。

  • tuntapによる接続
$ sudo chmod og+rw /dev/net/tun
$ ./linux ubd0=difffs,root_fs eth0=tuntap,,,192.168.1.10
  (中略)
Bringing up interface eth0:
Determining IP information for eth0...SIOCSIFFLAGS: Permission denied
SIOCSIFFLAGS: Permission denied
  (後略)
  • uml_switch だけによる接続
$ uml_switch
$ ./linux ubd0=difffs,root_fs eth0=daemon
  (中略)
Bringing up interface eth0:  Device eth0 does not seem to be present, delaying initialization.
[FAILED]
  (後略)
  • tap0を作ってから
$ sudo tunctl
Set 'tap0' persistent and owned by uid 0
$ sudo /sbin/ifconfig tap0 192.168.1.1 up
$ ./linux ubd0=./difffs,rootfs.uml eth0=tuntap,,,192.168.1.1
  (中略)
Determining IP information for eth0...
 failed.
[FAILED]
  (中略)
CentOS release 5.3 (Final)
Kernel 2.6.30.3 on an i686

localhost login: root
Last login: Fri Jul 31 10:58:09 on tty0
[root@localhost ~]# ifconfig eth0 192.168.1.2 up
helper_wait : waitpid process 23986 failed, errno = 10