Index: lib/cros_vm_lib.sh |
diff --git a/lib/cros_vm_lib.sh b/lib/cros_vm_lib.sh |
index afa481e8fbdf552ab627512caa63d4a1b45d1e20..7a99cbebe25774791d68a0892780977a8a402f22 100644 |
--- a/lib/cros_vm_lib.sh |
+++ b/lib/cros_vm_lib.sh |
@@ -10,6 +10,7 @@ DEFINE_boolean no_graphics ${FLAGS_FALSE} "Runs the KVM instance silently." |
DEFINE_boolean persist "${FLAGS_FALSE}" "Persist vm." |
DEFINE_boolean snapshot ${FLAGS_FALSE} "Don't commit changes to image." |
DEFINE_integer ssh_port 9222 "Port to tunnel ssh traffic over." |
+DEFINE_string vnc "" "VNC Server to display to instead of SDL." |
KVM_PID_FILE=/tmp/kvm.$$.pid |
LIVE_VM_IMAGE= |
@@ -42,6 +43,9 @@ function start_kvm() { |
if [ ${FLAGS_no_graphics} -eq ${FLAGS_TRUE} ]; then |
nographics="-nographic -serial none" |
fi |
+ if [ -n "${FLAGS_vnc}" ]; then |
+ nographics="-vnc ${FLAGS_vnc}" |
+ fi |
if [ ${FLAGS_snapshot} -eq ${FLAGS_TRUE} ]; then |
snapshot="-snapshot" |