All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] runqemu-gen-tapdevs: Add note about NetworkManager & tap devices
@ 2016-04-05  0:11 Saul Wold
  0 siblings, 0 replies; only message in thread
From: Saul Wold @ 2016-04-05  0:11 UTC (permalink / raw)
  To: openembedded-core, richard.purdie

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

[YOCTO #8587]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
 scripts/runqemu-gen-tapdevs | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/scripts/runqemu-gen-tapdevs b/scripts/runqemu-gen-tapdevs
index d3b27be..624deac 100755
--- a/scripts/runqemu-gen-tapdevs
+++ b/scripts/runqemu-gen-tapdevs
@@ -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.
-- 
2.5.0



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-04-05  0:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-05  0:11 [PATCH] runqemu-gen-tapdevs: Add note about NetworkManager & tap devices Saul Wold

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.