]> gitweb.fluxo.info Git - kvm-manager.git/commitdiff
Use iproute to create tap interfaces for newly created guests, instead of bridge...
authorGreg Lyle <greg@stealthisemail.com>
Mon, 6 Jun 2011 15:40:09 +0000 (11:40 -0400)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Mon, 6 Jun 2011 17:27:55 +0000 (13:27 -0400)
kvm-manager

index 43e664f8f0aa9f0b37b84a0a675ad010d98e8521..6ba362977df0894b4575f03e5c120399b3d353f0 100755 (executable)
@@ -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.
 }