Skip to contentSkip to conversation

runqemu-gen-tapdevs: Add note about NetworkManager & tap devices

PATCH New Saul Wold 1 participant 1 message Apr 5, 2016

lore
Share & tools
lore

Saul Wold

author
#0 lore raw

PATCH 1/1 runqemu-gen-tapdevs: Add note about NetworkManager & tap devices

NetworkManager can clobber tap devices if left alone, this gives a note about how to set tap* as unmanaged

[YOCTO #8587]

---
 scripts/runqemu-gen-tapdevs | 9 +++++++++
 1 file changed, 9 insertions(+)
scripts/runqemu-gen-tapdevs +9 -0
index d3b27be..624deac 100755
@@ -85,6 +85,15 @@ for ((index=0; index < $COUNT; index++)); do
 	fi
 done
 
+if [ $COUNT -gt 0 ]; then
+	echo "Note: For systems running NetworkManager, it's recommended"
+	echo "Note: that the tap devices be set as unmanaged in the"
+	echo "Note: NetworkManager.conf file. Add the following lines to"
+	echo "Note: /etc/NetworkManager/NetworkManager.conf"
+	echo "[keyfile]"
+	echo "unmanaged-devices=interface-name:tap*"
+fi
+
 # The runqemu script will check for this file, and if it exists,
 # will use the existing bank of tap devices without creating
 # additional ones via sudo.
Signature · 1 line
2.5.0