summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-xscripts/runqemu8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index 31e9822693..1e8121b321 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -194,6 +194,14 @@ while [ $i -le $# ]; do
194 i=$((i + 1)) 194 i=$((i + 1))
195done 195done
196 196
197if [ ! -c /dev/net/tun ] ; then
198 echo "TUN control device /dev/net/tun is unavailable; you may need to enable TUN (e.g. sudo modprobe tun)"
199 exit 1
200elif [ ! -w /dev/net/tun ] ; then
201 echo "TUN control device /dev/net/tun is not writable, please fix (e.g. sudo chmod 666 /dev/net/tun)"
202 exit 1
203fi
204
197YOCTO_KVM_WIKI="https://wiki.yoctoproject.org/wiki/How_to_enable_KVM_for_Poky_qemu" 205YOCTO_KVM_WIKI="https://wiki.yoctoproject.org/wiki/How_to_enable_KVM_for_Poky_qemu"
198# Detect KVM configuration 206# Detect KVM configuration
199if [[ "x$KVM_ENABLED" == "xyes" ]]; then 207if [[ "x$KVM_ENABLED" == "xyes" ]]; then