From d2a81ec6c28128ee4a745e01f8075add549152ba Mon Sep 17 00:00:00 2001 From: Greg Lyle Date: Mon, 6 Jun 2011 11:40:09 -0400 Subject: Use iproute to create tap interfaces for newly created guests, instead of bridge-utils. --- kvm-manager | 4 ++-- 1 file 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. } -- cgit v1.2.3