/[pxelator]/bin/kvm-vde.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /bin/kvm-vde.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 11 by dpavlin, Mon Jul 27 21:55:40 2009 UTC revision 31 by dpavlin, Wed Jul 29 12:23:04 2009 UTC
# Line 4  if ! grep tap0 /etc/network/interfaces ; Line 4  if ! grep tap0 /etc/network/interfaces ;
4    
5  sudo apt-get install vde2  sudo apt-get install vde2
6    
7  cat >> /etc/network/interfaces << __add_tap0__  sudo sh -c "cat >> /etc/network/interfaces" << __add_tap0__
8    
9  iface tap0 inet static  iface tap0 inet static
10    address 172.16.10.1    address 172.16.10.1
# Line 13  iface tap0 inet static Line 13  iface tap0 inet static
13    
14  __add_tap0__  __add_tap0__
15    
 sudo ifup tap0  
   
16  fi  fi
17    
18    sudo ifup tap0
19    ln -sf 172.16.10.1 conf/server.ip
20    
21  vdeq kvm -m 512 -net nic,vlan=1,macaddr=52:54:00:12:01:00 \  vdeq kvm -m 512 -net nic,vlan=1,macaddr=52:54:00:12:01:00 \
22          -net vde,vlan=1,sock=/var/run/vde2/tap0.ctl \          -net vde,vlan=1,sock=/var/run/vde2/tap0.ctl \
23          -boot n          -boot n
24    
   

Legend:
Removed from v.11  
changed lines
  Added in v.31

  ViewVC Help
Powered by ViewVC 1.1.26