UML Virtual Machine Configuration

From Wiki
Jump to navigationJump to search

Host

  ifconfig eth0 0.0.0.0 down 
  ifconfig eth0 0.0.0.0 promisc up 
  brctl addbr uml-bridge 
  brctl setfd uml-bridge 0 
  brctl sethello uml-bridge 0 
  brctl stp uml-bridge off 
  ifconfig uml-bridge 172.16.0.2 netmask 255.255.0.0 up 
  brctl addif uml-bridge eth0 
  route add default gw 172.16.0.254 
  chmod 660 /dev/misc/net/tun 
  chown root:uml /dev/misc/net/tun 
  ln -sf /dev/misc/net/tun /dev/net/tun 
  tunctl -u jcw -t uml-conn0 
  ifconfig uml-conn0 0.0.0.0 promisc up 
  brctl addif uml-bridge uml-conn0 

UML

  ifconfig eth0 172.16.0.100 netmask 255.255.0.0 up 
  route add default gw 172.16.0.254