git://git.onelab.eu
/
build.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
967e448
)
tweaks for creating VMs
author
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Tue, 4 Feb 2014 12:19:55 +0000
(13:19 +0100)
committer
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Tue, 4 Feb 2014 12:19:55 +0000
(13:19 +0100)
lbuild-initvm.sh
patch
|
blob
|
history
diff --git
a/lbuild-initvm.sh
b/lbuild-initvm.sh
index
cea0838
..
44e8795
100755
(executable)
--- a/
lbuild-initvm.sh
+++ b/
lbuild-initvm.sh
@@
-41,6
+41,7
@@
for line in file("/proc/net/dev"):
if ifname.find("lo")==0: continue
if ifname.find("br")==0: continue
if ifname.find("virbr")==0: continue
if ifname.find("lo")==0: continue
if ifname.find("br")==0: continue
if ifname.find("virbr")==0: continue
+ if ifname.find("veth")==0: continue
if ifname.find("tap")==0: continue
print ifname
EOF
if ifname.find("tap")==0: continue
print ifname
EOF
@@
-955,7
+956,7
@@
function main () {
# use same NETMASK as bridge interface br0
MASKLEN=$(ip addr show $PUBLIC_BRIDGE | grep -v inet6 | grep inet | awk '{print $2;}' | cut -d/ -f2)
NETMASK=$(masklen_to_netmask $MASKLEN)
# use same NETMASK as bridge interface br0
MASKLEN=$(ip addr show $PUBLIC_BRIDGE | grep -v inet6 | grep inet | awk '{print $2;}' | cut -d/ -f2)
NETMASK=$(masklen_to_netmask $MASKLEN)
- GATEWAY=$(ip route show | grep default | awk '{print $3}')
+ GATEWAY=$(ip route show | grep default | awk '{print $3}'
| head -1
)
VIF_HOST="i$(echo $GUEST_HOSTNAME | cut -d. -f1)"
fi
VIF_HOST="i$(echo $GUEST_HOSTNAME | cut -d. -f1)"
fi