/[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

Annotation of /bin/kvm-vde.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 45 - (hide annotations)
Wed Jul 29 22:04:58 2009 UTC (14 years, 8 months ago) by dpavlin
File MIME type: application/x-sh
File size: 488 byte(s)
dump all other peaces in, first configuration which can again boot
(wrong image, that is :-)

1 dpavlin 11 #!/bin/sh -x
2    
3     if ! grep tap0 /etc/network/interfaces ; then
4    
5     sudo apt-get install vde2
6    
7 dpavlin 21 sudo sh -c "cat >> /etc/network/interfaces" << __add_tap0__
8 dpavlin 11
9     iface tap0 inet static
10     address 172.16.10.1
11     netmask 255.255.255.0
12     vde2-switch -
13    
14     __add_tap0__
15    
16     fi
17    
18 dpavlin 31 sudo ifup tap0
19 dpavlin 39 rm conf/server.ip ; ln -sf 172.16.10.1 conf/server.ip
20 dpavlin 17
21 dpavlin 45 ./bin/start-split.sh &
22    
23     #sudo tshark -i tap0 &
24    
25 dpavlin 11 vdeq kvm -m 512 -net nic,vlan=1,macaddr=52:54:00:12:01:00 \
26     -net vde,vlan=1,sock=/var/run/vde2/tap0.ctl \
27     -boot n
28    

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26