summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2013-02-08 11:17:05 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-11 14:46:09 +0000
commit06e245303c2694dc76973250d9061c0e07ea2a3f (patch)
treef3fbc6f6f7bf8f2779d0599e53498f64d0173f69 /scripts/runqemu
parent42f221f297b5baeb59119222aac52ae1ac160721 (diff)
downloadpoky-06e245303c2694dc76973250d9061c0e07ea2a3f.tar.gz
runqemu: add option to make the VNC server publically available
If the qemu is running on a headless machine, a VNC server that only allows connections from localhost isn't too useful. Add a "vncpublic" option to bind a VNC server to 0.0.0.0, so it's publically available. (From OE-Core rev: 883666821ec46483bbfb9b3cb84c5afa8118a553) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-xscripts/runqemu4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index c20c8dd3a6..6c2a684633 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -33,6 +33,7 @@ usage() {
33 echo " nographic - disables video console" 33 echo " nographic - disables video console"
34 echo " serial - enables a serial console on /dev/ttyS0" 34 echo " serial - enables a serial console on /dev/ttyS0"
35 echo " kvm - enables KVM when running qemux86/qemux86-64 (VT-capable CPU required)" 35 echo " kvm - enables KVM when running qemux86/qemux86-64 (VT-capable CPU required)"
36 echo " publicvnc - enable a VNC server open to all hosts"
36 echo " qemuparams=\"xyz\" - specify custom parameters to QEMU" 37 echo " qemuparams=\"xyz\" - specify custom parameters to QEMU"
37 echo " bootparams=\"xyz\" - specify custom kernel parameters during boot" 38 echo " bootparams=\"xyz\" - specify custom kernel parameters during boot"
38 echo "" 39 echo ""
@@ -172,6 +173,9 @@ while true; do
172 KVM_ENABLED="yes" 173 KVM_ENABLED="yes"
173 KVM_CAPABLE=`grep -q 'vmx\|svm' /proc/cpuinfo && echo 1` 174 KVM_CAPABLE=`grep -q 'vmx\|svm' /proc/cpuinfo && echo 1`
174 ;; 175 ;;
176 "publicvnc")
177 SCRIPT_QEMU_OPT="$SCRIPT_QEMU_OPT -vnc 0.0.0.0:0"
178 ;;
175 "") break ;; 179 "") break ;;
176 *) 180 *)
177 # A directory name is an nfs rootfs 181 # A directory name is an nfs rootfs