summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu
diff options
context:
space:
mode:
authorJason Wessel <jason.wessel@windriver.com>2014-01-23 08:32:46 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-01-28 00:52:36 +0000
commit2fedfdca12983cf3240dd7b22ae53d7ee3b2b372 (patch)
treef3baa65f90107d1ea54c43408a75866e752b43d9 /scripts/runqemu
parent96b24e7bd550cf8a3fc2fffa89349600d1a6280a (diff)
downloadpoky-2fedfdca12983cf3240dd7b22ae53d7ee3b2b372.tar.gz
runqemu, runqemu-internal: Allow slirp for NFS and KVM use
The default slirp address for the NFS server is 10.0.2.2. If not using a tap interface this address must be used or the target system cannot connect properly. Also the ip=... kernel arguments need to be set to dhcp when using slirp or the root NFS will not get setup properly. The call to cleanup() results in a routine which is not defined when setting up the NFS because it is called before acquire() for the locking of the tap interfaces, the solution being to simply not call cleanup() that early. When using slirp, kvm should not execute the vhost net checks because the vhost net will not be configure or used. (From OE-Core rev: 1ea04d87525f26c2cd32ba29c0f14c6226f60729) Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-xscripts/runqemu10
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index dcb2931cac..9272b6f2d5 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -279,10 +279,12 @@ if [ "x$KVM_ENABLED" = "xyes" ]; then
279 exit 1; 279 exit 1;
280 fi 280 fi
281 if [ ! -w /dev/vhost-net -o ! -r /dev/vhost-net ]; then 281 if [ ! -w /dev/vhost-net -o ! -r /dev/vhost-net ]; then
282 echo "You have no rights on /dev/vhost-net." 282 if [ "$SLIRP_ENABLED" != "yes" ] ; then
283 echo "Please change the ownership of this file as described at:" 283 echo "You have no rights on /dev/vhost-net."
284 echo "$YOCTO_PARAVIRT_KVM_WIKI"; 284 echo "Please change the ownership of this file as described at:"
285 exit 1; 285 echo "$YOCTO_PARAVIRT_KVM_WIKI";
286 exit 1;
287 fi
286 fi 288 fi
287fi 289fi
288 290