aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Lyle <greg@stealthisemail.com>2011-06-06 11:40:09 -0400
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2011-06-06 13:27:55 -0400
commitd2a81ec6c28128ee4a745e01f8075add549152ba (patch)
treef6587a9526ab5e735f4ffaf73494bfca4dc13500
parent997036d2f376b91098cf4bd68756836140e1d12c (diff)
downloadkvm-manager-d2a81ec6c28128ee4a745e01f8075add549152ba.tar.gz
kvm-manager-d2a81ec6c28128ee4a745e01f8075add549152ba.tar.bz2
Use iproute to create tap interfaces for newly created guests, instead of bridge-utils.
-rwxr-xr-xkvm-manager4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvm-manager b/kvm-manager
index 43e664f..6ba3629 100755
--- a/kvm-manager
+++ b/kvm-manager
@@ -28,7 +28,7 @@ OWNERHOME=$(getent passwd "$OWNER" | cut -f6 -d: )
up() {
# bring up the network tap:
modprobe -v tun
- tunctl -u "$OWNER" -t "$TAP"
+ ip tuntap add dev "$TAP" mode tap user "$OWNER"
ip link set "$TAP" up
brctl addif br0 "$TAP"
@@ -115,7 +115,7 @@ EOF
down() {
brctl delif br0 "$TAP"
ip link set "$TAP" down
- tunctl -d "$TAP"
+ ip tuntap del mode tap dev "$TAP"
# no need to lock up the block device as well, since the owner might
# prefer to manipulate the disk directly.
}